Skip to content

Commit 6f3960b

Browse files
Update changelog entry
1 parent c35dc8b commit 6f3960b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGES.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
2.2.1 (May 7, 2025)
2-
- Updated the Redis storage to avoid lazy require of the `ioredis` dependency when the SDK is initialized, and allow queueing feature flag evaluations before SDK_READY event is emitted (Reverted in v1.7.0).
1+
2.2.1 (May XX, 2025)
2+
- Updated the Redis storage to:
3+
- Avoid lazy require of the `ioredis` dependency when the SDK is initialized, and
4+
- Flag the SDK as ready from cache immediately to allow queueing feature flag evaluations before SDK_READY event is emitted (Reverted in v1.7.0).
35

46
2.2.0 (March 28, 2025)
57
- Added a new optional argument to the client `getTreatment` methods to allow passing additional evaluation options, such as a map of properties to append to the generated impressions sent to Split backend. Read more in our docs.

src/storages/inRedis/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function InRedisStorage(options: InRedisStorageOptions = {}): IStorageAsy
3434
const prefix = validatePrefix(options.prefix);
3535

3636
function InRedisStorageFactory(params: IStorageFactoryParams): IStorageAsync {
37-
if (!RD) throw new Error('The SDK Redis storage is not available. Your runtime environment must support CommonJS (`require`) to import the ioredis dependency.');
37+
if (!RD) throw new Error('The SDK Redis storage is unavailable. Make sure your runtime environment supports CommonJS (`require`) so the `ioredis` dependency can be imported.');
3838

3939
const { onReadyFromCacheCb, onReadyCb, settings, settings: { log } } = params;
4040
const metadata = metadataBuilder(settings);
@@ -44,10 +44,10 @@ export function InRedisStorage(options: InRedisStorageOptions = {}): IStorageAsy
4444
const impressionCountsCache = new ImpressionCountsCacheInRedis(log, keys.buildImpressionsCountKey(), redisClient);
4545
const uniqueKeysCache = new UniqueKeysCacheInRedis(log, keys.buildUniqueKeysKey(), redisClient);
4646

47-
// RedisAdapter queues operations before connection
47+
// RedisAdapter lets queue operations before connected
4848
onReadyFromCacheCb();
4949

50-
// subscription to Redis connect event in order to emit SDK_READY event on consumer mode
50+
// Subscription to Redis connect event in order to emit SDK_READY event on consumer mode
5151
redisClient.on('connect', () => {
5252
onReadyCb();
5353
impressionCountsCache.start();

0 commit comments

Comments
 (0)