Skip to content

change: Deprecate Node.js 16 support #2574

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 5 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion test/unit/app/firebase-app.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
Loading