Releases: configcat/react-sdk
Releases · configcat/react-sdk
v5.0.3
v5.0.2
v5.0.1
v5.0.0
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
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
configChangedonce 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
forceRefreshAsyncto 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
clientReadyevent consistent with other SDKs in Auto Polling mode. When the client is offline,clientReadyis emitted as soon as the initial sync with the external cache completes. (Low impact expected.) - Make changes to also emit the
configChangedevent when the local cache is updated as a result of synchronization with the external cache. (Low impact expected.)
v4.8.1
v4.8.0
v4.7.0
v4.6.1
Improvements:
- Make the timing of polling iterations more accurate in Auto Polling mode. (configcat/common-js#106)
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.