Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/auto-feedback-late-user.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/bootstrap-public-flags-only.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/browser-framework-collection-values.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/browser-opt-in-value.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-multi-org.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-rules-openfeature.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-rules-plain-wording.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/fix-published-workspace-dependencies.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/node-sdk-collection-values.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/openfeature-node-esm.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/openfeature-sdk-v2.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/opt-in-set-from-hook.md

This file was deleted.

33 changes: 0 additions & 33 deletions .changeset/pre.json

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/react-native-collection-values.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/registered-defaults-cli-v2.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/remove-fallback-flags.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shared-dependency-memoization.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tidy-dependency-scanning.md

This file was deleted.

24 changes: 24 additions & 0 deletions packages/browser-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @reflag/browser-sdk

## 2.0.0

### Major Changes

- 1716cae: Adopt protocol-v2, adding support for multivariate and JSON flags in Browser, React and Vue.
- Browser `getFlag()` and React `useFlag()` return direct values instead of flag wrappers. Vue `useFlag()` returns a ref to the direct value. Replace `.isEnabled` and `.config` access with direct values, using `.value` for Vue refs in script.
- Reads without a default return Booleans, using `false` when unavailable. Pass a positional default to read strings, numbers, arrays, or objects, with TypeScript inferring the return type. Missing values or values of a different top-level type use the default. Pass `null` to accept any JSON value, including null. Nested payload schemas are not validated at runtime.
- React and Vue's optional `Flags` registration checks non-null defaults against each flag's value type, including React Suspense reads. Named-interface and readonly defaults are supported across Browser, React and Vue without losing their inferred value types.
- React `useFlag()` never suspends. Replace `useFlag(key, { suspense: true })` with `useFlagSuspense(key)` to wait for initialization. Use `useIsLoading()` for loading state; existing provider and `useOptInFlags` Suspense options continue to control opt-in loading only.
- Flag reads automatically record checks. Replace flag-level `.track()` and `.requestFeedback()` calls with the client's separate methods or the framework's tracking and feedback hooks/composables.
- Browser `getFlags()` returns a record of direct values; unavailable flags may be `undefined`. Use `getFlagResults()` for diagnostic access without recording checks.
- Bootstrap data must come from Node SDK v2 and be consumed by matching v2 SDKs. Legacy v1 payloads are incompatible. Replace the Browser client's `bootstrappedFlags` option with `bootstrappedState` and pass the complete bootstrap payload.
- Overrides accept direct JSON values: `undefined` clears an override, while `null` is a value. Saved v1 caches and overrides are not reused.
- Bootstrapped clients load opt-in metadata when requested, without replacing server-provided flag values. Successful opt-in changes update both membership and flag values.

Legacy remote configuration is not automatically converted into multivariate flag values.

- 56bedb7: Opt-in entries from `getOptInFlags()` now have a Boolean `value` instead of `isEnabled`. The deprecated `getFeatures()` alias is removed; use `getFlags()`.
- 7e5d5a8: Remove the `fallbackFlags` option. Pass a default to each flag read instead, for example `useFlag("huddles", true)` or `getFlag("model", "quick")`; it's returned whenever the flag has no value. On the server, use a fallback provider to keep evaluating flags when Reflag can't be reached.

### Patch Changes

- c4b6b44: Start automatic feedback surveys when a user ID is first set after the client was created without one, for example with `setContext()` or `updateUser()` after sign-in. Previously, surveys only worked if the client was created with a user. The OpenFeature Browser provider now updates its client's context instead of starting a new client when the first user ID arrives.

## 2.0.0-next.1

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reflag/browser-sdk",
"version": "2.0.0-next.1",
"version": "2.0.0",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
13 changes: 13 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @reflag/cli

## 2.0.0

### Major Changes

- 0fe8795: Generate flag types for SDK v2. Boolean flags are typed as `boolean`, and multivariate flags are typed from their values in the production environment. Add type generation for Vue, and update the coding-agent rules for the v2 SDKs. CLI 2.0 works with SDK v2 only; keep using CLI 1.x for apps on SDK v1.

### Patch Changes

- e438bad: Fix app discovery for users who belong to multiple organizations. `reflag apps list` shows each app's organization, `reflag init` lets you choose an organization, and existing configs resolve their `appId` without requiring an `orgId`. Use `orgId` or `--org-id` to restrict the CLI to one organization. API keys remain scoped to their app.
- 347d4d5: The coding-agent rules no longer say the OpenFeature providers use SDK v1.
- efc1695: Rewrite the coding-agent rules from `reflag rules` in plain language, cover React Native, and note that `fallbackFlags` is replaced by read defaults.
- 1adfced: Update Express and Zod to patched versions. Preserve CLI schema parsing behavior when migrating to Zod 4.

## 2.0.0-next.1

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reflag/cli",
"version": "2.0.0-next.1",
"version": "2.0.0",
"description": "CLI for Reflag service",
"homepage": "https://docs.reflag.com/",
"license": "MIT",
Expand Down
6 changes: 6 additions & 0 deletions packages/flag-evaluation/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @reflag/flag-evaluation

## 2.0.1

### Patch Changes

- a1bd963: Memoize flag and segment results within each evaluation to avoid repeated work in shared dependency graphs. Batch evaluation shares these results across roots, but separate calls and contexts never share cached results. Preserve variant-key matching, rule traces, diagnostic provenance and deduplication, and fail-closed handling of cached dependency errors.

## 2.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/flag-evaluation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reflag/flag-evaluation",
"version": "2.0.0",
"version": "2.0.1",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
Loading
Loading