Skip to content

feat: type opt-in value as Boolean across client SDKs - #846

Merged
roncohen merged 1 commit into
mainfrom
feat/opt-in-boolean-value
Nov 30, 2026
Merged

roncohen merged 1 commit into
mainfrom
feat/opt-in-boolean-value

Conversation

@roncohen

Copy link
Copy Markdown
Contributor

Follow-up to #844. This commit was pushed after #844 merged, so it didn't land.

Opt-in only applies to Boolean flags, so opt-in entries now have value: boolean (computed as value === true) instead of any JSON value. This covers the Browser, React, Vue and React Native SDKs, which share the Browser SDK's OptInFlag type.

  • Type tests in all four SDKs check that flag.value is a boolean and that flag.isEnabled is gone. The Browser type test also checks that getFeatures() is removed.
  • READMEs and changesets say "a Boolean value".

Browser, React, Vue and React Native tests pass, including type tests.

@reflag-review reflag-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: medium

no actionable findings

@roncohen
roncohen added this pull request to the merge queue Nov 30, 2026
Merged via the queue into main with commit dac7f7f Nov 30, 2026
9 checks passed
@roncohen
roncohen deleted the feat/opt-in-boolean-value branch November 30, 2026 20:35
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.

1 participant