diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d33fa35f1..2f6cc1b356 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: node-version: - - 12.x + - 14.x steps: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 diff --git a/README.md b/README.md index b8c59a9f56..9bc7bbe1f3 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ This repository contains a collection of samples showcasing some typical uses of [Cloud Functions for Firebase](https://firebase.google.com/features/functions). -> All samples use the Node 12 runtime and require the Blaze pay-as-you-go billing plan to deploy. Learn more about Cloud Functions for Firebase's Node versions [here](https://firebase.google.com/docs/functions/manage-functions#set_nodejs_version). +> All samples use the Node 14 runtime and require the Blaze pay-as-you-go billing plan to deploy. Learn more about Cloud Functions for Firebase's Node versions [here](https://firebase.google.com/docs/functions/manage-functions#set_nodejs_version). ### What's Cloud Functions for Firebase? diff --git a/assistant-say-number/functions/package.json b/assistant-say-number/functions/package.json index 9b15901ea1..797190c986 100644 --- a/assistant-say-number/functions/package.json +++ b/assistant-say-number/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/authenticated-json-api/functions/package.json b/authenticated-json-api/functions/package.json index 6ae4e38112..56f0a87ace 100644 --- a/authenticated-json-api/functions/package.json +++ b/authenticated-json-api/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/authorized-https-endpoint/functions/package.json b/authorized-https-endpoint/functions/package.json index a24a42b54c..734c7057d6 100644 --- a/authorized-https-endpoint/functions/package.json +++ b/authorized-https-endpoint/functions/package.json @@ -22,7 +22,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/bigquery-import/functions/package.json b/bigquery-import/functions/package.json index 77b474750e..7f072e7199 100644 --- a/bigquery-import/functions/package.json +++ b/bigquery-import/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/child-count/functions/package.json b/child-count/functions/package.json index 26a1074602..91104e4d66 100644 --- a/child-count/functions/package.json +++ b/child-count/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/convert-images/functions/package.json b/convert-images/functions/package.json index b56023cc87..c1d739a4a1 100644 --- a/convert-images/functions/package.json +++ b/convert-images/functions/package.json @@ -22,7 +22,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/coupon-on-purchase/functions/package.json b/coupon-on-purchase/functions/package.json index 4b525e810d..c8026b396f 100644 --- a/coupon-on-purchase/functions/package.json +++ b/coupon-on-purchase/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/delete-old-child-nodes/functions/package.json b/delete-old-child-nodes/functions/package.json index d8ede50e11..cc14d07275 100644 --- a/delete-old-child-nodes/functions/package.json +++ b/delete-old-child-nodes/functions/package.json @@ -6,7 +6,7 @@ "firebase-functions": "^3.14.1" }, "engines": { - "node": "12" + "node": "14" }, "scripts": { "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" diff --git a/delete-unused-accounts-cron/functions/package.json b/delete-unused-accounts-cron/functions/package.json index a7e2b506d1..65c15ab83a 100644 --- a/delete-unused-accounts-cron/functions/package.json +++ b/delete-unused-accounts-cron/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/developer-motivator/functions/package.json b/developer-motivator/functions/package.json index 63efe35af9..c149e5f7c4 100644 --- a/developer-motivator/functions/package.json +++ b/developer-motivator/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/email-confirmation/functions/package.json b/email-confirmation/functions/package.json index 58c4216d7f..4600fe2652 100644 --- a/email-confirmation/functions/package.json +++ b/email-confirmation/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/exif-images/functions/package.json b/exif-images/functions/package.json index 054dd35043..b6f9165cc4 100644 --- a/exif-images/functions/package.json +++ b/exif-images/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/fcm-notifications/functions/package.json b/fcm-notifications/functions/package.json index fbbe01bf47..a089ebd98f 100644 --- a/fcm-notifications/functions/package.json +++ b/fcm-notifications/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/ffmpeg-convert-audio/functions/package.json b/ffmpeg-convert-audio/functions/package.json index cb64f16cb3..33c4543324 100644 --- a/ffmpeg-convert-audio/functions/package.json +++ b/ffmpeg-convert-audio/functions/package.json @@ -22,7 +22,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/fulltext-search-firestore/functions/package.json b/fulltext-search-firestore/functions/package.json index ada259186e..4e9536ca7b 100644 --- a/fulltext-search-firestore/functions/package.json +++ b/fulltext-search-firestore/functions/package.json @@ -23,7 +23,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/fulltext-search/functions/package.json b/fulltext-search/functions/package.json index ab4ba2997b..ace998cca5 100644 --- a/fulltext-search/functions/package.json +++ b/fulltext-search/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/generate-thumbnail/functions/package.json b/generate-thumbnail/functions/package.json index 84a4e613a8..13b4be9a25 100644 --- a/generate-thumbnail/functions/package.json +++ b/generate-thumbnail/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/github-to-slack/functions/package.json b/github-to-slack/functions/package.json index 4f684fd522..ec4886faee 100644 --- a/github-to-slack/functions/package.json +++ b/github-to-slack/functions/package.json @@ -22,7 +22,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/google-sheet-sync/functions/package.json b/google-sheet-sync/functions/package.json index 7f19d7e094..4ef89f208c 100644 --- a/google-sheet-sync/functions/package.json +++ b/google-sheet-sync/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/image-maker/functions/package.json b/image-maker/functions/package.json index 568e496764..bcd89833e9 100644 --- a/image-maker/functions/package.json +++ b/image-maker/functions/package.json @@ -22,7 +22,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/image-sharp/functions/package.json b/image-sharp/functions/package.json index 9d02129560..31588e244c 100644 --- a/image-sharp/functions/package.json +++ b/image-sharp/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/instagram-auth/functions/package.json b/instagram-auth/functions/package.json index 8f17c28d11..8b8ac1695a 100644 --- a/instagram-auth/functions/package.json +++ b/instagram-auth/functions/package.json @@ -23,7 +23,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/lastmodified-tracking/functions/package.json b/lastmodified-tracking/functions/package.json index 08be2cbdc7..e26e77f37f 100644 --- a/lastmodified-tracking/functions/package.json +++ b/lastmodified-tracking/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/limit-children/functions/package.json b/limit-children/functions/package.json index fe6118b6b8..e8498765f7 100644 --- a/limit-children/functions/package.json +++ b/limit-children/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/linkedin-auth/functions/package.json b/linkedin-auth/functions/package.json index 14664fa44c..23cee0e55f 100644 --- a/linkedin-auth/functions/package.json +++ b/linkedin-auth/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/message-translation/functions/package.json b/message-translation/functions/package.json index da16c1a372..ead947391b 100644 --- a/message-translation/functions/package.json +++ b/message-translation/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/minimal-webhook/functions/package.json b/minimal-webhook/functions/package.json index a43d81fa28..1af8d94ddf 100644 --- a/minimal-webhook/functions/package.json +++ b/minimal-webhook/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/moderate-images/functions/package.json b/moderate-images/functions/package.json index a7dff8ed9d..308f0baea0 100644 --- a/moderate-images/functions/package.json +++ b/moderate-images/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/paypal/functions/package.json b/paypal/functions/package.json index 4259e2d589..340b966c06 100644 --- a/paypal/functions/package.json +++ b/paypal/functions/package.json @@ -23,7 +23,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/presence-firestore/functions/package.json b/presence-firestore/functions/package.json index 4bc659b9e0..76ee9c2cb6 100644 --- a/presence-firestore/functions/package.json +++ b/presence-firestore/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/publish-model/functions/package.json b/publish-model/functions/package.json index 7a2289a649..142f4e14b2 100644 --- a/publish-model/functions/package.json +++ b/publish-model/functions/package.json @@ -11,7 +11,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "dependencies": { "firebase-admin": "^9.9.0", diff --git a/quickstarts/big-ben/functions/package.json b/quickstarts/big-ben/functions/package.json index 597289e8f8..de514756b9 100644 --- a/quickstarts/big-ben/functions/package.json +++ b/quickstarts/big-ben/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/quickstarts/email-users/functions/package.json b/quickstarts/email-users/functions/package.json index 3fd423ae68..b4f899d525 100644 --- a/quickstarts/email-users/functions/package.json +++ b/quickstarts/email-users/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/quickstarts/pubsub-helloworld/functions/package.json b/quickstarts/pubsub-helloworld/functions/package.json index fbef1a9f69..8cb79e2c49 100644 --- a/quickstarts/pubsub-helloworld/functions/package.json +++ b/quickstarts/pubsub-helloworld/functions/package.json @@ -19,7 +19,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/quickstarts/runtime-options/functions/package.json b/quickstarts/runtime-options/functions/package.json index c7701f4183..2b55f55549 100644 --- a/quickstarts/runtime-options/functions/package.json +++ b/quickstarts/runtime-options/functions/package.json @@ -10,7 +10,7 @@ "logs": "firebase functions:log" }, "engines": { - "node": "12" + "node": "14" }, "main": "index.js", "dependencies": { diff --git a/quickstarts/test-complete/functions/package.json b/quickstarts/test-complete/functions/package.json index 1a9ef52fd3..fa804a239f 100644 --- a/quickstarts/test-complete/functions/package.json +++ b/quickstarts/test-complete/functions/package.json @@ -10,7 +10,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "dependencies": { "firebase-admin": "^9.9.0", diff --git a/quickstarts/thumbnails/functions/package.json b/quickstarts/thumbnails/functions/package.json index 43d3805c81..c7c0fd6c58 100644 --- a/quickstarts/thumbnails/functions/package.json +++ b/quickstarts/thumbnails/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/quickstarts/time-server/functions/package.json b/quickstarts/time-server/functions/package.json index 9561d24442..8a2cb63ec0 100644 --- a/quickstarts/time-server/functions/package.json +++ b/quickstarts/time-server/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/quickstarts/uppercase-firestore/functions/package.json b/quickstarts/uppercase-firestore/functions/package.json index ff720a288c..18d1a14f2b 100644 --- a/quickstarts/uppercase-firestore/functions/package.json +++ b/quickstarts/uppercase-firestore/functions/package.json @@ -23,7 +23,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/quickstarts/uppercase/functions/package.json b/quickstarts/uppercase/functions/package.json index a82357d887..e2eab3ae27 100644 --- a/quickstarts/uppercase/functions/package.json +++ b/quickstarts/uppercase/functions/package.json @@ -26,7 +26,7 @@ "compile": "cp ../../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/spotify-auth/functions/package.json b/spotify-auth/functions/package.json index 15d415d48d..54ec048b34 100644 --- a/spotify-auth/functions/package.json +++ b/spotify-auth/functions/package.json @@ -22,7 +22,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/stripe/functions/package.json b/stripe/functions/package.json index 5b30e25a76..3cc777aea7 100644 --- a/stripe/functions/package.json +++ b/stripe/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/survey-app-update/functions/package.json b/survey-app-update/functions/package.json index be67b7c229..3fdf375f0e 100644 --- a/survey-app-update/functions/package.json +++ b/survey-app-update/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/template-handlebars/functions/package.json b/template-handlebars/functions/package.json index b1e13ae22b..c2e18683a7 100644 --- a/template-handlebars/functions/package.json +++ b/template-handlebars/functions/package.json @@ -24,7 +24,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/testlab-to-slack/functions/package.json b/testlab-to-slack/functions/package.json index cfea0bcbeb..d45115e48b 100644 --- a/testlab-to-slack/functions/package.json +++ b/testlab-to-slack/functions/package.json @@ -10,7 +10,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "dependencies": { "axios": "^0.19.2", diff --git a/text-moderation/functions/package.json b/text-moderation/functions/package.json index 967278fcf5..239d8b7261 100644 --- a/text-moderation/functions/package.json +++ b/text-moderation/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/url-shortener/functions/package.json b/url-shortener/functions/package.json index fe5b976dc1..b084fa6be2 100644 --- a/url-shortener/functions/package.json +++ b/url-shortener/functions/package.json @@ -20,7 +20,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/username-password-auth/functions/package.json b/username-password-auth/functions/package.json index 7fb5cb93bd..45107595cd 100644 --- a/username-password-auth/functions/package.json +++ b/username-password-auth/functions/package.json @@ -21,7 +21,7 @@ "compile": "cp ../../tsconfig.template.json ./tsconfig-compile.json && tsc --project tsconfig-compile.json" }, "engines": { - "node": "12" + "node": "14" }, "private": true } diff --git a/youtube/functions/package.json b/youtube/functions/package.json index 220b26d59c..5a50c5e043 100644 --- a/youtube/functions/package.json +++ b/youtube/functions/package.json @@ -10,7 +10,7 @@ "logs": "firebase functions:log" }, "engines": { - "node": "12" + "node": "14" }, "main": "index.js", "dependencies": {