Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare 5.0.0 release #83

Merged
merged 261 commits into from
Nov 30, 2022
Merged

prepare 5.0.0 release #83

merged 261 commits into from
Nov 30, 2022

Conversation

LaunchDarklyReleaseBot
Copy link
Contributor

[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 LDUser now operate on LDContext.

Changed:

  • LDClient.getUser has been replaced with LDClient.getContext.
  • privateAttributeNames has been replaced with privateAttributes. 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 alias method has been removed from LDClient.
  • Support for the secondary attribute has been removed from LDUser. 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.
  • allowFrequentDuplicateEvents has been removed from LDOptions. This had been deprecated in a previous version. The default behavior is as if this option had been set to true.
  • autoAliasingOptOut has been removed from LDOptions. This functionality has been superseded by multi-context support.
  • inlineUsersInEvents has been removed from LDOptions. Changes associated with contexts has removed the needed for this option.

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.

eli-darkly and others added 30 commits October 31, 2019 15:30
initial move of code from js-client-sdk-private
use spread operator instead of Object.assign
re-add deprecation comment on samplingInterval
remove unused Rollup plugins, update dependencies
(1) use new test helpers + misc test cleanup
kinyoklion and others added 25 commits November 18, 2022 11:34
…extkeys-logic

[sc-177798] Export getcontextkeys logic
…finiton-of-getcontextkeys

[sc-177975] Export type definiton of getContextKeys
…dk-for-u2c-release

[sc-178313] Replace instances of user for release
[sc-178324] Merge u2c changes for major release
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot merged commit b746d19 into main Nov 30, 2022
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot deleted the release-5.0.0 branch November 30, 2022 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.