Skip to content

Commit 6b5eaca

Browse files
Polishing
1 parent a598646 commit 6b5eaca

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

CHANGES.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747
- Removed internal ponyfills for `Map` and `Set` global objects, dropping support for IE and other outdated browsers. The SDK now requires the runtime environment to support these features natively or to provide a polyfill.
4848
- Removed the `sync.localhostMode` configuration option to plug the LocalhostMode module.
4949

50+
1.17.1 (July 25, 2025)
51+
- Updated the Redis storage to avoid lazy require of the `ioredis` dependency when the SDK is initialized.
52+
- Updated some transitive dependencies for vulnerability fixes.
53+
- Bugfix - Enhanced HTTP client module to implement timeouts for failing requests that might otherwise remain pending indefinitely on some Fetch API implementations, pausing the SDK synchronization process.
54+
- Bugfix - Properly handle rejected promises when using targeting rules with segment matchers in consumer modes (e.g., Redis and Pluggable storages).
55+
- Bugfix - Sanitize the `SplitSDKMachineName` header value to avoid exceptions on HTTP/S requests when it contains non ISO-8859-1 characters (Related to issue https://github.com/splitio/javascript-client/issues/847).
56+
- Bugfix - Fixed an issue with the SDK_UPDATE event on server-side, where it was not being emitted if there was an empty segment and the SDK received a feature flag update notification.
57+
- Bugfix - Fixed an issue with the server-side polling manager that caused dangling timers when the SDK was destroyed before it was ready.
58+
5059
1.17.0 (September 6, 2024)
5160
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
5261
- Added `isTimedout` and `lastUpdate` properties to IStatusInterface to keep track of the timestamp of the last SDK event, used on React and Redux SDKs.

src/storages/inLocalStorage/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export function InLocalStorage(options: SplitIO.InLocalStorageOptions = {}): ISt
5858
},
5959

6060
destroy() {
61-
// @TODO return `storageWrapper.disconnect()`
6261
return Promise.resolve();
6362
},
6463

src/storages/types.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,7 @@ export interface IStorageSync extends IStorageBase<
479479
IUniqueKeysCacheSync
480480
> {
481481
// Defined in client-side
482-
// https://github.com/splitio/javascript-commons/pull/352
483-
validateCache?: () => Promise<boolean>, // or connect?
482+
validateCache?: () => Promise<boolean>,
484483
largeSegments?: ISegmentsCacheSync,
485484
}
486485

src/sync/syncManagerOnline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export function syncManagerOnlineFactory(
8989
start() {
9090
running = true;
9191

92-
// @TODO call after `validateCache` promise once there are InLocal versions for event, impression and telemetry storages
92+
// @TODO once event, impression and telemetry storages support persistence, call when `validateCache` promise is resolved
9393
submitterManager.start(!isConsentGranted(settings));
9494

9595
return Promise.resolve(storage.validateCache ? storage.validateCache() : false).then((isCacheLoaded) => {

0 commit comments

Comments
 (0)