-
Notifications
You must be signed in to change notification settings - Fork 10
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: dependent features #55
Conversation
if (strategyVariant) { | ||
return strategyVariant; | ||
} | ||
|
||
if (feature?.variants) { | ||
if ( | ||
(feature?.strategies.length === 0 || hasEnabledStrategy) && |
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.
Fix for another corner case in client spec
@@ -55,7 +55,7 @@ | |||
"commander": "11.0.0", | |||
"murmurhash3js": "3.0.1", | |||
"semver": "7.5.4", | |||
"unleash-client": "4.1.0", | |||
"unleash-client": "4.2.0-beta.0", |
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.
types-only, so beta here is OK
lib/src/utils.d.ts
Outdated
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.
commited before by mistake, not source file
[![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/nextjs](https://togithub.com/Unleash/unleash-client-nextjs) | [`1.2.0` -> `1.3.0`](https://renovatebot.com/diffs/npm/@unleash%2fnextjs/1.2.0/1.3.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@unleash%2fnextjs/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@unleash%2fnextjs/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@unleash%2fnextjs/1.2.0/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@unleash%2fnextjs/1.2.0/1.3.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>Unleash/unleash-client-nextjs (@​unleash/nextjs)</summary> ### [`v1.3.0`](https://togithub.com/Unleash/unleash-client-nextjs/releases/tag/v1.3.0) [Compare Source](https://togithub.com/Unleash/unleash-client-nextjs/compare/v1.2.0...v1.3.0) #### What's Changed - Feat: dependent features by [@​Tymek](https://togithub.com/Tymek) in [https://github.com/Unleash/unleash-client-nextjs/pull/55](https://togithub.com/Unleash/unleash-client-nextjs/pull/55) - Update dependencies by [@​Tymek](https://togithub.com/Tymek) in [https://github.com/Unleash/unleash-client-nextjs/pull/56](https://togithub.com/Unleash/unleash-client-nextjs/pull/56) **Fix for server-side SDK: Hashing for variants was improved.** Previously when using *Variants* in combination with *Gradual Rollout*, distribution of *Variants* could be significantly skewed. This version complies with current [Unleash Client Specification](https://togithub.com/Unleash/client-specification). If you're using *Frontend API* and *Gradual Rollout* strategies and *Variants* at the same time it's recommended to stay up to date with [Unleash](https://togithub.com/Unleash/unleash/releases) updates to benefit from this improvement. **Full Changelog**: Unleash/unleash-client-nextjs@v1.2.0...v1.3.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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/simonknittel/sinister-incorporated). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMDMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjEwMy4xIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCJ9-->
About the changes
Relates to roadmap item: Unleash/unleash#2255