diff --git a/CHANGES.txt b/CHANGES.txt index 7f6fb1a..2041e0f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +0.6.3 (May 15, 2023) + - Updated @splitsoftware/splitio-commons package to version 1.8.2 that includes updated terminology on codebase to be more aligned with current standard without causing a breaking change. The core change is the term split for feature flag on things like logs and IntelliSense comments. + - Updated some transitive dependencies for vulnerability fixes. + 0.6.2 (March 15, 2023) - Updated @splitsoftware/splitio-commons package to version 1.8.1 that includes minor improvements. - Updated some transitive dependencies for vulnerability fixes. @@ -10,7 +14,7 @@ - Added a new impressions mode for the SDK called NONE, to be used in factory when there is no desire to capture impressions on an SDK factory to feed Split's analytics engine. Running NONE mode, the SDK will only capture unique keys evaluated for a particular feature flag instead of full blown impressions. - Updated default value of `scheduler.featuresRefreshRate` config parameter from 30 seconds to 60 seconds. - Updated the synchronization flow to be more reliable in the event of an edge case generating delay in cache purge propagation, keeping the SDK cache properly synced. -- Updated @splitsoftware/splitio-commons package to version 1.7.1, that improves the performance of split evaluations, among other improvements. +- Updated @splitsoftware/splitio-commons package to version 1.7.1, that improves the performance of feature flag evaluations, among other improvements. 0.5.0 (July 6, 2022) - Added a new config option to control the tasks that listen or poll for updates on feature flags and segments, via the new config sync.enabled . Running online Split will always pull the most recent updates upon initialization, this only affects updates fetching on a running instance. Useful when a consistent session experience is a must or to save resources when updates are not being used. diff --git a/README.md b/README.md index 056ec74..773ee00 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![npm version](https://badge.fury.io/js/%40splitsoftware%2Fsplitio-react-native.svg)](https://badge.fury.io/js/%40splitsoftware%2Fsplitio) [![Build Status](https://github.com/splitio/react-native-client/actions/workflows/ci.yml/badge.svg)](https://github.com/splitio/react-native-client/actions/workflows/ci.yml) ## Overview -This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via a Split feature flag to manage your complete customer experience. +This SDK is designed to work with Split, the platform for controlled rollouts, which serves features to your users via feature flags to manage your complete customer experience. [![Twitter Follow](https://img.shields.io/twitter/follow/splitsoftware.svg?style=social&label=Follow&maxAge=1529000)](https://twitter.com/intent/follow?screen_name=splitsoftware) @@ -19,14 +19,14 @@ import { SplitFactory } from '@splitsoftware/splitio-react-native'; // Instantiate the SDK var factory = SplitFactory({ core: { - authorizationKey: 'YOUR_SDK_API_KEY', + authorizationKey: 'YOUR_SDK_KEY', key: 'CUSTOMER_ID' } }); // Set a callback to listen for the SDK_READY event, to make sure the SDK is properly loaded before asking for a treatment client.on(client.Event.SDK_READY, function() { - var treatment = client.getTreatment('SPLIT_NAME'); + var treatment = client.getTreatment('FEATURE_FLAG_NAME'); if (treatment == 'on') { // insert code here for on treatment } else if (treatment == 'off') { @@ -61,8 +61,8 @@ Split has built and maintains SDKs for: * GO [Github](https://github.com/splitio/go-client) [Docs](https://help.split.io/hc/en-us/articles/360020093652-Go-SDK) * iOS [Github](https://github.com/splitio/ios-client) [Docs](https://help.split.io/hc/en-us/articles/360020401491-iOS-SDK) * Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK) -* Javascript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK) -* Javascript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK) +* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK) +* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK) * Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK) * PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK) * Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK) diff --git a/example/src/App.tsx b/example/src/App.tsx index 5c2d822..eeac8d8 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -98,7 +98,7 @@ const App = () => { if (!isReady && !hasTimedout) client.once(client.Event.SDK_READY_TIMED_OUT, () => { setSdkState('SDK has timedout') }); // const [userKey, setUserKey] = useState(); - const [splitName, setSplitName] = useState(); + const [featureFlagName, setFeatureFlagName] = useState(); const [treatment, setTreatment] = useState(); const [eventType, setEventType] = useState(); const [trackResult, setTrackResult] = useState(); @@ -124,16 +124,16 @@ const App = () => { underlineColorAndroid='#0000ff' autoCapitalize='none' /> */} - Split name: + Feature flag name: setSplitName(etSplitName)} - value={splitName} + onChangeText={(etFeatureFlagName) => setFeatureFlagName(etFeatureFlagName)} + value={featureFlagName} underlineColorAndroid='#0000ff' autoCapitalize='none' />