Skip to content

Releases: launchdarkly/jest-launchdarkly-mock

2.1.0

06 Jun 16:31
Compare
Choose a tag to compare

[2.1.0] - 2023-06-06

Changed:

  • useFlags now returns an empty object by default, which matches its actual implementation.

2.0.3

13 Jan 20:29
Compare
Choose a tag to compare

[2.0.3] - 2023-01-13

Changed:

  • Improved mockFlags docs to make it clear it only works with useFlags

2.0.2

13 Jan 18:36
Compare
Choose a tag to compare

[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

13 Dec 21:13
Compare
Choose a tag to compare

[2.0.1] - 2022-12-13

Added:

  • The useLDClientError mock function has been added. Thank you @manelmadeira.

2.0.0

07 Dec 19:46
Compare
Choose a tag to compare

[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 use getContext instead.
  • The alias mock function has been removed.

1.0.6

08 Jul 19:18
Compare
Choose a tag to compare

[1.0.6] - 2022-07-08

Chores

  • Updated react peer dep to > 17

1.0.5

14 Jun 19:26
Compare
Choose a tag to compare

[1.0.5] - 2022-06-14

Chores

  • Updated react peer dep to > 17

1.0.3

27 May 19:09
Compare
Choose a tag to compare

[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

24 May 02:57
Compare
Choose a tag to compare

[1.0.2] - 2022-05-23

Fixed:

  • The .yarn folder is now excluded from the npm registry

1.0.0

23 Mar 19:43
Compare
Choose a tag to compare

[1.0.0] - 2022-03-23

Added:

  • Snake case support
  • Mock ldClient.alias

Fixed:

  • Mock AsyncWithLDProvider now returns a promise