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

Commit fb080dd

Browse files
author
LaunchDarklyReleaseBot
committed
Releasing version 7.0.0
1 parent 5aa56fc commit fb080dd

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

CHANGELOG.md

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

33
All notable changes to the LaunchDarkly Server-Side SDK for Node.js will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [7.0.0] - 2022-12-07
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/server-side/node-js/migration-6-to-7).
13+
14+
### Added:
15+
- The types `LDContext`, `LDSingleKindContext`, and `LDMultiKindContext` define the new "context" model.
16+
- 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.
17+
- Added `contextKeysCapacity` and `contextKeysFlushInterval` to `LDOptions` these supersede the equivalent `user` options.
18+
19+
### Changed _(breaking changes from 6.x)_:
20+
- 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.
21+
- Evaluations now treat the `anonymous` attribute as a simple boolean, with no distinction between a false state and an undefined state.
22+
- `LDClient.getUser` has been replaced with `LDClient.getContext`.
23+
- `privateAttributeNames` has been replaced with `privateAttributes` in `LDOptions`. Private attributes now allow using attribute references.
24+
25+
### Changed (behavioral changes):
26+
- Analytics event data now uses a new JSON schema due to differences between the context model and the old user model.
27+
28+
### Removed:
29+
- Removed all types, fields, and methods that were deprecated as of the most recent 6.x release.
30+
- Removed the `secondary` meta-attribute in `LDUser`.
31+
- The `alias` method no longer exists because alias events are not needed in the new context model.
32+
- The `inlineUsersInEvents` options no longer exist because they are not relevant in the new context model.
33+
34+
## Deprecated:
35+
- Deprecated `userKeysCapacity` and `userKeysFlushInterval` in `LDOptions`. New `context` equivalents have been added.
36+
537
## [6.4.3] - 2022-09-06
638
### Fixed:
739
- The `TestDataRuleBuilder` was using an incorrect field name for operators, which would prevent rules from working correctly with the `TestData` feature. (Thanks, [LiamMorrow](https://github.com/launchdarkly/node-server-sdk/issues/258)!)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "launchdarkly-node-server-sdk",
3-
"version": "6.4.3",
3+
"version": "7.0.0",
44
"description": "LaunchDarkly Server-Side SDK for Node.js",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)