Repository navigation
Version Packages (standard) - #636
Merged
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
github-actions
Bot
force-pushed
the
changeset-release/standard
branch
from
November 26, 2026 10:40
a458027 to
d8cadd9
Compare
github-actions
Bot
force-pushed
the
changeset-release/standard
branch
from
November 26, 2026 11:24
73035c4 to
3a29a50
Compare
github-actions
Bot
force-pushed
the
changeset-release/standard
branch
from
November 26, 2026 12:16
3a29a50 to
f503e3b
Compare
dferber90
approved these changes
Nov 26, 2026
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to standard, this PR will be updated.
standardis currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exitonstandard.Releases
flags@5.0.0-standard.0
Major Changes
#639
81b4fdfThanks @dferber90! - The Flags SDK is framework-neutral.flag(),evaluate(),dedupe(),clearDedupeCacheForCurrentRequest(),precompute(),generatePermutations()andgetPrecomputed()come fromflags.flags/nextandflags/sveltekitare removed.A framework gives the SDK the current request through its build plugin, which points the alias
flags/frameworkto the binding of the framework:withFlagsof@flags-sdk/next/plugininnext.config.ts. Only Turbopack is supported, and Next.js 16 is the minimum.flags()of@flags-sdk/sveltekit/viteinvite.config.ts. The binding reads the request withgetRequestEvent()of$app/server, so SvelteKit 2.20 is the minimum, andcreateHandleis optional.Without a plugin, pass the request as before, e.g.
flag(request)in the Pages Router orprecompute(flags, request);precompute()now takes an optional request.The rules of
flags/nextapply to all frameworks. For SvelteKit, this changes: a flag returns itsdefaultValuewhendecidethrows or returnsundefined, the cache of a request is per flag and entities,identifyruns for each evaluation,reportValue: falseis respected, andevaluate()supportsbulkDecideof adapters.New for framework packages: the types
FrameworkBindingandFrameworkRequest, andgetEvaluatedFlagValues(request?), the values which a request evaluated.Without a secret argument, the helpers
encryptFlagValues,decryptFlagValues,encryptOverrides,decryptOverrides,encryptFlagDefinitions,decryptFlagDefinitions,createAccessProof,verifyAccessProofandverifyAccessreadFLAGS_SECRETalso from the environment of the framework, e.g.$envof SvelteKit duringvite dev.@flags-sdk/next@0.1.0-standard.0
Minor Changes
81b4fdfThanks @dferber90! - The Next.js integration of the Flags SDK v5:withFlagsof@flags-sdk/next/pluginconnectsflagsto the request of the App Router (headers()andcookies()), andcreateFlagsDiscoveryEndpointcomes from@flags-sdk/next. A flag inside"use cache"fails with a clear error.Patch Changes
81b4fdf]:@flags-sdk/sveltekit@0.1.0-standard.0
Minor Changes
81b4fdfThanks @dferber90! - The SvelteKit integration of the Flags SDK v5:flags()of@flags-sdk/sveltekit/viteconnectsflagsto the request of SvelteKit (getRequestEvent()).createHandleadds the values of the evaluated flags to the page and the endpoint/.well-known/vercel/flags, andcreateFlagsDiscoveryEndpointcreates the endpoint as a route.Patch Changes
81b4fdf]: