Skip to content

Commit

Permalink
Merge branch 'cache_expiration_baseline' into SDKS-9171_sdk_ready_fro…
Browse files Browse the repository at this point in the history
…m_cache
  • Loading branch information
EmilianoSanchez committed Jan 17, 2025
2 parents 20d97aa + 3ba1eb1 commit 96e5aa6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
2.1.0 (January XX, 2025)
- Added `impressionsDisabled` property to SDK Manager's `SplitView` type.
2.2.0 (January XX, 2025)
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:
- `storage.expirationDays` to specify the validity period of the rollout cache.
- `storage.clearOnInit` to clear the rollout cache on SDK initialization.
- Updated implementation of the impressions tracker and strategies to support feature flags with impressions tracking disabled.
- 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.

2.1.0 (January 17, 2025)
- 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.

2.0.3 (January 9, 2025)
- Bugfixing - Properly handle rejected promises when using targeting rules with segment matchers in consumer modes (e.g., Redis and Pluggable storages).

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splitsoftware/splitio-commons",
"version": "2.1.0-rc.2",
"version": "2.1.0",
"description": "Split JavaScript SDK common components",
"main": "cjs/index.js",
"module": "esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/storages/inRedis/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const LOG_PREFIX = 'storage:redis: ';
export const DEFAULT_CACHE_SIZE = 30000;
export const REFRESH_RATE = 300000; // 300.000 ms = start after 5 mins
export const REFRESH_RATE = 300000; // 300000 ms = start after 5 mins
export const TTL_REFRESH = 3600; // 1hr
2 changes: 1 addition & 1 deletion src/trackers/uniqueKeysTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const noopFilterAdapter = {
};

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

0 comments on commit 96e5aa6

Please sign in to comment.