Skip to content

Commit 682fcc8

Browse files
Update ts-tests
1 parent 2907d08 commit 682fcc8

File tree

4 files changed

+20
-38
lines changed

4 files changed

+20
-38
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio",
3-
"version": "11.9.2-rc.3",
3+
"version": "11.9.2-rc.4",
44
"description": "Split SDK",
55
"files": [
66
"README.md",
@@ -38,7 +38,7 @@
3838
"node": ">=14.0.0"
3939
},
4040
"dependencies": {
41-
"@splitsoftware/splitio-commons": "2.10.2-rc.6",
41+
"@splitsoftware/splitio-commons": "2.10.2-rc.7",
4242
"bloom-filters": "^3.0.4",
4343
"ioredis": "^4.28.0",
4444
"js-yaml": "^3.13.1",

src/settings/defaults/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const packageVersion = '11.9.2-rc.3';
1+
export const packageVersion = '11.9.2-rc.4';

ts-tests/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,12 +258,12 @@ let nodeEventEmitter: NodeJS.EventEmitter = client;
258258

259259
// Ready, destroy and flush
260260
let promise: Promise<void> = client.ready();
261-
promise = client.whenReady();
262261
promise = client.destroy();
263262
promise = SDK.destroy();
264263
// @TODO not public yet
265264
// promise = client.flush();
266-
let promiseWhenReadyFromCache: Promise<boolean> = client.whenReadyFromCache();
265+
let promiseWithMetadata: Promise<SplitIO.SdkReadyMetadata> = client.whenReady();
266+
promiseWithMetadata = client.whenReadyFromCache();
267267

268268
// Get readiness status
269269
let status: SplitIO.ReadinessStatus = client.getStatus();
@@ -434,12 +434,12 @@ nodeEventEmitter = asyncClient;
434434

435435
// Ready, destroy and flush (same as for sync client, just for interface checking)
436436
promise = asyncClient.ready();
437-
promise = asyncClient.whenReady();
438437
promise = asyncClient.destroy();
439438
promise = AsyncSDK.destroy();
440439
// @TODO not public yet
441440
// promise = asyncClient.flush();
442-
promiseWhenReadyFromCache = asyncClient.whenReadyFromCache();
441+
promiseWithMetadata = asyncClient.whenReady();
442+
promiseWithMetadata = asyncClient.whenReadyFromCache();
443443

444444
// Get readiness status
445445
status = asyncClient.getStatus();

0 commit comments

Comments
 (0)