@splitsoftware/splitio 11.4.2-rc.1 → 11.5.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGES.txt CHANGED
@@ -1,3 +1,7 @@
1
+ 11.5.0 (August XX, 2025)
2
+ - Added `factory.getCache()` method for standalone server-side SDKs, which returns the rollout plan snapshot from the storage.
3
+ - Added `preloadedData` configuration option for standalone client-side SDKs, which allows preloading the SDK storage with a snapshot of the rollout plan.
4
+
1
5
  11.4.1 (June 3, 2025)
2
6
  - Updated @splitsoftware/splitio-commons package to version 2.4.1, which improves the Proxy fallback to flag spec version 1.2 by handling the case when the Proxy does not return an end-of-stream marker in 400 status code responses.
3
7
 
@@ -7,6 +7,7 @@ var pushManager_1 = require("@splitsoftware/splitio-commons/cjs/sync/streaming/p
7
7
  var pollingManagerSS_1 = require("@splitsoftware/splitio-commons/cjs/sync/polling/pollingManagerSS");
8
8
  var inRedis_1 = require("@splitsoftware/splitio-commons/cjs/storages/inRedis");
9
9
  var InMemoryStorage_1 = require("@splitsoftware/splitio-commons/cjs/storages/inMemory/InMemoryStorage");
10
+ var dataLoader_1 = require("@splitsoftware/splitio-commons/cjs/storages/dataLoader");
10
11
  var sdkManager_1 = require("@splitsoftware/splitio-commons/cjs/sdkManager");
11
12
  var sdkClientMethod_1 = require("@splitsoftware/splitio-commons/cjs/sdkClient/sdkClientMethod");
12
13
  var impressionObserverSS_1 = require("@splitsoftware/splitio-commons/cjs/trackers/impressionObserver/impressionObserverSS");
@@ -37,7 +38,16 @@ function getModules(settings) {
37
38
  sdkClientMethodFactory: sdkClientMethod_1.sdkClientMethodFactory,
38
39
  SignalListener: platform_1.SignalListener,
39
40
  impressionsObserverFactory: impressionObserverSS_1.impressionObserverSSFactory,
40
- filterAdapterFactory: bloomFilter_1.bloomFilterFactory
41
+ filterAdapterFactory: bloomFilter_1.bloomFilterFactory,
42
+ extraProps: function (params) {
43
+ if (params.settings.mode !== constants_1.CONSUMER_MODE) {
44
+ return {
45
+ getCache: function (userKeys) {
46
+ return (0, dataLoader_1.getCache)(params.settings.log, params.storage, userKeys);
47
+ }
48
+ };
49
+ }
50
+ }
41
51
  };
42
52
  switch (settings.mode) {
43
53
  case constants_1.LOCALHOST_MODE:
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageVersion = void 0;
4
- exports.packageVersion = '11.4.2-rc.1';
4
+ exports.packageVersion = '11.5.0-rc.0';
@@ -4,6 +4,7 @@ import { pushManagerFactory } from '@splitsoftware/splitio-commons/esm/sync/stre
4
4
  import { pollingManagerSSFactory } from '@splitsoftware/splitio-commons/esm/sync/polling/pollingManagerSS';
5
5
  import { InRedisStorage } from '@splitsoftware/splitio-commons/esm/storages/inRedis';
6
6
  import { InMemoryStorageFactory } from '@splitsoftware/splitio-commons/esm/storages/inMemory/InMemoryStorage';
7
+ import { getCache } from '@splitsoftware/splitio-commons/esm/storages/dataLoader';
7
8
  import { sdkManagerFactory } from '@splitsoftware/splitio-commons/esm/sdkManager';
8
9
  import { sdkClientMethodFactory } from '@splitsoftware/splitio-commons/esm/sdkClient/sdkClientMethod';
9
10
  import { impressionObserverSSFactory } from '@splitsoftware/splitio-commons/esm/trackers/impressionObserver/impressionObserverSS';
@@ -34,7 +35,16 @@ function getModules(settings) {
34
35
  sdkClientMethodFactory: sdkClientMethodFactory,
35
36
  SignalListener: SignalListener,
36
37
  impressionsObserverFactory: impressionObserverSSFactory,
37
- filterAdapterFactory: bloomFilterFactory
38
+ filterAdapterFactory: bloomFilterFactory,
39
+ extraProps: function (params) {
40
+ if (params.settings.mode !== CONSUMER_MODE) {
41
+ return {
42
+ getCache: function (userKeys) {
43
+ return getCache(params.settings.log, params.storage, userKeys);
44
+ }
45
+ };
46
+ }
47
+ }
38
48
  };
39
49
  switch (settings.mode) {
40
50
  case LOCALHOST_MODE:
@@ -1 +1 @@
1
- export var packageVersion = '11.4.2-rc.1';
1
+ export var packageVersion = '11.5.0-rc.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio",
3
- "version": "11.4.2-rc.1",
3
+ "version": "11.5.0-rc.0",
4
4
  "description": "Split SDK",
5
5
  "files": [
6
6
  "README.md",
@@ -38,7 +38,7 @@
38
38
  "node": ">=14.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@splitsoftware/splitio-commons": "2.4.2-rc.1",
41
+ "@splitsoftware/splitio-commons": "2.5.0-rc.0",
42
42
  "bloom-filters": "^3.0.4",
43
43
  "ioredis": "^4.28.0",
44
44
  "js-yaml": "^3.13.1",
@@ -111,7 +111,7 @@
111
111
  "test-ts-decls": "tsc --build ts-tests",
112
112
  "test": "npm run test-node && npm run test-browser",
113
113
  "all": "npm run check && npm run build && npm run test-ts-decls && npm run test",
114
- "publish:rc": "npm run check && npm run build && npm publish --tag canary",
114
+ "publish:rc": "npm run check && npm run build && npm publish --tag rc",
115
115
  "publish:stable": "npm run check && npm run build && npm publish"
116
116
  },
117
117
  "greenkeeper": {
@@ -4,6 +4,7 @@ import { pushManagerFactory } from '@splitsoftware/splitio-commons/src/sync/stre
4
4
  import { pollingManagerSSFactory } from '@splitsoftware/splitio-commons/src/sync/polling/pollingManagerSS';
5
5
  import { InRedisStorage } from '@splitsoftware/splitio-commons/src/storages/inRedis';
6
6
  import { InMemoryStorageFactory } from '@splitsoftware/splitio-commons/src/storages/inMemory/InMemoryStorage';
7
+ import { getCache } from '@splitsoftware/splitio-commons/src/storages/dataLoader';
7
8
  import { sdkManagerFactory } from '@splitsoftware/splitio-commons/src/sdkManager';
8
9
  import { sdkClientMethodFactory } from '@splitsoftware/splitio-commons/src/sdkClient/sdkClientMethod';
9
10
  import { impressionObserverSSFactory } from '@splitsoftware/splitio-commons/src/trackers/impressionObserver/impressionObserverSS';
@@ -48,7 +49,17 @@ function getModules(settings) {
48
49
 
49
50
  impressionsObserverFactory: impressionObserverSSFactory,
50
51
 
51
- filterAdapterFactory: bloomFilterFactory
52
+ filterAdapterFactory: bloomFilterFactory,
53
+
54
+ extraProps: (params) => {
55
+ if (params.settings.mode !== CONSUMER_MODE) {
56
+ return {
57
+ getCache(userKeys) {
58
+ return getCache(params.settings.log, params.storage, userKeys);
59
+ }
60
+ };
61
+ }
62
+ }
52
63
  };
53
64
 
54
65
  switch (settings.mode) {
@@ -1 +1 @@
1
- export const packageVersion = '11.4.2-rc.1';
1
+ export const packageVersion = '11.5.0-rc.0';