Skip to content

JavaScript SDK Core 5.0.0

Choose a tag to compare

@Kameleoon Kameleoon released this 03 Oct 09:30
· 57 commits to main since this release

Breaking Changes

  • isUniqueIdentifier parameter has been removed from methods flush, getRemoteVisitorData and trackConversion
  • Previously deprecated method onConfigurationUpdate has been removed from SDKs. Use onEvent method with EventType.ConfigurationUpdate to achieve the same effect.
  • Previously deprecated field domain of SDKConfiguration has been removed from SDKs. Use cookieDomain field of SDKConfiguration instead.
  • Parameter text of KameleoonResponseType used in custom requester implementation is now mandatory, for the vast majority of implementations like fetch, axios or node-fetch it won't require any changes.
  • Method initialize no more accepts useCache boolean parameter. Using storage cached client configuration on failed configuration request is now default behavior.

Features

  • Added new UniqueIdentifier data to be used instead of removed isUniqueIdentifier parameters in some methods
  • Added new SDKConfiguration parameter trackingInterval to set the interval between SDK tracking network requests in milliseconds, default value is 1000, which is also maximum interval, minimum value is 100
  • FeatureVariableType returned from the methods obtaining feature flag variables can now have two new VariableTypes - VariableType.JS containing a string of JavaScript code and VariableType.CSS containing a string with CSS code

Patch Changes