Skip to content

Commit 6b11bd6

Browse files
rc
1 parent d3bfda0 commit 6b11bd6

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.2.1 (May 7, 2025)
2+
- Updated Redis storage to avoid lazy require of the `ioredis` dependency when the SDK is initialized.
3+
14
2.2.0 (March 28, 2025)
25
- 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.
36
- Added two new configuration options for the SDK storage in browsers when using storage type `LOCALSTORAGE`:

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

src/storages/inRedis/index.ts

Lines changed: 1 addition & 1 deletion
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('Redis storage is not available. Runtime environment must support CommonJS (`require`) to import the ioredis dependency.');
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.');
3838

3939
const { onReadyCb, settings, settings: { log } } = params;
4040
const metadata = metadataBuilder(settings);

0 commit comments

Comments
 (0)