launchdarkly-node-client-sdk
Advanced tools
+33
-0
@@ -5,2 +5,35 @@ # Change log | ||
| ## [3.0.0] - 2023-01-12 | ||
| 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." | ||
| 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. | ||
| 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. | ||
| 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/node-js/migration-2-to-3). | ||
| ### Added: | ||
| - The types `LDContext`, `LDSingleKindContext`, and `LDMultiKindContext` define the new "context" model. | ||
| - 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. | ||
| ### Changed _(breaking changes from 3.x)_: | ||
| - There is no longer such a thing as a `secondary` meta-attribute that affects percentage rollouts. If you set an attribute with that name in `LDContext`, it will simply be a custom attribute like any other. | ||
| - Evaluations now treat the `anonymous` attribute as a simple boolean, with no distinction between a false state and an undefined state. | ||
| - `LDClient.getUser` has been replaced with `LDClient.getContext`. | ||
| - `privateAttributeNames` has been replaced with `privateAttributes` in `LDOptions`. Private attributes now allow using attribute references. | ||
| - Update the version of typedoc used for documentation generation, and update the documentation generation process. | ||
| ### Changed (behavioral changes): | ||
| - Analytics event data now uses a new JSON schema due to differences between the context model and the old user model. | ||
| ### Removed: | ||
| - Removed all types, fields, and methods that were deprecated as of the most recent 3.x release. | ||
| - Removed the `secondary` meta-attribute in `LDUser`. | ||
| - The `alias` method no longer exists because alias events are not needed in the new context model. | ||
| - The `autoAliasingOptOut` and `inlineUsersInEvents` options no longer exist because they are not relevant in the new context model. | ||
| ### Deprecated: | ||
| - 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`. | ||
| ## [2.2.2] - 2022-12-19 | ||
@@ -7,0 +40,0 @@ ### Fixed: |
+2
-2
| { | ||
| "name": "launchdarkly-node-client-sdk", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "description": "LaunchDarkly Client-Side SDK for Node.js", | ||
@@ -68,3 +68,3 @@ "author": "LaunchDarkly <team@launchdarkly.com>", | ||
| "launchdarkly-eventsource": "1.4.3", | ||
| "launchdarkly-js-sdk-common": "5.0.1", | ||
| "launchdarkly-js-sdk-common": "5.0.2", | ||
| "node-localstorage": "^1.3.1" | ||
@@ -71,0 +71,0 @@ }, |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
83132
3.78%+ Added
- Removed