Skip to content

Commit 25fe09a

Browse files
Fix message
1 parent 1fcebd4 commit 25fe09a

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-commons",
3-
"version": "2.10.2-rc.5",
3+
"version": "2.10.2-rc.6",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

src/sdkFactory/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ export function sdkFactory(params: ISdkFactoryParams): SplitIO.ISDK | SplitIO.IA
5454
return;
5555
}
5656
readiness.splits.emit(SDK_SPLITS_ARRIVED);
57-
readiness.segments.emit(SDK_SEGMENTS_ARRIVED, { initialCacheLoad: false /* Not an initial load, cache exists */ });
57+
readiness.segments.emit(SDK_SEGMENTS_ARRIVED);
5858
},
5959
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);
6161
}
6262
});
6363

types/splitio.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -520,15 +520,15 @@ declare namespace SplitIO {
520520
*/
521521
type SdkReadyMetadata = {
522522
/**
523-
* Indicates whether the SDK was loaded from cache initially.
524-
* - `true` when SDK_READY_FROM_CACHE is emitted from cache (before SDK_READY)
525-
* - `true` when SDK_READY is emitted and the SDK was ready from cache first
526-
* - `false` when SDK_READY_FROM_CACHE is emitted because SDK became ready without cache
527-
* - `false` when SDK_READY is emitted and the SDK was not ready from cache
523+
* Indicates whether the SDK was loaded from cache initially. (fresh install or ready from cache)
524+
* - `false` when SDK_READY_FROM_CACHE is emitted from cache (before SDK_READY)
525+
* - `false` when SDK_READY is emitted and the SDK was ready from cache first
526+
* - `true` when SDK_READY_FROM_CACHE is emitted because SDK became ready without cache
527+
* - `true` when SDK_READY is emitted and the SDK was not ready from cache
528528
*/
529529
initialCacheLoad: boolean
530530
/**
531-
* Timestamp in milliseconds since epoch when the event was emitted. Undefined if `initialCacheLoad` is `true`.
531+
* Timestamp in milliseconds since epoch when the cache was last updated. Undefined if `initialCacheLoad` is `true`.
532532
*/
533533
lastUpdateTimestamp?: number
534534
}

0 commit comments

Comments
 (0)