Skip to content

Commit

Permalink
chore: Merge pull request #38 from Unleash/version-bump
Browse files Browse the repository at this point in the history
chore: version bump
  • Loading branch information
kwasniew authored Feb 14, 2024
2 parents 4ce0799 + 1216726 commit 091c1b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.5.0

* Feat: ability to set multiple context fields at once without providing full context
* Chore: shared_preferences and uuid dependencies update (non-breaking changes)

## 1.4.0

* Feat: appName and environment are automatically send to backend and reported in impression events
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if (payload != null) {

#### Updating the Unleash context

The [Unleash context](https://docs.getunleash.io/reference/unleash-context) is used to evaluate features against attributes of a the current user. To update and configure the Unleash context in this SDK, use the `updateContext` and `setContextField` methods.
The [Unleash context](https://docs.getunleash.io/reference/unleash-context) is used to evaluate features against attributes of a the current user. To update and configure the Unleash context in this SDK, use the `updateContext`, `setContextField` and `setContextFields` methods.

The context you set in your app will be passed along to the Unleash proxy or the front-end API as query parameters for feature evaluation.

Expand All @@ -97,6 +97,8 @@ The `updateContext` method will replace the entire

The `setContextField` method only acts on the property that you choose. It does not affect any other properties of the Unleash context.

The `setContextFields` method only acts on the properties that you choose. It does not affect any other properties of the Unleash context.

```dart
// Used to set the context fields, shared with the Unleash Proxy. This
// method will replace the entire (mutable part) of the Unleash Context.
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: A Flutter/Dart client that can be used together with the unleash-pr
homepage: https://github.com/Unleash/unleash_proxy_client_flutter
repository: https://github.com/Unleash/unleash_proxy_client_flutter
issue_tracker: https://github.com/Unleash/unleash_proxy_client_flutter
version: 1.4.0
version: 1.5.0

environment:
sdk: ">=2.18.0 <4.0.0"
Expand Down

0 comments on commit 091c1b0

Please sign in to comment.