Skip to content

Commit

Permalink
Upgrade JS-commons with SdkFactory with init method
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoSanchez committed Oct 3, 2024
1 parent cc4a5a1 commit 58f5594
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splitsoftware/splitio",
"version": "10.28.1-rc.3",
"version": "10.28.1-rc.4",
"description": "Split SDK",
"files": [
"README.md",
Expand Down Expand Up @@ -40,7 +40,7 @@
"node": ">=6"
},
"dependencies": {
"@splitsoftware/splitio-commons": "1.17.1-rc.2",
"@splitsoftware/splitio-commons": "1.17.1-rc.3",
"@types/google.analytics": "0.0.40",
"@types/ioredis": "^4.28.0",
"bloom-filters": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/browserSuites/push-fallback.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,12 +287,12 @@ export function testFallback(fetchMock, assert) {
// Periodic fetch due to polling (memberships is not fetched due to smart pausing)
fetchMock.getOnce(url(settings, '/splitChanges?s=1.2&since=1457552649999'), function () {
const lapse = Date.now() - start;
assert.true(nearlyEqual(lapse, MILLIS_STREAMING_DISABLED_CONTROL + settings.scheduler.featuresRefreshRate), 'fetch due to fourth fallback to polling');
assert.true(nearlyEqual(lapse, MILLIS_STREAMING_DISABLED_CONTROL + settings.scheduler.featuresRefreshRate, 100), 'fetch due to fourth fallback to polling');
return { status: 200, body: splitChangesMock3 };
});
fetchMock.getOnce(url(settings, '/splitChanges?s=1.2&since=1457552669999'), function () {
const lapse = Date.now() - start;
assert.true(nearlyEqual(lapse, MILLIS_STREAMING_DISABLED_CONTROL + settings.scheduler.featuresRefreshRate * 2), 'fetch due to fourth fallback to polling');
assert.true(nearlyEqual(lapse, MILLIS_STREAMING_DISABLED_CONTROL + settings.scheduler.featuresRefreshRate * 2, 100), 'fetch due to fourth fallback to polling');
return { status: 200, body: { splits: [], since: 1457552669999, till: 1457552669999 } };
});

Expand Down
2 changes: 1 addition & 1 deletion src/settings/defaults/version.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const packageVersion = '10.28.1-rc.3';
export const packageVersion = '10.28.1-rc.4';

0 comments on commit 58f5594

Please sign in to comment.