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
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
-
10.29.0 (September XX, 2024)
1
+
10.29.0 (October XX, 2024)
2
+
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
2
3
- Updated @splitsoftware/splitio-commons package to version 1.18.0 that includes minor updates:
3
4
- Added support for targeting rules based on large segments for browsers.
4
5
- Updated some transitive dependencies for vulnerability fixes.
6
+
- Bugfixing - Removed an overloaded `client` method in the `SplitIO.ISDK` interface that accepted a key and trafficType parameters. This interface corresponds to the SDK factory instance in NodeJS, which, unlike `SplitIO.IBrowserSDK` for the Browser, does not handle multiple client instances based on keys or traffic types.
5
7
6
8
10.28.0 (September 6, 2024)
7
9
- Updated @splitsoftware/splitio-commons package to version 1.17.0 that includes minor updates:
Copy file name to clipboardExpand all lines: src/__tests__/browserSuites/readiness.spec.js
+21-61Lines changed: 21 additions & 61 deletions
Original file line number
Diff line number
Diff line change
@@ -209,12 +209,7 @@ export default function (fetchMock, assert) {
209
209
t.equal(getMembershipsHits(),4*CLIENTS_COUNT-1,'It should have not tried to synchronize segments again after the last update that left us in a no segment state.');
210
210
t.equal(readyCount,CLIENTS_COUNT,'all clients must be ready');
211
211
212
-
Promise.all([
213
-
client2.destroy(),
214
-
client3.destroy(),
215
-
client.destroy()
216
-
]).then(()=>{t.end();});
217
-
212
+
splitio.destroy().then(()=>{t.end();});
218
213
},10000);
219
214
},0);
220
215
});
@@ -293,12 +288,7 @@ export default function (fetchMock, assert) {
293
288
t.equal(getMembershipsHits(),4*CLIENTS_COUNT-1,'It should have not tried to synchronize segments again after the last update that left us in a no segment state.');
294
289
t.equal(readyCount,CLIENTS_COUNT,'all clients must be ready');
295
290
296
-
Promise.all([
297
-
client2.destroy(),
298
-
client3.destroy(),
299
-
client.destroy()
300
-
]).then(()=>{t.end();});
301
-
291
+
splitio.destroy().then(()=>{t.end();});
302
292
},10000);
303
293
},0);
304
294
});
@@ -373,12 +363,7 @@ export default function (fetchMock, assert) {
373
363
t.equal(getMembershipsHits(),6*CLIENTS_COUNT-1,'It should keep the producer synchronizing periodically..');
374
364
t.equal(readyCount,CLIENTS_COUNT,'all clients must be ready');
375
365
376
-
Promise.all([
377
-
client2.destroy(),
378
-
client3.destroy(),
379
-
client.destroy()
380
-
]).then(()=>{t.end();});
381
-
366
+
splitio.destroy().then(()=>{t.end();});
382
367
},3000);
383
368
},0);
384
369
});
@@ -417,8 +402,8 @@ export default function (fetchMock, assert) {
417
402
});
418
403
constCLIENTS_COUNT=3;// Just so it's easier to read the assertions.
419
404
constclient=splitio.client();
420
-
constclient2=splitio.client('nicolas2@split.io');
421
-
constclient3=splitio.client('nicolas3@split.io');
405
+
splitio.client('nicolas2@split.io');
406
+
splitio.client('nicolas3@split.io');
422
407
423
408
client.once(client.Event.SDK_READY,()=>{
424
409
t.ok(Date.now()-start>=membershipsEndpointDelay,'It should not be ready without waiting for memberships, as there are segments in the first splits payload.');
@@ -442,12 +427,7 @@ export default function (fetchMock, assert) {
442
427
setTimeout(()=>{
443
428
t.equal(getMembershipsHits(),6*CLIENTS_COUNT,'It should keep the producer synchronizing periodically..');
444
429
445
-
Promise.all([
446
-
client2.destroy(),
447
-
client3.destroy(),
448
-
client.destroy()
449
-
]).then(()=>{t.end();});
450
-
430
+
splitio.destroy().then(()=>{t.end();});
451
431
},3000);
452
432
},0);
453
433
});
@@ -486,19 +466,15 @@ export default function (fetchMock, assert) {
486
466
});
487
467
constCLIENTS_COUNT=3;// Just so it's easier to read the assertions.
488
468
constclient=splitio.client();
489
-
constclient2=splitio.client('nicolas2@split.io');
490
-
constclient3=splitio.client('nicolas3@split.io');
469
+
splitio.client('nicolas2@split.io');
470
+
splitio.client('nicolas3@split.io');
491
471
492
472
client.once(client.Event.SDK_READY,()=>{
493
473
t.ok(Date.now()-start>=membershipsEndpointDelay,'It should not be ready without waiting for memberships, when we start from cache it might be stale.');
494
474
495
475
setTimeout(()=>{
496
476
t.equal(getMembershipsHits(),3*CLIENTS_COUNT,'memberships should had been hit once per client on the first attempt and keep syncing afterwards.');
@@ -631,19 +599,15 @@ export default function (fetchMock, assert) {
631
599
});
632
600
constCLIENTS_COUNT=3;// Just so it's easier to read the assertions.
633
601
constclient=splitio.client();
634
-
constclient2=splitio.client('nicolas2@split.io');
635
-
constclient3=splitio.client('nicolas3@split.io');
602
+
splitio.client('nicolas2@split.io');
603
+
splitio.client('nicolas3@split.io');
636
604
637
605
client.once(client.Event.SDK_READY,()=>{
638
606
t.ok(Date.now()-start>=membershipsEndpointDelay,'It should not be ready without waiting for memberships, when we start from cache it might be stale and we had segments even though the update has nothing.');
639
607
640
608
setTimeout(()=>{
641
609
t.equal(getMembershipsHits(),3*CLIENTS_COUNT,'memberships should had been hit once per client on the first attempt and kept syncing afterwards');
0 commit comments