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 3.0.0 release #165

Merged
merged 206 commits into from
Dec 7, 2022
Merged

prepare 3.0.0 release #165

merged 206 commits into from
Dec 7, 2022

Conversation

LaunchDarklyReleaseBot
Copy link
Contributor

[3.0.0] - 2022-12-07

The latest version of this SDK supports LaunchDarkly's new custom contexts feature. Contexts are an evolution of a previously-existing concept, "users." For more information please read the JavaScript SDK's latest release notes.

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.

Added:

  • The context provider configuration option has been added.

Fixed:

  • We fixed a bug where using native Object functions on the flags proxy object results in errors. This was reported in issue #162.

Deprecated:

  • The user provider configuration option has been deprecated. Please use context instead.

yusinto and others added 30 commits December 17, 2019 12:35
# Conflicts:
#	package-lock.json
#	package.json
#	src/initLDClient.test.ts
#	src/initLDClient.ts
[ch59533] Fix package build logic when setting wrapper version
# Conflicts:
#	package-lock.json
#	package.json
…-from-unit-test

Update withLDProvider.test.tsx
* Add tests for the LDProvider

* Add LDProvider component

* Add LDProvider to main export

* Update provider tests

* Remove unused EnhancedComponent

* Abstract function to generate react options

* add waitForUserToInitializeClient flag to Provider

* rename to LDProvider.tsx

* fix tests

* remove async from componentDidMount

* fixes from CR

* add test

* cleanup

* update types for componentDidUpdate

* await initLDClient

Co-authored-by: Nicholas Mitchell <nicholas@netlify.com>
Co-authored-by: Martin Heller <mheller@testo.de>
XieX and others added 24 commits August 26, 2022 13:14
…-flag-evaluation-events-on-flag

Flag evaluation events on flag read
…d-client-init-errors-in-react-sdk

Add error hook
…act-sdk-releaser-config

Update releaser config
* Update js sdk version to prerelease

* Renamed LDContext to ReactSdkContext

* Added context to provider config. Replaced LDUser with context in init client function. Deprecated user prop in provider config.

* Added getContextOrUser helper function. Replaced user props with getContextOrUser function.

* Update js sdk to v3 alpha 2 to fix messages error

* Replaced LDUser with LDContext. Added kind prop to test cases.

* Update circleci node image version

* Renamed wording "user" to "context". Added more test cases for provider.

* Added more unit tests to cover backwards compatibility and new context. Renamed user to context in test data and comments.

* Force async example to use js sdk alpha version

* Update package.json

* Add manual resolution for acorn to make webpack 4 work with optional chaining. Add context to init code.

* [sc-177377] Update js dep to alpha3

* Update alpha packages

* Removed redundant null coalescence. Added more unit tests for getContextOrUser.

* Update package.json

* Remove un-used import

* Minor comment fixes

* Removed unnecessary context arg in example init

* Update app.js

* Set default context kind to user

* Create CODEOWNERS

Co-authored-by: Yusinto Ngadiman <yus@launchdarkly.com>
* [sc-178466] Fix native function proxy errors

* Added unit tests.

* Fix ts any error

* Update getFlagsProxy.test.ts

Co-authored-by: Yusinto Ngadiman <yus@launchdarkly.com>
Co-authored-by: Yusinto Ngadiman <yus@launchdarkly.com>
@@ -27,7 +27,7 @@
"dependencies": {
"@babel/polyfill": "^7.2.5",
"express": "^4.16.4",
"launchdarkly-react-client-sdk": "^2.22.1",
"launchdarkly-react-client-sdk": "^3.0.0-alpha.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to update this once 3.0.0 become public.

@LaunchDarklyReleaseBot LaunchDarklyReleaseBot merged commit a66fcdf into main Dec 7, 2022
@LaunchDarklyReleaseBot LaunchDarklyReleaseBot deleted the release-3.0.0 branch December 7, 2022 18:54
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.

None yet