@splitsoftware/splitio-commons 2.10.2-rc.7 → 2.11.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,6 +1,5 @@
1
- 2.11.0 (January 26, 2026)
2
- - Added metadata to SDK_UPDATE events to indicate the type of update (FLAGS_UPDATE or SEGMENTS_UPDATE) and the names of updated flags or segments.
3
- - Added metadata to SDK_READY and SDK_READY_FROM_CACHE events, including `initialCacheLoad` (boolean: `true` for fresh install/first app launch, `false` for warm cache/second app launch) and `lastUpdateTimestamp` (milliseconds since epoch).
1
+ 2.11.0 (January 28, 2026)
2
+ - Added functionality to provide metadata alongside SDK update and READY events. Read more in our docs.
4
3
 
5
4
  2.10.1 (December 18, 2025)
6
5
  - Bugfix - Handle `null` prerequisites properly.
@@ -49,7 +49,7 @@ function sdkFactory(params) {
49
49
  readiness.segments.emit(constants_2.SDK_SEGMENTS_ARRIVED);
50
50
  },
51
51
  onReadyFromCacheCb: function () {
52
- readiness.splits.emit(constants_2.SDK_SPLITS_CACHE_LOADED, { initialCacheLoad: false /* Not an initial load, cache exists */ });
52
+ readiness.splits.emit(constants_2.SDK_SPLITS_CACHE_LOADED);
53
53
  }
54
54
  });
55
55
  var fallbackTreatmentsCalculator = new fallbackTreatmentsCalculator_1.FallbackTreatmentsCalculator(settings.fallbackTreatments);
@@ -46,7 +46,7 @@ export function sdkFactory(params) {
46
46
  readiness.segments.emit(SDK_SEGMENTS_ARRIVED);
47
47
  },
48
48
  onReadyFromCacheCb: function () {
49
- readiness.splits.emit(SDK_SPLITS_CACHE_LOADED, { initialCacheLoad: false /* Not an initial load, cache exists */ });
49
+ readiness.splits.emit(SDK_SPLITS_CACHE_LOADED);
50
50
  }
51
51
  });
52
52
  var fallbackTreatmentsCalculator = new FallbackTreatmentsCalculator(settings.fallbackTreatments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@splitsoftware/splitio-commons",
3
- "version": "2.10.2-rc.7",
3
+ "version": "2.11.0",
4
4
  "description": "Split JavaScript SDK common components",
5
5
  "main": "cjs/index.js",
6
6
  "module": "esm/index.js",
@@ -57,7 +57,7 @@ export function sdkFactory(params: ISdkFactoryParams): SplitIO.ISDK | SplitIO.IA
57
57
  readiness.segments.emit(SDK_SEGMENTS_ARRIVED);
58
58
  },
59
59
  onReadyFromCacheCb() {
60
- readiness.splits.emit(SDK_SPLITS_CACHE_LOADED, { initialCacheLoad: false /* Not an initial load, cache exists */ });
60
+ readiness.splits.emit(SDK_SPLITS_CACHE_LOADED);
61
61
  }
62
62
  });
63
63