Skip to content

Commit 52ef722

Browse files
Merge pull request #108 from splitio/custom-logger
Update SDK to support log level when logger is provided
2 parents 4f5fe6f + 89c9967 commit 52ef722

File tree

5 files changed

+16
-13
lines changed

5 files changed

+16
-13
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
1.4.1 (October 8, 2025)
2+
- Bugfix - Updated @splitsoftware/splitio-commons package to version 2.7.1, which fixes the `debug` option to support log levels when the `logger` option is used.
3+
14
1.4.0 (October 7, 2025)
25
- Added an EventSource polyfill to fall back when native EventSource modules and the global EventSource object are unavailable, providing out-of-the-box streaming support on more platforms and Expo projects.
36
- Added support for custom loggers: added `logger` configuration option and `factory.Logger.setLogger` method to allow the SDK to use a custom logger.

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.4.0",
3+
"version": "1.4.1",
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.7.0"
64+
"@splitsoftware/splitio-commons": "2.7.1"
6565
},
6666
"devDependencies": {
6767
"@react-native-community/eslint-config": "^3.2.0",

src/platform/__tests__/RNSignalListener.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('RNSignalListener', () => {
4646

4747
// Wait for features refresh rate to validate that syncAll is called when resuming foreground
4848
expect(syncManagerMockWithPushManager.pollingManager!.syncAll).toBeCalledTimes(0);
49-
await new Promise((resolve) => setTimeout(resolve, settingsMock.scheduler.featuresRefreshRate));
49+
await new Promise((resolve) => setTimeout(resolve, settingsMock.scheduler.featuresRefreshRate + 20));
5050

5151
// Going to foreground should be handled
5252
AppStateMock._emitChangeEvent('inactive');

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.4.0';
4+
const packageVersion = '1.4.1';
55

66
export const defaults = {
77
startup: {

0 commit comments

Comments
 (0)