Skip to content

Commit 2bb8006

Browse files
Merge branch 'SDKS-9171_sdk_ready_from_cache' into release_v11.1.0
2 parents 1dfaf8d + 5cd064a commit 2bb8006

File tree

7 files changed

+155
-66
lines changed

7 files changed

+155
-66
lines changed

CHANGES.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
11.1.0 (January XX, 2025)
2+
- Added two new configuration options for the SDK's `LOCALSTORAGE` storage type to control the behavior of the persisted rollout plan cache in the browser:
3+
- `storage.expirationDays` to specify the validity period of the rollout plan cache in days.
4+
- `storage.clearOnInit` to clear the rollout plan cache on SDK initialization.
5+
- Updated SDK_READY_FROM_CACHE event when using the `LOCALSTORAGE` storage type to be emitted alongside the SDK_READY event if it has not already been emitted.
6+
- Updated @splitsoftware/splitio-commons package to version 2.1.0.
7+
18
11.0.4 (January 9, 2025)
29
- Bugfixing - Updated @splitsoftware/splitio-commons package to version 2.0.3, which properly handles rejected promises when using targeting rules with segment matchers in consumer modes (e.g., Redis and Pluggable storages).
310

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio",
3-
"version": "11.0.4",
3+
"version": "11.1.0-rc.1",
44
"description": "Split SDK",
55
"files": [
66
"README.md",

src/__tests__/browserSuites/ready-from-cache.spec.js

Lines changed: 136 additions & 60 deletions
Large diffs are not rendered by default.

src/settings/defaults/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const packageVersion = '11.0.4';
1+
export const packageVersion = '11.1.0-rc.1';

src/settings/storage/browser.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ export function validateStorage(settings) {
1010
storage: {
1111
type,
1212
options = {},
13-
prefix
13+
prefix,
14+
expirationDays,
15+
clearOnInit
1416
} = { type: STORAGE_MEMORY },
1517
} = settings;
1618
let __originalType;
@@ -38,6 +40,8 @@ export function validateStorage(settings) {
3840
type,
3941
options,
4042
prefix,
43+
expirationDays,
44+
clearOnInit,
4145
__originalType
4246
};
4347
}

ts-tests/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,9 @@ let fullBrowserSettings: SplitIO.IBrowserSettings = {
531531
features: mockedFeaturesMap,
532532
storage: {
533533
type: 'LOCALSTORAGE',
534-
prefix: 'PREFIX'
534+
prefix: 'PREFIX',
535+
expirationDays: 1,
536+
clearOnInit: true
535537
},
536538
impressionListener: impressionListener,
537539
debug: true,

0 commit comments

Comments
 (0)