Repository navigation
chore(shared): upgrade GrowthBook SDK to 1.6.2 - #7552
Merged
Merged
Conversation
Bumps @growthbook/growthbook to 1.6.2 (the version daily-api runs) and @growthbook/growthbook-react to 1.6.2, the first line with React 19 in its peer range. The lockfile now holds a single core version; before, the app used 0.26.0 while the React wrapper pulled 0.27.0. The 1.x React hooks throw without a GrowthBookProvider, where 0.17 returned the fallback. AuthContext and our useFeature/useFeatureIsOn wrappers read the context directly so trees without a provider (tests, storybook, early shell) keep getting default values. The storybook mock gains the named exports growthbook-react 1.x re-exports from core. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FodmVtyvRGwavusAekpEXw
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
@growthbook/growthbookfrom 0.26.0 to 1.6.2, the version daily-api runs, and@growthbook/growthbook-reactfrom 0.17.0 to 1.6.2. 1.5.0 was the first React wrapper with React 19 in its peer range.AuthContextand ouruseFeature/useFeatureIsOnwrappers now readGrowthBookContextdirectly, so trees without a provider (tests, Storybook) still get default values.@growthbook/growthbookmock gets the named exports that growthbook-react 1.x re-exports from core.Checked in the 1.x source:
setFeaturesstill setsready,getFeatures,setAttributes(now returns a promise) andtrackingCallback(experiment, result)keep their behavior, and per-experiment tracking dedup is unchanged. Bucketing uses the same hashing, so existing users keep their variations.Events
Did you introduce any new tracking events?
No
Experiment
Did you introduce any new experiments?
No
Manual Testing
Caution
Please make sure existing components are not breaking/affected by this PR
POST /e/x) fires once per experiment and the app shell still waits for flags.Generated by Claude Code
Preview domain
https://growthbook-1x.preview.app.daily.dev