diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4fb651cc4..cf3a257871 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x] + node-version: [14.x, 16.x, 18.x, 20.x, 22.x] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 2d466926a7..4eafa48814 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,8 @@ requests, code review feedback, and also pull requests. ## Supported Environments -We support Node.js 14 and higher. However, Node.js 14 support is deprecated. We strongly encourage -you to use Node.js 16 or higher as we will drop support for Node.js 14 in the next major version. +We support Node.js 14 and higher. However, Node.js 14 and 16 support is deprecated. We strongly encourage +you to use Node.js 18 or higher as we will drop support for Node.js 14 and 16 in the next major version. Please also note that the Admin SDK should only be used in server-side/back-end environments controlled by the app developer. diff --git a/test/unit/app/firebase-app.spec.ts b/test/unit/app/firebase-app.spec.ts index 31301b2b1f..2211f4f457 100644 --- a/test/unit/app/firebase-app.spec.ts +++ b/test/unit/app/firebase-app.spec.ts @@ -182,7 +182,7 @@ describe('FirebaseApp', () => { process.env[FIREBASE_CONFIG_VAR] = '{,,'; expect(() => { firebaseNamespace.initializeApp(); - }).to.throw('Failed to parse app options file: SyntaxError: Unexpected token ,'); + }).to.throw(/Failed to parse app options file: SyntaxError:/); }); it('should throw when the environment variable points to an empty file', () => {