[go: nahoru, domu]

Skip to content

Commit

Permalink
Updates default runtime to Node.js 16 (new LTS). (#3841)
Browse files Browse the repository at this point in the history
* Updates default runtime to Node.js 16 (new LTS).

* Update CHANGELOG.md

Co-authored-by: Bryan Kendall <bkend@google.com>
  • Loading branch information
mbleigh and bkendall committed Dec 16, 2021
1 parent 37d7b24 commit f2fe814
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
- **BREAKING** Replaces all usages of `-y`, `--yes`, or `--confirm` with `-f` and `--force`.
- **BREAKING** Function deploys upload source to the deployed region instead of us-central1.
- Requires firebase-functions >= 3.13.1 in Functions emulator to include bug fixes (#3851).
- Updates default functions runtime to Node.js 16.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const ENGINE_RUNTIMES_NAMES = Object.values(ENGINE_RUNTIMES);
export const RUNTIME_NOT_SET =
"`runtime` field is required but was not found in firebase.json.\n" +
"To fix this, add the following lines to the `functions` section of your firebase.json:\n" +
'"runtime": "nodejs14"\n';
'"runtime": "nodejs16"\n';

export const UNSUPPORTED_NODE_VERSION_FIREBASE_JSON_MSG = clc.bold(
`functions.runtime value is unsupported. ` +
Expand Down
2 changes: 1 addition & 1 deletion templates/init/functions/javascript/package.lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "14"
"node": "16"
},
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion templates/init/functions/javascript/package.nolint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "14"
"node": "16"
},
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion templates/init/functions/typescript/package.lint.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "14"
"node": "16"
},
"main": "lib/index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion templates/init/functions/typescript/package.nolint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"logs": "firebase functions:log"
},
"engines": {
"node": "14"
"node": "16"
},
"main": "lib/index.js",
"dependencies": {
Expand Down

0 comments on commit f2fe814

Please sign in to comment.