Socket
Socket
Sign inDemoInstall

jest-launchdarkly-mock

Package Overview
Dependencies
17
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2Next

2.1.0

Diff

Changelog

Source

[2.1.0] - 2023-06-06

Changed:

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

Changelog

Source

[2.0.3] - 2023-01-13

Changed:

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

Changelog

Source

[2.0.2] - 2023-01-13

Fixed:

  • Updated example app's react and js sdk versions to fix typescript issues when running tests
launchdarkly
published 2.0.1 •

Changelog

Source

[2.0.1] - 2022-12-13

Added:

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

Changelog

Source

[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.
launchdarkly
published 1.0.6 •

Changelog

Source

[1.0.6] - 2022-07-08

Chores

  • Updated react peer dep to > 17
launchdarkly
published 1.0.5 •

Changelog

Source

[1.0.5] - 2022-06-14

Chores

  • Updated react peer dep to > 17
launchdarkly
published 1.0.3 •

Changelog

Source

[1.0.3] - 2022-05-27

Fixed:

  • Fix withLDConsumer to return children instead of null
  • Only include dist folder on npm publish
launchdarkly
published 1.0.2 •

Changelog

Source

[1.0.2] - 2022-05-23

Fixed:

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

Changelog

Source

[1.0.0] - 2022-03-23

Added:

  • Snake case support
  • Mock ldClient.alias

Fixed:

  • Mock AsyncWithLDProvider now returns a promise
2Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc