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
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
2.5.0 (August XX, 2025)
2
-
- Added `factory.getState()` method for standalone server-side SDKs, which returns the rollout plan snapshot from the storage.
2
+
- Added `factory.getCache()` method for standalone server-side SDKs, which returns the rollout plan snapshot from the storage.
3
3
- Added `preloadedData` configuration option for standalone client-side SDKs, which allows preloading the SDK storage with a snapshot of the rollout plan.
4
4
- Updated internal storage factory to emit the SDK_READY_FROM_CACHE event when it corresponds, to clean up the initialization flow.
* @param userKey - user key (matching key) of the provided MySegmentsCache
12
-
*
13
-
* @TODO load data even if current data is more recent?
14
-
* @TODO extend to load largeSegments
15
-
* @TODO extend to load data on shared mySegments storages. Be specific when emitting SDK_READY_FROM_CACHE on shared clients. Maybe the serializer should provide the `useSegments` flag.
16
-
* @TODO add logs, and input validation in this module, in favor of size reduction.
17
-
* @TODO unit tests
9
+
* Sets the given synchronous storage with the provided preloaded data snapshot.
10
+
* If `matchingKey` is provided, the storage is handled as a client-side storage (segments and largeSegments are instances of MySegmentsCache).
11
+
* Otherwise, the storage is handled as a server-side storage (segments is an instance of SegmentsCache).
* Returns the current snapshot of the SDK rollout plan in cache.
1608
+
*
1609
+
* @param keys - Optional list of keys to generate the rollout plan snapshot with the memberships of the given keys, rather than the complete segments data.
1610
+
* @returns The current snapshot of the SDK rollout plan.
1611
+
*/
1612
+
getCache(keys?: SplitKey[]): PreloadedData,
1606
1613
}
1607
1614
/**
1608
1615
* This represents the interface for the SDK instance for server-side with asynchronous storage.
0 commit comments