Skip to content

Commit 96e5aa6

Browse files
Merge branch 'cache_expiration_baseline' into SDKS-9171_sdk_ready_from_cache
2 parents 20d97aa + 3ba1eb1 commit 96e5aa6

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

CHANGES.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
2.1.0 (January XX, 2025)
2-
- Added `impressionsDisabled` property to SDK Manager's `SplitView` type.
1+
2.2.0 (January XX, 2025)
32
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:
43
- `storage.expirationDays` to specify the validity period of the rollout cache.
54
- `storage.clearOnInit` to clear the rollout cache on SDK initialization.
6-
- Updated implementation of the impressions tracker and strategies to support feature flags with impressions tracking disabled.
75
- Updated SDK_READY_FROM_CACHE event when using the `LOCALSTORAGE` storage type to be emitted alongside the SDK_READY event if it has not already been emitted.
86

7+
2.1.0 (January 17, 2025)
8+
- Added support for the new impressions tracking toggle available on feature flags, both respecting the setting and including the new field being returned on `SplitView` type objects. Read more in our docs.
9+
910
2.0.3 (January 9, 2025)
1011
- Bugfixing - Properly handle rejected promises when using targeting rules with segment matchers in consumer modes (e.g., Redis and Pluggable storages).
1112

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.1.0-rc.2",
3+
"version": "2.1.0",
44
"description": "Split JavaScript SDK common components",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

src/storages/inRedis/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export const LOG_PREFIX = 'storage:redis: ';
22
export const DEFAULT_CACHE_SIZE = 30000;
3-
export const REFRESH_RATE = 300000; // 300.000 ms = start after 5 mins
3+
export const REFRESH_RATE = 300000; // 300000 ms = start after 5 mins
44
export const TTL_REFRESH = 3600; // 1hr

src/trackers/uniqueKeysTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const noopFilterAdapter = {
1010
};
1111

1212
/**
13-
* Trackes uniques keys
13+
* Tracks uniques keys
1414
* Unique Keys Tracker will be in charge of checking if the MTK was already sent to the BE in the last period
1515
* or schedule to be sent; if not it will be added in an internal cache and sent in the next post.
1616
*

0 commit comments

Comments
 (0)