Repository navigation
fix: return minimal JSON-safe bootstrap snapshots - #857
Merged
Merged
Conversation
roncohen
marked this pull request as ready for review
December 1, 2026 14:39
roncohen
enabled auto-merge
December 2, 2026 13:32
roncohen
enabled auto-merge
December 2, 2026 13:42
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.
Why
Bootstrap snapshots copy evaluation details the client does not use. They can also contain
undefinedproperties, which Next.js rejects when the snapshot is returned directly fromgetServerSideProps.What changed
undefinedproperties. Keep the flag values and metadata needed to restore client state, record checks, and refresh flags.valuerequired in the Node SDK's snapshot type, so apps can upgrade Node without upgrading their browser SDK at the same time. Node omits flags without an evaluated value; reads still use their fallback. An evaluatednullis preserved.ruleResults. The SDKs still write rule results and their IDs because older v2 readers reject snapshots without them. The full evaluator, raw result APIs, and live response validation are unchanged.Verification
yarn docsand ran the Node, Browser, React, Vue, and React Native test suites.