Skip to content

Releases: configcat/react-sdk

v5.0.3

30 Oct 18:29
53b1172

Choose a tag to compare

Bug fixes:

  • Changes the public API to accept IUser instead of User. (#80)

v5.0.2

17 Oct 13:55
fc86e1f

Choose a tag to compare

Improvements:

  • Configure GitHub workflow to use trusted publishing because of upcoming NPM security changes. (#78)

v5.0.1

02 Sep 14:59
24e582c

Choose a tag to compare

Bug fixes:

  • Update @configcat/sdk to v1.0.1 to fix an issue with entry point resolution in newer React Native applications.
  • Remove dangling sourcemap references from published builds.

v5.0.0

19 Aug 20:08
6465690

Choose a tag to compare

This release replaces the underlying ConfigCat SDK with the new SDK for JavaScript.

This upgrade introduces several minor breaking changes, including the removal of some redundant code from the React SDK.

For a complete list of new features, improvements and changes, please see the new JavaScript SDK's release notes.

v4.9.0

26 May 16:10
e370808

Choose a tag to compare

Improvements:

  • Include the SDK Key in log message of error 1100 ("Your SDK Key seems to be wrong...") (configcat/common-js#112)
  • Mask SDK Key (keep only the last 6 characters visible) when writing it to the log.
  • If available, use monitonic clock (performance.now) instead of system clock (new Date()) for scheduling poll iterations in Auto Polling mode for improved precision and resistance to system clock adjustments (time sync, user initiated clock adjustments, etc.)
  • Correct the internal cache refresh behavior in offline mode: if the client uses an external cache, a synchronization should happen in every case where a fetch operation would happen in online mode. (For example, in Auto Polling mode, the background polling loop should sync with the external cache even when it doesn't initiate config fetch operations.)
  • Eliminate race condition between concurrent cache synchronizations.
  • Emit configChanged once per config refresh operation, eliminate race conditions around cache write, and improve performance in high concurrency situations by deduplicating config refresh instead of config fetch operation only.
  • Correct the intellisense docs for some config caching/refreshing-related APIs.

Bug fixes:

  • Fix a bug that causes an error when user-provided logger, config cache, etc. implementation contains a circular reference. (configcat/common-js#111, configcat/common-js#112)
  • Fix a minor bug in setting type mismatch check. (Type mismatch should also be reported for allowed flag override values.)
  • Fix a minor bug in formatting errors. (Some JS runtimes doesn't include the error message in the stack trace.)
  • Fix a minor bug in FetchError. (Name property should be set to the class name.)

Breaking changes:

  • Change forceRefreshAsync to report failure and log a warning in offline mode only when the client is not configured to use an external cache. (Very low impact expected.) (configcat/common-js#112)
  • Make the clientReady event consistent with other SDKs in Auto Polling mode. When the client is offline, clientReady is emitted as soon as the initial sync with the external cache completes. (Low impact expected.)
  • Make changes to also emit the configChanged event when the local cache is updated as a result of synchronization with the external cache. (Low impact expected.)

v4.8.1

04 Feb 12:44
9577f33

Choose a tag to compare

Bug fixes:

  • Fix a regression introduced in v4.7.0 which stops Auto Polling in development when Strict Mode is enabled. (#68)

v4.8.0

08 Nov 10:19
8f8cc52

Choose a tag to compare

New features:

  • Allow overriding flags using query string parameters. (#63)

v4.7.0

10 Oct 20:50

Choose a tag to compare

🚀 Features

  • Support multiple ConfigCatProvider components (more details)

🐛 Fixes

  • Resolve #54 (nested providers now are supported)

v4.6.1

06 Sep 16:01
c3f024a

Choose a tag to compare

Improvements:

Bug fixes:

  • Check cache expiration in every poll iteration, not just the first one in Auto Polling mode to reduce network traffic when the SDK uses a shared cache (including LocalStorage cache used by instances of a browser app running in multiple browser tabs). (configcat/common-js#106)
  • Synchronize in-memory cache with the external cache in every poll iteration, not just the first one in Auto Polling mode regardless of offline mode to keep in-memory cache up-to-date when the SDK uses a shared cache.
  • Protect poll iterations with try-catch so a potential exception doesn't stop the polling loop in Auto Polling mode.

v4.6.0

02 Apr 15:32
c388ffe

Choose a tag to compare

Improvements:

  • Add React Native sample app.

Bug fixes:

  • Fix regression that made the SDK unusable in React Native apps. (#52)