Skip to content

Commit 815145c

Browse files
Update changelog entry and prepare rc
1 parent bdb5ee3 commit 815145c

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.1.1 (April 8, 2025)
2+
- Bugfix - Fixed `useSplitClient` and `useSplitTreatments` hooks to properly respect `updateOn<Event>` options. Previously, if the hooks were re-called due to a component re-render, it used the latest version of the SDK client status ignoring when `updateOn<Event>` options were set to `false`.
3+
14
2.1.0 (March 28, 2025)
25
- Added a new optional `properties` argument to the options object of the `useSplitTreatments` hook, allowing to pass a map of properties to append to the generated impressions sent to Split backend. Read more in our docs.
36
- Updated @splitsoftware/splitio package to version 11.2.0 that includes some minor updates:

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-react",
3-
"version": "2.1.0",
3+
"version": "2.1.1-rc.0",
44
"description": "A React library to easily integrate and use Split JS SDK",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",

src/__tests__/useSplitClient.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ describe('useSplitClient', () => {
147147
expect([isReady, isReadyFromCache, hasTimedout]).toEqual([true, true, false]);
148148
expect(lastUpdate).toBeGreaterThan(previousLastUpdate);
149149
break;
150-
case 4: // Forced update
150+
case 4: // Forced re-render, lastUpdate doesn't change after SDK_UPDATE due to updateOnSdkUpdate = false
151151
expect([isReady, isReadyFromCache, hasTimedout]).toEqual([true, true, false]);
152152
expect(lastUpdate).toBe(previousLastUpdate);
153153
break;

0 commit comments

Comments
 (0)