Skip to content

Commit ce5c482

Browse files
Merge pull request #137 from splitio/release_v2.2.0
Release v2.2.0
2 parents 81659e9 + afd0890 commit ce5c482

File tree

5 files changed

+42
-32
lines changed

5 files changed

+42
-32
lines changed

CHANGES.txt

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2.2.0 (May 28, 2025)
2+
- Added support for rule-based segments. These segments determine membership at runtime by evaluating their configured rules against the user attributes provided to the SDK.
3+
- Added support for feature flag prerequisites. This allows customers to define dependency conditions between flags, which are evaluated before any allowlists or targeting rules.
4+
- Bugfix - Enhanced HTTP client module to implement timeouts for failing requests that might otherwise remain pending indefinitely on some Fetch API implementations.
5+
- Updated @splitsoftware/splitio package to version 11.4.0.
6+
17
2.1.0 (April 1, 2025)
28
- Added a new optional `properties` argument to the options object of the `getTreatments` action creator, allowing to pass a map of properties to append to the generated impressions sent to Split backend. Read more in our docs.
39
- Updated @splitsoftware/splitio package to version 11.2.0 that includes some minor updates:
@@ -9,7 +15,7 @@
915

1016
2.0.1 (December 5, 2024)
1117
- Updated @splitsoftware/splitio package to version 11.0.3 that includes some improvements and bugfixes.
12-
- Bugfixing - Fixed issue where the `SplitIO` namespace from `@splitsoftware/splitio` was not accessible through the library, enabling users to use the namespace without additional imports (Related to https://github.com/splitio/redux-client/issues/130).
18+
- Bugfix - Fixed issue where the `SplitIO` namespace from `@splitsoftware/splitio` was not accessible through the library, enabling users to use the namespace without additional imports (Related to https://github.com/splitio/redux-client/issues/130).
1319

1420
2.0.0 (November 14, 2024)
1521
- Added support for targeting rules based on large segments.
@@ -23,7 +29,7 @@
2329
- Updated peer dependencies to drop support for Redux library below v3.0.0.
2430

2531
1.14.1 (October 15, 2024)
26-
- Bugfixing - Fixed error in `splitReducer` when handling actions with a `null` payload, preventing crashes caused by accessing undefined payload properties (Related to https://github.com/splitio/redux-client/issues/121).
32+
- Bugfix - Fixed error in `splitReducer` when handling actions with a `null` payload, preventing crashes caused by accessing undefined payload properties (Related to https://github.com/splitio/redux-client/issues/121).
2733

2834
1.14.0 (September 13, 2024)
2935
- Added `status` property to Split reducer's slice of state to track the SDK events of non-default clients (Related to https://github.com/splitio/redux-client/issues/113).
@@ -45,7 +51,7 @@
4551
- Added support for targeting rules based on semantic versions (https://semver.org/).
4652
- Added special impression label "targeting rule type unsupported by sdk" when the matcher type is not supported by the SDK, which returns 'control' treatment.
4753
- Updated Split API client to include the flags spec version query parameter for the `splitChanges` and `auth` endpoints.
48-
- Bugfixing - Fixed error when calling `selectTreatmentValue` and `selectTreatmentWithConfig` selectors with an object as a key, caused by the key being stringified rather than using the `matchingKey` property of the object.
54+
- Bugfix - Fixed error when calling `selectTreatmentValue` and `selectTreatmentWithConfig` selectors with an object as a key, caused by the key being stringified rather than using the `matchingKey` property of the object.
4955

5056
1.11.0 (April 3, 2024)
5157
- Added `sideEffects: false` property in the package.json file to allow tree shaking.
@@ -79,7 +85,7 @@
7985
- Updated linter dependencies and rules. The deprecated TSLint package was replaced by ESLint.
8086
- Updated some transitive dependencies for vulnerability fixes.
8187
- Updated @splitsoftware/splitio package to version 10.22.4 that includes minor improvements.
82-
- Bugfixing - Fixed error when using the SDK in localhost mode for testing with Node.js test runners such as Jest (See https://help.split.io/hc/en-us/articles/360038851551-Redux-SDK#localhost-mode).
88+
- Bugfix - Fixed error when using the SDK in localhost mode for testing with Node.js test runners such as Jest (See https://help.split.io/hc/en-us/articles/360038851551-Redux-SDK#localhost-mode).
8389

8490
1.7.1 (November 15, 2022)
8591
- Updated React Redux peer dependency range to include [email protected] and [email protected].
@@ -103,7 +109,7 @@
103109
- Added `scheduler.telemetryRefreshRate` property to SDK configuration, and deprecated `scheduler.metricsRefreshRate` property.
104110
- Updated SDK telemetry storage, metrics and updater to be more effective and send less often.
105111
- Updated eventsource dependency range to ^1.1.2 to avoid a vulnerability and dependency resolution to a vulnerable version of url-parse transitive dependency.
106-
- Bugfixing - Updated submitters logic, to avoid dropping impressions and events that are being tracked while POST request is pending.
112+
- Bugfix - Updated submitters logic, to avoid dropping impressions and events that are being tracked while POST request is pending.
107113

108114
1.5.0 (April 20, 2022)
109115
- Updated @splitsoftware/splitio dependency to version 10.18.1, which includes:
@@ -146,13 +152,13 @@
146152
- Added an optional callback parameter to `destroySplitSdk` action creator: `onDestroy`, to listen when the SDK has gracefully shut down.
147153

148154
1.1.0 (May 11, 2020)
149-
- Bugfixing - Incorrect evaluation of feature flags on browser when using `getTreatments` with a different user key than the default, caused by not waiting the fetch of segments (Related to issue https://github.com/splitio/redux-client/issues/9).
155+
- Bugfix - Incorrect evaluation of feature flags on browser when using `getTreatments` with a different user key than the default, caused by not waiting the fetch of segments (Related to issue https://github.com/splitio/redux-client/issues/9).
150156
- Added `destroySplitSdk` action creator to gracefully shutdown the SDK.
151157
- Added two new status properties to split's piece of state: `hasTimedout` and `isDestroyed` to better reflect the current state of the associated factory.
152158

153159
1.0.1 (April 6, 2020)
154160
- Updated dependencies to fix vulnerabilities.
155-
- Bugfixing - Support numbers as user keys.
161+
- Bugfix - Support numbers as user keys.
156162

157163
1.0.0 (January 24, 2020)
158164
- Initial public release!

package-lock.json

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@splitsoftware/splitio-redux",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "A library to easily use Split JS SDK with Redux and React Redux",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -59,7 +59,7 @@
5959
},
6060
"homepage": "https://github.com/splitio/redux-client#readme",
6161
"dependencies": {
62-
"@splitsoftware/splitio": "11.2.0",
62+
"@splitsoftware/splitio": "11.4.0",
6363
"tslib": "^2.3.1"
6464
},
6565
"devDependencies": {

src/__tests__/helpers.browser.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const featureFlagViews: SplitIO.SplitViews = [
3535
sets: [],
3636
defaultTreatment: 'off',
3737
impressionsDisabled: false,
38+
prerequisites: []
3839
}, {
3940
name: 'split_2',
4041
trafficType: 'user',
@@ -45,6 +46,7 @@ const featureFlagViews: SplitIO.SplitViews = [
4546
sets: [],
4647
defaultTreatment: 'off',
4748
impressionsDisabled: false,
49+
prerequisites: [{ flagName: 'flag_1', treatments: ['on'] }]
4850
},
4951
];
5052

src/__tests__/helpers.node.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const featureFlagViews: SplitIO.SplitViews = [
3434
sets: [],
3535
defaultTreatment: 'off',
3636
impressionsDisabled: false,
37+
prerequisites: []
3738
}, {
3839
name: 'split_2',
3940
trafficType: 'user',
@@ -44,6 +45,7 @@ const featureFlagViews: SplitIO.SplitViews = [
4445
sets: [],
4546
defaultTreatment: 'off',
4647
impressionsDisabled: false,
48+
prerequisites: [{ flagName: 'flag_1', treatments: ['on'] }]
4749
},
4850
];
4951

0 commit comments

Comments
 (0)