Skip to content

accept consoleApiKey from getProviderData #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

dferber90
Copy link
Collaborator

In the 0.2.0 release of @flags-sdk/statsig we accidentally renamed the consoleApiKey option to statsigConsoleApiKey.

This PR brings back consoleApiKey, while also maintaining backwards compatibility to the 0.2.0 release by accepting statsigConsoleApiKey as an alternative. consoleApiKey will be preferred to statsigConsoleApiKey in case both are provided.

  const statsigData = await getProviderData({
-    statsigConsoleApiKey: process.env.STATSIG_CONSOLE_API_KEY,
+    consoleApiKey: process.env.STATSIG_CONSOLE_API_KEY,
    projectId: process.env.STATSIG_PROJECT_ID,
  })

Copy link

vercel bot commented Feb 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
summer-sale ✅ Ready (Inspect) Visit Preview Feb 27, 2025 3:42pm

@dferber90 dferber90 requested a review from a team February 27, 2025 15:42
@dferber90 dferber90 enabled auto-merge (squash) February 27, 2025 15:43
@dferber90 dferber90 merged commit 9a687cb into main Feb 27, 2025
12 checks passed
@dferber90 dferber90 deleted the fix-statsig-get-provider-data branch February 27, 2025 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants