From 44cdb19911bb3bbb8129c5f829cd503f663b75c9 Mon Sep 17 00:00:00 2001 From: Daniel Young Lee Date: Thu, 5 Sep 2024 12:32:03 -0700 Subject: [PATCH 1/2] Add @deprecated annotation on functions.config() API --- src/v1/config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/v1/config.ts b/src/v1/config.ts index 158325e56..25654a9c0 100644 --- a/src/v1/config.ts +++ b/src/v1/config.ts @@ -38,6 +38,8 @@ export function resetCache(): void { * keys or other settings. You can set configuration values using the * Firebase CLI as described in * https://firebase.google.com/docs/functions/config-env. + * + * @deprecated Using Cloud Runtime Configuration API is discouraged. See https://firebase.google.com/docs/functions/config-env#migrating_from_environment_configuration */ export function config(): Record { // K_CONFIGURATION is only set in GCFv2 From b981c301df58bbb3099f6a4c36e0a5bbc3a57c92 Mon Sep 17 00:00:00 2001 From: Daniel Young Lee Date: Fri, 6 Sep 2024 07:14:12 -0700 Subject: [PATCH 2/2] Nit. --- src/v1/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v1/config.ts b/src/v1/config.ts index 25654a9c0..2eafa3150 100644 --- a/src/v1/config.ts +++ b/src/v1/config.ts @@ -39,7 +39,7 @@ export function resetCache(): void { * Firebase CLI as described in * https://firebase.google.com/docs/functions/config-env. * - * @deprecated Using Cloud Runtime Configuration API is discouraged. See https://firebase.google.com/docs/functions/config-env#migrating_from_environment_configuration + * @deprecated Using functions.config() is discouraged. See https://firebase.google.com/docs/functions/config-env. */ export function config(): Record { // K_CONFIGURATION is only set in GCFv2