Skip to content

Commit 01bff30

Browse files
authored
Merge pull request #101 from splitio/update-browser
Update browser
2 parents 0daae7b + ca37c54 commit 01bff30

4 files changed

Lines changed: 25 additions & 13 deletions

File tree

CHANGES.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
1.6.0 (June 30, 2022)
2+
- Updated @splitsoftware/splitio dependency to version 10.20.0, which includes:
3+
- 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.
4+
- Updated telemetry logic to track the anonymous config for user consent flag set to declined or unknown.
5+
- Updated submitters logic, to avoid duplicating the post of impressions to Split cloud when the SDK is destroyed while its periodic post of impressions is running.
6+
17
1.5.0 (June 13, 2022)
28
- Bugfixing - Fixed issue with useTreatments hooks, to return control treatments without evaluating splits when the SDK client is not ready or is destroyed, to avoid not ready impressions and warning log.
39
- Updated @splitsoftware/splitio dependency to version 10.19.1, which includes:

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-react",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"description": "A React library to easily integrate and use Split JS SDK",
55
"main": "lib/index.js",
66
"module": "es/index.js",
@@ -61,15 +61,15 @@
6161
},
6262
"homepage": "https://github.com/splitio/react-client#readme",
6363
"dependencies": {
64-
"@splitsoftware/splitio-commons": "1.4.1",
64+
"@splitsoftware/splitio-commons": "1.5.0",
6565
"@types/google.analytics": "0.0.40",
6666
"@types/ioredis": "^4.28.0",
6767
"memoize-one": "^5.1.1",
6868
"shallowequal": "^1.1.0",
6969
"unfetch": "^4.2.0"
7070
},
7171
"devDependencies": {
72-
"@splitsoftware/splitio": "10.19.1",
72+
"@splitsoftware/splitio": "10.20.0",
7373
"@types/enzyme": "^3.10.4",
7474
"@types/enzyme-adapter-react-16": "^1.0.5",
7575
"@types/events": "^3.0.0",

types/splitio/splitio.d.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ interface ISettings {
110110
readonly sync: {
111111
splitFilters: SplitIO.SplitFilter[],
112112
impressionsMode: SplitIO.ImpressionsMode,
113+
enabled: boolean
113114
}
114115
/**
115116
* User consent status if using in browser. Undefined if using in NodeJS.
@@ -234,6 +235,11 @@ interface ISharedSettings {
234235
* @default 'OPTIMIZED'
235236
*/
236237
impressionsMode?: SplitIO.ImpressionsMode,
238+
/**
239+
* Enables synchronization of rollout plan or segment updates while the SDK instance is running. Does not affect initialization fetches.
240+
* @property {boolean} enabled
241+
*/
242+
enabled?: boolean
237243
}
238244
}
239245
/**
@@ -1545,9 +1551,9 @@ declare namespace SplitIO {
15451551
* Get the data of a split in SplitView format.
15461552
* @function split
15471553
* @param {string} splitName The name of the split we wan't to get info of.
1548-
* @returns {SplitView} The SplitIO.SplitView of the given split.
1554+
* @returns {SplitView | null} The SplitIO.SplitView of the given split or null if the split is not found.
15491555
*/
1550-
split(splitName: string): SplitView;
1556+
split(splitName: string): SplitView | null;
15511557
}
15521558
/**
15531559
* Representation of a manager instance with asynchronous storage of the SDK.

0 commit comments

Comments
 (0)