Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 873a15e

Browse files
author
LaunchDarklyReleaseBot
committed
Releasing version 7.0.0
1 parent f2a2e71 commit 873a15e

File tree

4 files changed

+4787
-4300
lines changed

4 files changed

+4787
-4300
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,44 @@
22

33
All notable changes to the LaunchDarkly React Native SDK will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [7.0.0] - 2023-02-24
6+
The latest version of this SDK supports LaunchDarkly's new custom contexts feature. Contexts are an evolution of a previously-existing concept, "users." Contexts let you create targeting rules for feature flags based on a variety of different information, including attributes pertaining to users, organizations, devices, and more. You can even combine contexts to create "multi-contexts."
7+
8+
This feature is only available to members of LaunchDarkly's Early Access Program (EAP). If you're in the EAP, you can use contexts by updating your SDK to the latest version and, if applicable, updating your Relay Proxy. Outdated SDK versions do not support contexts, and will cause unpredictable flag evaluation behavior.
9+
10+
If you are not in the EAP, only use single contexts of kind "user", or continue to use the user type if available. If you try to create contexts, the context will be sent to LaunchDarkly, but any data not related to the user object will be ignored.
11+
12+
For detailed information about this version, please refer to the list below. For information on how to upgrade from the previous version, please read the [migration guide](https://docs.launchdarkly.com/sdk/client-side/react/react-native-migration-6-to-7).
13+
14+
### Added:
15+
16+
- The types `LDContext`, `LDSingleKindContext`, and `LDMultiKindContext` define the new "context" model.
17+
18+
### Changed:
19+
20+
- `LDConfig` changes to be consistent with the Javascript SDK:
21+
22+
- `pollUri`, `streamUri`, `eventsUri` are now `pollUrl`, `streamUrl` and `eventsUrl`.
23+
- `eventsCapacity` is now `eventCapacity`
24+
- `eventsFlushIntervalMillis`, `connectionTimeoutMillis`, `pollingIntervalMillis`, `backgroundPollingIntervalMillis` are now `flushInterval`, `connectionTimeout`, `pollingInterval`, `backgroundPollingInterval`.
25+
- `diagnosticRecordingIntervalMillis` is now `diagnosticRecordingInterval`
26+
- `maxCachedUsers` is now `maxCachedContexts`
27+
- `allUserAttributesPrivate`, `privateAttributeNames` are now `allAttributesPrivate` and `privateAttributes`
28+
29+
- `LDUser` type is now imported from the Javascript sdk common package.
30+
- All SDK methods that took an `LDUser` parameter now take an `LDContext`. `LDUser` is now a subset of `LDContext`, so existing code based on users will still work.
31+
32+
### Removed:
33+
34+
- Support for React Native versions < 0.69 have been removed. The LaunchDarkly React Native SDK now supports only React Native versions >=0.69.0 <0.71.0.
35+
- Removed the `secondary` meta-attribute in `LDUser`.
36+
- The `alias` method no longer exists because alias events are not needed in the new context model.
37+
- The `autoAliasingOptOut` and `inlineUsersInEvents` options no longer exist because they are not relevant in the new context model.
38+
39+
### Deprecated:
40+
41+
- The `LDUser` object has been deprecated. Support for `LDUser` is maintained to simplify the upgrade process, but it is recommended to use `LDContext` in the shape of either `LDSingleKindContext` or `LDMultiKindContext`.
42+
543
## [6.3.1] - 2023-02-23
644
### Changed:
745
- Update ManualTestApp iOS pod dependency launchdarkly-react-native-client-sdk to 6.3.0.

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-react-native-client-sdk",
3-
"version": "6.3.1",
3+
"version": "7.0.0",
44
"description": "LaunchDarkly Client-side SDK for React Native",
55
"main": "index.js",
66
"types": "index.d.ts",

0 commit comments

Comments
 (0)