Skip to content

Commit fdf42f2

Browse files
stable version
1 parent c47208c commit fdf42f2

File tree

6 files changed

+43
-15
lines changed

6 files changed

+43
-15
lines changed

CHANGES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
1.3.0 (September 22, 2025)
2-
- Added `InLocalStorage` export to the `@splitsoftware/splitio-react-native` package. This export can be used to configure the SDK to use `AsyncStorage` or another storage implementation to persist the SDK rollout plan data across app restarts and speed up the initialization.
2+
- Added the `InLocalStorage` export to the `@splitsoftware/splitio-react-native` package. This export can be used to configure the SDK to use `AsyncStorage` or another storage implementation to persist the SDK rollout plan data across app restarts and speed up the initialization.
33
- Added the `initialRolloutPlan` configuration option, to allow preloading the SDK storage with a snapshot of the rollout plan.
44
- Updated the application state listener to sync feature flag definitions when the app returns to the foreground and has exceeded the SDK’s feature refresh interval.
55
- Updated @splitsoftware/splitio-commons package to version 2.6.0.

package-lock.json

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-react-native",
3-
"version": "1.2.1-rc.2",
3+
"version": "1.3.0",
44
"description": "Split SDK for React Native",
55
"main": "lib/commonjs/index.js",
66
"module": "lib/module/index.js",
@@ -61,7 +61,7 @@
6161
},
6262
"homepage": "https://github.com/splitio/react-native-client#readme",
6363
"dependencies": {
64-
"@splitsoftware/splitio-commons": "2.5.1-rc.1"
64+
"@splitsoftware/splitio-commons": "2.6.0"
6565
},
6666
"devDependencies": {
6767
"@react-native-community/eslint-config": "^3.2.0",

src/settings/defaults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type SplitIO from '@splitsoftware/splitio-commons/types/splitio';
22
import { CONSENT_GRANTED } from '@splitsoftware/splitio-commons/src/utils/constants';
33

4-
const packageVersion = '1.2.1-rc.2';
4+
const packageVersion = '1.3.0';
55

66
export const defaults = {
77
startup: {

types/full/index.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,21 @@ declare module JsSdk {
1616
export function SplitFactory(settings: SplitIO.IReactNativeSettings): SplitIO.IBrowserSDK;
1717

1818
/**
19-
* Persistent storage. By default, it uses the browser's LocalStorage API.
19+
* Persistent storage. By default, it uses the Web LocalStorage API if available.
20+
* Consider providing a custom storage wrapper, like [AsyncStorage](https://github.com/react-native-async-storage/async-storage), for Android and iOS targets.
21+
*
22+
* Example:
23+
* ```
24+
* import AsyncStorage from '@react-native-async-storage/async-storage';
25+
* import { SplitFactory, InLocalStorage } from '@splitsoftware/splitio-react-native';
26+
*
27+
* const SDK_CONFIG = {
28+
* ...
29+
* storage: InLocalStorage({
30+
* wrapper: AsyncStorage,
31+
* }),
32+
* }
33+
* ```
2034
*
2135
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#configuring-persistent-cache-for-the-sdk}
2236
*/

types/index.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,21 @@ declare module JsSdk {
1616
export function SplitFactory(settings: SplitIO.IReactNativeSettings): SplitIO.IBrowserSDK;
1717

1818
/**
19-
* Persistent storage. By default, it uses the browser's LocalStorage API if available.
19+
* Persistent storage. By default, it uses the Web LocalStorage API if available.
20+
* Consider providing a custom storage wrapper, like [AsyncStorage](https://github.com/react-native-async-storage/async-storage), for Android and iOS targets.
21+
*
22+
* Example:
23+
* ```
24+
* import AsyncStorage from '@react-native-async-storage/async-storage';
25+
* import { SplitFactory, InLocalStorage } from '@splitsoftware/splitio-react-native';
26+
*
27+
* const SDK_CONFIG = {
28+
* ...
29+
* storage: InLocalStorage({
30+
* wrapper: AsyncStorage,
31+
* }),
32+
* }
33+
* ```
2034
*
2135
* @see {@link https://developer.harness.io/docs/feature-management-experimentation/sdks-and-infrastructure/client-side-sdks/react-native-sdk/#configuring-persistent-cache-for-the-sdk}
2236
*/

0 commit comments

Comments
 (0)