-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: variant feature status - client specification update #536
Conversation
2953c43
to
51e601b
Compare
@@ -32,18 +32,14 @@ export interface Variant { | |||
name: string; | |||
enabled: boolean; | |||
payload?: Payload; | |||
feature_enabled?: boolean; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this one to be optional here? 🤔 Would it break anything if we made it required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can make it required in next version. I'd like to avoid breaking "fallback variant" interface
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just the one question.
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [unleash-client](https://togithub.com/Unleash/unleash-client-node) | [`5.0.0` -> `5.3.0`](https://renovatebot.com/diffs/npm/unleash-client/5.0.0/5.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/unleash-client/5.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/unleash-client/5.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/unleash-client/5.0.0/5.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/unleash-client/5.0.0/5.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Unleash/unleash-client-node (unleash-client)</summary> ### [`v5.3.0`](https://togithub.com/Unleash/unleash-client-node/releases/tag/v5.3.0) [Compare Source](https://togithub.com/Unleash/unleash-client-node/compare/v5.2.0...v5.3.0) #### What's Changed - fix: backward compatibility by [@​gastonfournier](https://togithub.com/gastonfournier) in [https://github.com/Unleash/unleash-client-node/pull/540](https://togithub.com/Unleash/unleash-client-node/pull/540) **Full Changelog**: Unleash/unleash-client-node@v5.2.0...v5.3.0 ### [`v5.2.0`](https://togithub.com/Unleash/unleash-client-node/releases/tag/v5.2.0) [Compare Source](https://togithub.com/Unleash/unleash-client-node/compare/v5.1.0...v5.2.0) #### What's Changed - chore(deps): update dependency [@​types/semver](https://togithub.com/types/semver) to v7.5.5 by [@​renovate](https://togithub.com/renovate) in [https://github.com/Unleash/unleash-client-node/pull/527](https://togithub.com/Unleash/unleash-client-node/pull/527) - feat: Backoff based on HTTP statuses by [@​chriswk](https://togithub.com/chriswk) in [https://github.com/Unleash/unleash-client-node/pull/537](https://togithub.com/Unleash/unleash-client-node/pull/537) **Full Changelog**: Unleash/unleash-client-node@v5.1.0...v5.2.0 ### [`v5.1.0`](https://togithub.com/Unleash/unleash-client-node/releases/tag/v5.1.0) [Compare Source](https://togithub.com/Unleash/unleash-client-node/compare/v5.0.0...v5.1.0) #### What's Changed - feat: variant feature status - client specification update by [@​Tymek](https://togithub.com/Tymek) in [https://github.com/Unleash/unleash-client-node/pull/536](https://togithub.com/Unleash/unleash-client-node/pull/536) **Full Changelog**: Unleash/unleash-client-node@v5.0.0...v5.1.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 7pm every weekday,before 5am every weekday" in timezone Europe/Madrid, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/Unleash/unleash). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44MS4zIiwidXBkYXRlZEluVmVyIjoiMzcuODEuMyIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
About the changes
Adds a new "feature_enabled" property to the variant response, similar to Unleash/unleash-client-python#285
https://linear.app/unleash/issue/SR-152/node-sdk-add-feature-enabled-property-to-variant-response