Releases: Kameleoon/client-react
Releases · Kameleoon/client-react
React/React Native 9.3.0
Features
- Added new
onEvent
method retuned fromuseInitialize
hook to handle SDK events with a callback. - Method
onConfigurationUpdate
is now marked asdeprecated
and will be removed in the next major release. UseonEvent(EventType.ConfigurationUpdate, callback)
instead. - Added support of range match type for numeric Custom Data values.
Patch Changes
- Updated dependencies
- @kameleoon/[email protected]
React/React Native 9.2.0
Features
- New method
getActiveFeatureFlags
obtained withuseFeature
hook, which retrieves feature flags that are active for visitor with detailed variation and variables information.
Patch Changes
- Updated dependencies
- @kameleoon/[email protected]
React/React Native 9.1.0
Features
- New Likelihood to Convert targeting condition.
- Added
isInitialized
method obtained fromuseInitialize
hook for checking if the SDK is initialized getRemoteVisitorData
method now accepts new boolean parameterisUniqueIdentifier
to obtain all linked visitors data when working with Cross-device experimentation- Miscellaneous Cross-device experimentation improvements
Patch Changes
- Improved visits data collection logic
- Fixed the issue with when
_
variable was transformed to duplicate identifiera
causingTypeError
- Kameleoon network request headers are now properly used
Browser
condition could throw an error when the browser version wasn't specified on Kameleoon PlatformGeolocation
condition is now case insensitive- SDK Core version is no more sent with tracking
- Updated dependencies
- @kameleoon/[email protected]
React/React Native 9.0.1
Patch Changes
<KameleoonProvider />
React dependency is now properly used- Convert dependency on JavaScript SDK from peer to concrete
React/React Native 9.0.0
Breaking Changes
getReactVisitorCode
method and according hook were removed, instead usegetVisitorCode
methodgetReactNativeVisitorCode
method and according hook were removed, instead usegetVisitorCode
method- Previously deprecated
getBrowserVisitorCode
method and according hook were removed - Most hooks were merged and methods were grouped by hooks:
useAddData
/useTrackConversion
/useFlush
/useRemoteData
/useRemoteVisitorData
/useWarehouseAudience
->useData
,containing all methods from the listed hooksuseFeatureFlagActive
/useFeatureFlags
/useFeatureVariable
/useFeatureVariables
/useFeatureFlagVariationKey
/useVisitorFeatureFlags
/useEngineTrackingCode
->useFeatureFlag
, containing all methods from the listed hooksuseConfigurationUpdate
->useInitialize
, containingonConfigurationUpdate
andinitialize
methodsuseSetLegalConsent
->useVisitorCode
, containinggetVisitorCode
andsetLegalConsent
methods
- React SDK for React Native now requires providing external dependencies
- React SDK no more has React Native related packages in it's dependencies
Features
- Added External Dependencies capabilities
Patch Changes
- Updated dependencies
- @kameleoon/[email protected]
React/React Native SDK 8.5.2
Bug fixes
- Tracking wasn't sent if consent is required
React/React Native SDK 8.5.1
Bug fixes
- Context binding in useSetLegalConsent hook
React/React Native SDK 8.5.0
Bug fixes
- SDK threw an error reading storage when migrating from older SDK versions
- React Native visitor code couldn't be read from storage in certain React Native versions
- React SDK request headers caused CORS errors
Features
- Added new SDK
configuration
parameterrequestTimeout
, which defines maximum time in milliseconds after which any SDK network request will fail
React/React Native SDK 8.4.1
Bug fixes
- Fix nonce for
Conversion
data
React/React Native SDK 8.4.0
Features
- Updated the
getFeatureFlagVariable
function of useFeatureVariable hook to return an object of typeFeatureFlagVariableType
- Enhanced the
getFeatureFlagVariables
function of useFeatureVariables hook to include thekey
field in its return value.
Bug fixes
- Custom Data mapping identifier wasn't tracked correctly