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
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
11.2.0 (March 28, 2025)
2
+
- Added a new optional argument to the client `getTreatment` methods to allow passing additional evaluation options, such as a map of properties to append to the generated impressions sent to Split backend. Read more in our docs.
3
+
- 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:
4
+
- `storage.expirationDays` to specify the validity period of the rollout plan cache in days.
5
+
- `storage.clearOnInit` to clear the rollout plan cache on SDK initialization.
6
+
- 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.
7
+
1
8
11.1.0 (January 17, 2025)
2
9
- Added support for the new impressions tracking toggle available on feature flags, both respecting the setting and including the new field being returned on `SplitView` type objects. Read more in our docs.
3
10
- Updated @splitsoftware/splitio-commons package to version 2.1.0.
client2.getTreatmentWithConfig('qc_team');// Validate that the impression is the same.
52
52
client3.getTreatment('qc_team',testAttrs);
@@ -58,7 +58,8 @@ export default function (assert) {
58
58
treatment: 'no',
59
59
bucketingKey: 'impr_bucketing_2',
60
60
label: 'default rule',
61
-
pt: undefined
61
+
pt: undefined,
62
+
properties: undefined
62
63
};
63
64
64
65
assert.equal(listener.logImpression.callCount,4,'Impression listener logImpression method should be called after we call client.getTreatment, once per each impression generated.');
@@ -71,7 +72,7 @@ export default function (assert) {
assert.true(dependencyChildImpr,'Split we wanted to evaluate should be present on the impressions.');
59
-
assert.false(resp.some(e=>e.f==='hierarchical_dep_always_on'),'Parent split evaluations should not result in impressions.');
60
-
assert.false(resp.some(e=>e.f==='hierarchical_dep_hierarchical'),'No matter how deep is the chain.');
61
-
assert.true(splitWithConfigImpr,'Split evaluated with config should have generated an impression too.');
62
-
assert.false(Object.prototype.hasOwnProperty.call(splitWithConfigImpr.i[0],'configuration'),'Impressions do not change with configuration evaluations.');
63
-
assert.false(Object.prototype.hasOwnProperty.call(splitWithConfigImpr.i[0],'config'),'Impressions do not change with configuration evaluations.');
0 commit comments