Commit a6ae4cb
Migrate all samples to firebase-functions v7 (#1227)
* use the test build of functions v7
* use 7.0.0
* feat: Migrate Node-1st-gen samples from functions.config to params (#1229)
* feat: Migrate Node-1st-gen samples from functions.config to params
Migrates all Cloud Functions for Firebase samples in the Node-1st-gen folder that use the functions.config API to the new params API.
This includes:
- Replacing `functions.config()` with `defineString` for non-sensitive data and `defineSecret` for sensitive data.
- Updating function definitions with `runWith({secrets: [...]})` where necessary.
- Moving API client initializations from the global scope into function handlers to ensure that parameter values are available at runtime.
- Updating all relevant README.md files and code comments to reflect the new configuration methods.
* feat(Node-1st-gen): Migrate functions.config to params
Migrates all 1st-gen Node.js samples from the deprecated functions.config API to the new params API.
- Updates all instances of functions.config() to use defineString() or defineSecret().
- Moves client initializations that depend on params into the function bodies.
- Updates variable names to lowerCamelCase to follow the recommended style.
- Updates all relevant README.md files to reflect the new configuration method using .env files and firebase functions:secrets:set.
- Verifies that all 1st-gen samples compile successfully after the changes.
* feat(Node-1st-gen): Migrate functions.config to params
Migrates all 1st-gen Node.js samples from the deprecated functions.config API to the new params API.
- Updates all instances of functions.config() to use defineString() or defineSecret().
- Moves client initializations that depend on params into the function bodies.
- Updates variable names to lowerCamelCase to follow the recommended style.
- Updates all relevant README.md files to reflect the new configuration method using .env files and firebase functions:secrets:set.
- Verifies that all 1st-gen samples compile successfully after the changes.
- Corrects the `runWith` secrets configuration to pass the secret objects directly.
- Refactors all client initializations to use the `onInit` hook.
- Fixes the `google-sheet-sync` trigger.
- Fixes inconsistent naming in `okta-auth` and `testlab-to-slack`.
- Fixes inefficient `cors` initialization in `okta-auth`.
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
---------
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>1 parent b5aa45d commit a6ae4cb
File tree
197 files changed
+17859
-15365
lines changed- Node-1st-gen
- assistant-say-number/functions
- authenticated-json-api/functions
- authorized-https-endpoint/functions
- bigquery-import
- functions
- child-count/functions
- convert-images/functions
- coupon-on-purchase/functions
- delete-old-child-nodes/functions
- delete-unused-accounts-cron/functions
- developer-motivator
- functions
- email-confirmation
- functions
- exif-images/functions
- fcm-notifications/functions
- ffmpeg-convert-audio/functions
- fulltext-search-firestore/functions
- fulltext-search
- functions
- github-to-slack
- functions
- google-sheet-sync
- functions
- image-maker/functions
- instagram-auth
- functions
- lastmodified-tracking/functions
- limit-children/functions
- linkedin-auth
- functions
- message-translation/functions
- minimal-webhook/functions
- moderate-images/functions
- okta-auth/functions
- paypal
- functions
- presence-firestore/functions
- publish-model/functions
- quickstarts
- auth-blocking-functions/functions
- big-ben/functions
- email-users/functions
- https-time-server/functions
- multicodebase-hellos
- js
- ts
- pubsub-helloworld/functions
- runtime-options/functions
- taskqueues-backup-images/functions
- testlab-matrix-completed/functions
- thumbnails/functions
- uppercase-firestore/functions
- uppercase-rtdb/functions
- remote-config-diff/functions
- spotify-auth
- functions
- stripe
- functions
- survey-app-update
- functions
- template-handlebars/functions
- testlab-to-slack
- functions
- text-moderation/functions
- url-shortener
- functions
- username-password-auth/functions
- vision-annotate-images/functions
- youtube
- functions
- Node
- alerts-to-discord/functions
- app-distribution-feedback-to-jira/functions
- call-vertex-remote-config-server/functions
- delete-unused-accounts-cron/functions
- fcm-notifications/functions
- instrument-with-opentelemetry/functions
- quickstarts
- auth-blocking-functions/functions
- callable-functions-streaming/functions
- callable-functions/functions
- custom-events/functions
- firestore-sync-auth/functions
- genkit-helloworld/functions
- https-time-server/functions
- monitor-cloud-logging/functions
- pubsub-helloworld/functions
- testlab-matrix-completed/functions
- thumbnails/functions
- uppercase-firestore/functions
- uppercase-rtdb/functions
- remote-config-diff/functions
- remote-config-server-with-vertex/functions
- taskqueues-backup-images/functions
- test-functions-jest-ts/functions
- test-functions-jest/functions
- test-functions-mocha/functions
- testlab-to-slack/functions
- youtube/functions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
197 files changed
+17859
-15365
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments