Skip to content
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

Merged
merged 8 commits into from
Sep 26, 2023
Merged

Feat: dependent features #55

merged 8 commits into from
Sep 26, 2023

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Sep 26, 2023

About the changes

Relates to roadmap item: Unleash/unleash#2255

if (strategyVariant) {
return strategyVariant;
}

if (feature?.variants) {
if (
(feature?.strategies.length === 0 || hasEnabledStrategy) &&
Copy link
Member Author

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

@Tymek Tymek requested a review from kwasniew September 26, 2023 10:29
@@ -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",
Copy link
Member Author

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

Copy link
Member Author

@Tymek Tymek Sep 26, 2023

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

lib/src/evaluateFlags.ts Show resolved Hide resolved
@Tymek Tymek merged commit 64ac847 into main Sep 26, 2023
@Tymek Tymek deleted the feat/dependent-features branch September 26, 2023 11:00
renovate bot referenced this pull request in simonknittel/sinister-incorporated Dec 22, 2023
[![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
(@&#8203;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
[@&#8203;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 [@&#8203;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-->
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.

2 participants