Skip to content

Commit d65e68f

Browse files
change: Deprecate Node.js 16 support (#2574)
* change: Deprecate Node versions that reached EoL * change expected error to regex * update readme.md * update readme.md
1 parent fc43337 commit d65e68f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
strategy:
1111
matrix:
12-
node-version: [14.x, 16.x]
12+
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
1313

1414
steps:
1515
- uses: actions/checkout@v4

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ requests, code review feedback, and also pull requests.
5959

6060
## Supported Environments
6161

62-
We support Node.js 14 and higher. However, Node.js 14 support is deprecated. We strongly encourage
63-
you to use Node.js 16 or higher as we will drop support for Node.js 14 in the next major version.
62+
We support Node.js 14 and higher. However, Node.js 14 and 16 support is deprecated. We strongly encourage
63+
you to use Node.js 18 or higher as we will drop support for Node.js 14 and 16 in the next major version.
6464

6565
Please also note that the Admin SDK should only
6666
be used in server-side/back-end environments controlled by the app developer.

test/unit/app/firebase-app.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ describe('FirebaseApp', () => {
182182
process.env[FIREBASE_CONFIG_VAR] = '{,,';
183183
expect(() => {
184184
firebaseNamespace.initializeApp();
185-
}).to.throw('Failed to parse app options file: SyntaxError: Unexpected token ,');
185+
}).to.throw(/Failed to parse app options file: SyntaxError:/);
186186
});
187187

188188
it('should throw when the environment variable points to an empty file', () => {

0 commit comments

Comments
 (0)