Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

## How do we test the changes introduced in this PR?

## Extra Notes
## Extra Notes
8 changes: 8 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
1.6.0 (XXX XX, 2026)
- Updated TypeScript declaration to use `namespace` instead of `module` for compatibility with TypeScript 7 (Related to issue https://github.com/splitio/javascript-client/issues/920).
- Updated @splitsoftware/splitio-commons package to version 3.0.1, which:
- adds functionality to provide metadata alongside SDK update and READY events. Read more in our docs.
- updates the order of storage operations to prevent inconsistent states when using the `InLocalStorage` module and the browser’s `localStorage` fails due to quota limits.
- updates internal modules to handle `null` values from `/splitChanges` response.
- updates some dependencies for vulnerability fixes.

1.5.0 (October 31, 2025)
- Added new configuration for Fallback Treatments, which allows setting a treatment value and optional config to be returned in place of "control", either globally or by flag. Read more in our docs.
- Added `client.getStatus()` method to retrieve the client readiness status properties (`isReady`, `isReadyFromCache`, etc).
Expand Down
74 changes: 53 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splitsoftware/splitio-react-native",
"version": "1.5.0",
"version": "1.6.0",
"description": "Split SDK for React Native",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",
Expand Down Expand Up @@ -61,7 +61,7 @@
},
"homepage": "https://github.com/splitio/react-native-client#readme",
"dependencies": {
"@splitsoftware/splitio-commons": "2.8.0"
"@splitsoftware/splitio-commons": "3.0.1-rc.1"
},
"devDependencies": {
"@react-native-community/eslint-config": "^3.2.0",
Expand Down
8 changes: 7 additions & 1 deletion src/platform/RNSignalListener.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { ISignalListener } from '@splitsoftware/splitio-commons/src/listeners/types';
import { CLEANUP_REGISTERING, CLEANUP_DEREGISTERING } from '@splitsoftware/splitio-commons/src/logger/constants';
import { ISdkFactoryContext } from '@splitsoftware/splitio-commons/src/sdkFactory/types';
import { ISyncManager } from '@splitsoftware/splitio-commons/src/sync/types';
import { ISettings } from '@splitsoftware/splitio-commons/src/types';
import { AppState, AppStateStatus } from 'react-native';
Expand All @@ -21,8 +22,13 @@ export class RNSignalListener implements ISignalListener {
private _lastTransition: Transition | undefined;
private _appStateSubscription: NativeEventSubscription | undefined;
private _lastBgTimestamp: number | undefined;
private settings: ISettings & { flushDataOnBackground?: boolean };
private syncManager: ISyncManager;

constructor(private syncManager: ISyncManager, private settings: ISettings & { flushDataOnBackground?: boolean }) {}
constructor({ syncManager, settings }: Pick<ISdkFactoryContext, 'syncManager' | 'settings'>) {
this.settings = settings;
this.syncManager = syncManager!;
}

private _getTransition(nextAppState: AppStateStatus): Transition {
// 'inactive' iOS state and 'active' state are considered foreground states.
Expand Down
Loading
Loading