Skip to content

Commit 5ea10ad

Browse files
Add changelog entry
1 parent 6dc1e61 commit 5ea10ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2.1.0 (January XX, 2025)
2+
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:
3+
- `storage.expirationDays` to specify the validity period of the rollout cache.
4+
- `storage.clearOnInit` to clear the rollout cache on SDK initialization.
5+
16
2.0.2 (December 3, 2024)
27
- Updated the factory `init` and `destroy` methods to support re-initialization after destruction. This update ensures compatibility of the React SDK with React Strict Mode, where the factory's `init` and `destroy` effects are executed an extra time to validate proper resource cleanup.
38
- Bugfixing - 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).

src/storages/inLocalStorage/validateCache.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import type { MySegmentsCacheInLocal } from './MySegmentsCacheInLocal';
77
import { KeyBuilderCS } from '../KeyBuilderCS';
88
import SplitIO from '../../../types/splitio';
99

10-
// milliseconds in a day
1110
const DEFAULT_CACHE_EXPIRATION_IN_DAYS = 10;
1211
const MILLIS_IN_A_DAY = 86400000;
1312

0 commit comments

Comments
 (0)