diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f4aad4..b6495fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index e7c39df..f963fd6 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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. diff --git a/pubspec.yaml b/pubspec.yaml index 9bc5161..8422f30 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"