Releases: launchdarkly/js-sdk-common
Releases · launchdarkly/js-sdk-common
5.0.3
[5.0.3] - 2023-03-21
Changed:
- Update
LDContextto allow for key to be optional. This is used when making an anonymous context with a generated key.
5.0.2
[5.0.2] - 2023-02-15
Changed:
- Removed usage of optional chaining (
?.) to improve compatibility with projects which are using older transpilation tooling.
5.0.1
[5.0.1] - 2023-01-10
Changed:
- Updated all types in
typings.d.tsto be exported. This is to ensure that those types are included in generated documentation of dependent SDKs.
4.3.3
5.0.0
[5.0.0] - 2022-11-30
This major version release of js-sdk-common corresponds to the upcoming releases of the js-client-sdk v3 and react-client-sdk v3, and cannot be used with earlier SDK versions.
Added:
- Replaced users with contexts. A context is a generalized way of referring to the people, services, machines, or other resources that encounter feature flags in your product. All methods which previously operated on
LDUsernow operate onLDContext.
Changed:
LDClient.getUserhas been replaced withLDClient.getContext.privateAttributeNameshas been replaced withprivateAttributes. Private attributes now allow using attribute references, which allow for marking nodes in nested JSON private.
Removed:
- Alias events are no longer supported and the
aliasmethod has been removed fromLDClient. - Support for the
secondaryattribute has been removed fromLDUser. If a secondary attribute is included in a context, then it is a normal attribute that can be used in rule evaluation, but it will not affect bucketing. allowFrequentDuplicateEventshas been removed fromLDOptions. This had been deprecated in a previous version. The default behavior is as if this option had been set to true.autoAliasingOptOuthas been removed fromLDOptions. This functionality has been superseded by multi-context support.inlineUsersInEventshas been removed fromLDOptions. Changes associated with contexts has removed the needed for this option.
Deprecated:
- The
LDUserobject has been deprecated. Support forLDUseris maintained to simplify the upgrade process, but it is recommended to useLDContextin the shape of eitherLDSingleKindContextorLDMultiKindContext.
4.3.2
[4.3.2] - 2022-10-20
Added:
- Implemented
jitterandbackofffor streaming connections. When a connection fails the retry will start at thestreamReconnectDelayand will double on each unsuccessful consecutive connection attempt (backoff) to a max of 30 seconds. The delay will be adjusted from 50%-100% of the calculated delay to prevent many clients from attempting to reconnect at the same time (jitter).
Changed:
- Removed usage of
flatMap. (Thanks @mateuszsikora)
3.8.2
[3.8.2] - 2022-10-20
Added:
- Implemented
jitterandbackofffor streaming connections. When a connection fails the retry will start at thestreamReconnectDelayand will double on each unsuccessful consecutive connection attempt (backoff) to a max of 30 seconds. The delay will be adjusted from 50%-100% of the calculated delay to prevent many clients from attempting to reconnect at the same time (jitter).
Changed:
- Removed usage of
flatMap. (Thanks @mateuszsikora)
4.3.1
[4.3.1] - 2022-10-17
Fixed:
- Fixed an issue that prevented the
flag-usedinspector from being called.
4.3.0
[4.3.0] - 2022-10-17
Added:
- Added support for
Inspectorsthat can be used for collecting information for monitoring, analytics, and debugging.
3.8.1
[3.8.1] - 2022-10-17
Fixed:
- Fixed an issue that prevented the
flag-usedinspector from being called.