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
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
2.0.0 (October XX, 2024)
2
2
- Added support for targeting rules based on large segments.
3
3
- Added `factory.destroy()` method, which invokes the `destroy` method on all SDK clients created by the factory.
4
+
- Added `SplitIO` namespace with the public TypeScript definitions to be reused by the SDKs, rather than having each SDK define its own types.
4
5
- Updated the handling of timers and async operations inside an `init` factory method to enable lazy initialization of the SDK in standalone mode. This update is intended for the React SDK.
5
6
- Bugfixing - Fixed an issue with the server-side polling manager that caused dangling timers when the SDK was destroyed before it was ready.
Copy file name to clipboardExpand all lines: types/splitio.d.ts
+28-15Lines changed: 28 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -835,7 +835,7 @@ declare namespace SplitIO {
835
835
userConsent?: ConsentStatus;
836
836
}
837
837
/**
838
-
* Settings interface for SDK instances created for client-side with synchronous storage (e.g., Browser or React Native).
838
+
* Settings interface for SDK instances created with client-side API and synchronous storage (e.g., Browser or React Native).
839
839
*
840
840
* @interface IClientSideSettings
841
841
* @extends IClientSideBasicSettings
@@ -878,13 +878,13 @@ declare namespace SplitIO {
878
878
/**
879
879
* Maximum amount of time used before notify a timeout.
880
880
* @property {number} readyTimeout
881
-
* @default1.5
881
+
* @default10
882
882
*/
883
883
readyTimeout?: number;
884
884
/**
885
885
* Time to wait for a request before the SDK is ready. If this time expires, JS Sdk will retry 'retriesOnFailureBeforeReady' times before notifying its failure to be 'ready'.
886
886
* @property {number} requestTimeoutBeforeReady
887
-
* @default1.5
887
+
* @default 5
888
888
*/
889
889
requestTimeoutBeforeReady?: number;
890
890
/**
@@ -968,10 +968,20 @@ declare namespace SplitIO {
968
968
}
969
969
}
970
970
/**
971
-
* Settings interface with async storage for SDK instances created for client-side (e.g., Serverless environments).
972
-
* If your storage is synchronous (by defaut we use memory, which is sync) use SplitIO.IClientSideSettings instead.
971
+
* Settings interface for SDK instances created in React Native, with client-side API and synchronous storage.
* Settings interface for SDK instances created with client-side API and asynchronous storage (e.g., serverless environments with a persistent storage).
980
+
* If your storage is synchronous (by default we use memory, which is sync) use SplitIO.IClientSideSettings instead.
* Maximum amount of time used before notify a timeout.
1319
1330
* @property {number} readyTimeout
1320
-
* @default1.5
1331
+
* @default10
1321
1332
*/
1322
1333
readyTimeout?: number;
1323
1334
/**
1324
1335
* Time to wait for a request before the SDK is ready. If this time expires, JS Sdk will retry 'retriesOnFailureBeforeReady' times before notifying its failure to be 'ready'.
1325
1336
* @property {number} requestTimeoutBeforeReady
1326
-
* @default1.5
1337
+
* @default 5
1327
1338
*/
1328
1339
requestTimeoutBeforeReady?: number;
1329
1340
/**
@@ -1512,8 +1523,9 @@ declare namespace SplitIO {
1512
1523
};
1513
1524
}
1514
1525
/**
1515
-
* Settings interface for SDK instances created on NodeJS.
1526
+
* Settings interface for JavaScript SDK instances created on NodeJS, with server-side API and synchronous storage.
1516
1527
* If your storage is asynchronous (Redis for example) use SplitIO.INodeAsyncSettings instead.
0 commit comments