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: variant feature status - client specification update #536

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

Tymek
Copy link
Member

@Tymek Tymek commented Nov 9, 2023

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

Copy link

github-actions bot commented Nov 9, 2023

Coverage Status

coverage: 91.376% (-0.07%) from 91.45%
when pulling 2953c43 on feat/variant-interface-with-feature-enabled
into 077ea75 on main.

@Tymek Tymek force-pushed the feat/variant-interface-with-feature-enabled branch from 2953c43 to 51e601b Compare November 9, 2023 12:24
@Tymek Tymek requested a review from nunogois November 9, 2023 13:23
@@ -32,18 +32,14 @@ export interface Variant {
name: string;
enabled: boolean;
payload?: Payload;
feature_enabled?: boolean;
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

@nunogois nunogois left a 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.

@Tymek Tymek merged commit 40b3a2d into main Nov 9, 2023
4 checks passed
@Tymek Tymek deleted the feat/variant-interface-with-feature-enabled branch November 9, 2023 14:18
renovate bot added a commit to Unleash/unleash that referenced this pull request Dec 5, 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-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
[@&#8203;gastonfournier](https://togithub.com/gastonfournier) in
[Unleash/unleash-client-node#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
[@&#8203;types/semver](https://togithub.com/types/semver) to v7.5.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[Unleash/unleash-client-node#527
- feat: Backoff based on HTTP statuses by
[@&#8203;chriswk](https://togithub.com/chriswk) in
[Unleash/unleash-client-node#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
[@&#8203;Tymek](https://togithub.com/Tymek) in
[Unleash/unleash-client-node#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants