Skip to content

React/React Native 10.27.0

Choose a tag to compare

@Kameleoon-SDK Kameleoon-SDK released this 28 Aug 10:00
· 3 commits to main since this release

Features

  • Added support for SDK event handlers through the new setEventHandler method:
    • EventType.DataFileUpdate notifies when the SDK data file (configuration) is updated with polling or streaming modes.
    • EventType.HttpRequest notifies when SDK HTTP requests complete successfully or fail.
    • HTTP request events include the request type, HTTP status or failure details, and request duration.
    • Passing null to setEventHandler clears the handler for the selected event type.
  • The onEvent method and the EventType.ConfigurationUpdate event type have been deprecated in favor of setEventHandler with the EventType.DataFileUpdate event type.
  • Deprecate the isInitialized method in favor of isReady.

Patch Changes

  • Updated dependencies
    • @kameleoon/javascript-sdk@4.25.0
  • Fix an issue where a failed configuration fetch marked the in-memory cache as fresh, so a repeated [initialize][initialize] call in an environment with unavailable storage could resolve successfully with an empty configuration instead of fetching again.
  • Targeting conditions of a type unsupported by the SDK are now evaluated as false instead of true, so visitors are no longer targeted by conditions the SDK cannot evaluate.