You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGES.txt
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,13 @@
1
+
0.12.0 (November 3, 2023)
2
+
- Added support for Flag Sets on the SDK, which enables grouping feature flags and interacting with the group rather than individually (more details in our documentation):
3
+
- Added new variations of the get treatment methods to support evaluating flags in given flag set/s.
4
+
- getTreatmentsByFlagSet and getTreatmentsByFlagSets
5
+
- getTreatmentsWithConfigByFlagSets and getTreatmentsWithConfigByFlagSets
6
+
- Added a new optional Split Filter configuration option. This allows the SDK and Split services to only synchronize the flags in the specified flag sets, avoiding unused or unwanted flags from being synced on the SDK instance, bringing all the benefits from a reduced payload.
7
+
- Note: Only applicable when the SDK is in charge of the rollout data synchronization. When not applicable, the SDK will log a warning on init.
8
+
- Added `sets` property to the `SplitView` object returned by the `split` and `splits` methods of the SDK manager to expose flag sets on flag views.
9
+
- Updated @splitsoftware/splitio-commons package to version 1.11.0.
10
+
1
11
0.11.0 (October 31, 2023)
2
12
- Added `defaultTreatment` property to the `SplitView` object returned by the `split` and `splits` methods of the SDK manager (Related to issue https://github.com/splitio/javascript-commons/issues/225).
3
13
- Updated @splitsoftware/splitio-commons package to version 1.10.0 that includes vulnerability fixes, and adds the `defaultTreatment` property to the `SplitView` object.
Copy file name to clipboardExpand all lines: src/__tests__/browserSuites/ready-from-cache.spec.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -473,7 +473,7 @@ export default function (fetchMock, assert) {
473
473
events: 'https://events.baseurl/readyFromCache_5'
474
474
};
475
475
localStorage.clear();
476
-
t.plan(7);
476
+
t.plan(6);
477
477
478
478
fetchMock.getOnce(testUrls.sdk+'/splitChanges?since=-1&names=p1__split,p2__split',{status: 200,body: {splits: [splitDeclarations.p1__split,splitDeclarations.p2__split],since: -1,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
t.deepEqual(manager.names(),['p2__split'],'stored p3__split must be removed because doesn\'t match the filter');
502
+
t.fail('It should not emit SDK_READY_FROM_CACHE if cache is empty.');
503
+
t.end();
503
504
});
504
505
505
506
client.once(client.Event.SDK_READY,()=>{
@@ -731,7 +732,7 @@ export default function (fetchMock, assert) {
731
732
events: 'https://events.baseurl/readyFromCache_9'
732
733
};
733
734
localStorage.clear();
734
-
t.plan(7);
735
+
t.plan(6);
735
736
736
737
fetchMock.getOnce(testUrls.sdk+'/splitChanges?since=-1&names=no%20exist%20trim,no_exist,p3__split&prefixes=no%20exist%20trim,p2',{status: 200,body: {splits: [splitDeclarations.p2__split,splitDeclarations.p3__split],since: -1,till: 1457552620999}},{delay: 10});// short delay to let emit SDK_READY_FROM_CACHE
0 commit comments