Releases: launchdarkly/jest-launchdarkly-mock
Releases · launchdarkly/jest-launchdarkly-mock
2.1.0
2.0.3
[2.0.3] - 2023-01-13
Changed:
- Improved mockFlags docs to make it clear it only works with useFlags
2.0.2
[2.0.2] - 2023-01-13
Fixed:
- Updated example app's react and js sdk versions to fix typescript issues when running tests
2.0.1
[2.0.1] - 2022-12-13
Added:
- The
useLDClientError
mock function has been added. Thank you @manelmadeira.
2.0.0
[2.0.0] - 2022-12-07
The latest version of jest-launchdarkly-mock 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
getContext
mock function has been added.
Removed:
- The
getUser
mock function has been removed. Please usegetContext
instead. - The
alias
mock function has been removed.
1.0.6
[1.0.6] - 2022-07-08
Chores
- Updated react peer dep to > 17
1.0.5
[1.0.5] - 2022-06-14
Chores
- Updated react peer dep to > 17
1.0.3
[1.0.3] - 2022-05-27
Fixed:
- Fix
withLDConsumer
to return children instead of null - Only include dist folder on npm publish
1.0.2
[1.0.2] - 2022-05-23
Fixed:
- The .yarn folder is now excluded from the npm registry
1.0.0
[1.0.0] - 2022-03-23
Added:
- Snake case support
- Mock ldClient.alias
Fixed:
- Mock AsyncWithLDProvider now returns a promise