Skip to content
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
30 changes: 15 additions & 15 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
strategy:
matrix:
node-version:
- "18"
- "20"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
Expand All @@ -44,10 +44,10 @@ jobs:
strategy:
matrix:
node-version:
- "16"
- "18"
- "20"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand All @@ -59,7 +59,7 @@ jobs:
- run: npm test -- -- --forbid-only

- uses: codecov/codecov-action@v3
if: matrix.node-version == '16'
if: matrix.node-version == '20'

integration:
needs: unit
Expand All @@ -79,7 +79,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- "18"
- "20"
script:
- npm run test:client-integration
- npm run test:emulator
Expand All @@ -94,7 +94,7 @@ jobs:
- npm run test:triggers-end-to-end
- npm run test:triggers-end-to-end:inspect
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -135,7 +135,7 @@ jobs:
fail-fast: false
matrix:
node-version:
- "18"
- "20"
script:
- npm run test:hosting
# - npm run test:hosting-rewrites # Long-running test that might conflict across test runs. Run this manually.
Expand All @@ -155,7 +155,7 @@ jobs:
java-version: 17
distribution: temurin

- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
Expand Down Expand Up @@ -184,10 +184,10 @@ jobs:
strategy:
matrix:
node-version:
- "18"
- "20"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -203,10 +203,10 @@ jobs:
strategy:
matrix:
node-version:
- "18"
- "20"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand All @@ -222,10 +222,10 @@ jobs:
strategy:
matrix:
node-version:
- "18"
- "20"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
],
"preferGlobal": true,
"engines": {
"node": ">=16.13.0 || >=18.0.0"
"node": ">=18.0.0 || >=20.0.0"
},
"author": "Firebase (https://firebase.google.com/)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18
FROM node:20

# Install dependencies
RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/emulator-tests/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"firebase-functions": "^4.0.0"
},
"engines": {
"node": "16"
"node": "20"
}
}
2 changes: 1 addition & 1 deletion scripts/examples/hosting/update-single-file/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"engines": {
"node": ">=18.0.0"
"node": ">=20.0.0"
},
"author": "",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion scripts/extensions-emulator-tests/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Cloud Functions for Firebase",
"scripts": {},
"engines": {
"node": "14"
"node": "20"
},
"dependencies": {
"firebase-admin": "^9.3.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/firepit-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18
FROM node:20

# Install dependencies
RUN apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion scripts/functions-deploy-tests/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"firebase-functions": "^4.1.0"
},
"engines": {
"node": "18"
"node": "20"
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "dist",
"version": "0.0.1",
"engines": {
"node": "16"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"firebase-functions": "^4.1.1"
},
"engines": {
"node": "16"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"firebase-functions": "^4.0.0"
},
"engines": {
"node": "18"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"firebase-functions": "^4.0.0"
},
"engines": {
"node": "18"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"firebase-functions": "^4.0.0"
},
"engines": {
"node": "18"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"firebase-functions": "^4.0.0"
},
"engines": {
"node": "18"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"firebase-functions": "^4.0.0"
},
"engines": {
"node": "18"
"node": "20"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@firebase/a-test-pkg": "0.0.1"
},
"engines": {
"node": "18"
"node": "20"
},
"private": true
}
2 changes: 1 addition & 1 deletion scripts/test-project/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"firebase-functions": "^3.2.0"
},
"engines": {
"node": "12"
"node": "20"
}
}
2 changes: 1 addition & 1 deletion scripts/triggers-end-to-end-tests/triggers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Cloud Functions for Firebase",
"scripts": {},
"engines": {
"node": "18"
"node": "20"
},
"dependencies": {
"@firebase/database-compat": "0.1.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/triggers-end-to-end-tests/v1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Cloud Functions for Firebase",
"scripts": {},
"engines": {
"node": "18"
"node": "20"
},
"dependencies": {
"@firebase/database-compat": "0.1.2",
Expand Down
2 changes: 1 addition & 1 deletion scripts/triggers-end-to-end-tests/v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Cloud Functions for Firebase",
"scripts": {},
"engines": {
"node": "18"
"node": "20"
},
"dependencies": {
"firebase-admin": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion scripts/webframeworks-deploy-tests/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "18"
"node": "20"
},
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/test/apiv2.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe("apiv2", () => {
method: "GET",
path: "/path/to/foo",
});
await expect(r).to.eventually.be.rejectedWith(FirebaseError, /Unexpected token.+JSON/);
await expect(r).to.eventually.be.rejectedWith(FirebaseError, /Unable to parse JSON/);
expect(nock.isDone()).to.be.true;
});

Expand Down