Skip to content

Commit e7a9e22

Browse files
Merge pull request #256 from splitio/development
Release v2.6.1
2 parents b93c313 + 32cc51d commit e7a9e22

File tree

6 files changed

+50
-81
lines changed

6 files changed

+50
-81
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ jobs:
2323
runs-on: ubuntu-latest
2424
steps:
2525
- name: Checkout code
26-
uses: actions/checkout@v4
26+
uses: actions/checkout@v5
2727
with:
2828
fetch-depth: 0
2929

3030
- name: Set up Node.js
31-
uses: actions/setup-node@v4
31+
uses: actions/setup-node@v6
3232
with:
3333
node-version: 'lts/*'
3434
cache: 'npm'
@@ -48,37 +48,9 @@ jobs:
4848
- name: Set VERSION env
4949
run: echo "VERSION=$(cat package.json | jq -r .version)" >> $GITHUB_ENV
5050

51-
- name: SonarQube Scan (Push)
52-
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
53-
uses: SonarSource/sonarcloud-github-action@v1.9
54-
env:
55-
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
56-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57-
with:
58-
projectBaseDir: .
59-
args: >
60-
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
61-
-Dsonar.projectVersion=${{ env.VERSION }}
62-
-Dsonar.branch.name=${{ github.ref_name }}
63-
64-
- name: SonarQube Scan (Pull Request)
65-
if: github.event_name == 'pull_request'
66-
uses: SonarSource/sonarcloud-github-action@v1.9
67-
env:
68-
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
69-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
with:
71-
projectBaseDir: .
72-
args: >
73-
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
74-
-Dsonar.projectVersion=${{ env.VERSION }}
75-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
76-
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
77-
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
78-
7951
- name: Store assets
8052
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/development')
81-
uses: actions/upload-artifact@v4
53+
uses: actions/upload-artifact@v5
8254
with:
8355
name: assets
8456
path: umd/
@@ -100,7 +72,7 @@ jobs:
10072

10173
steps:
10274
- name: Download assets
103-
uses: actions/download-artifact@v4
75+
uses: actions/download-artifact@v6
10476
with:
10577
name: assets
10678
path: umd
@@ -139,7 +111,7 @@ jobs:
139111

140112
steps:
141113
- name: Download assets
142-
uses: actions/download-artifact@v4
114+
uses: actions/download-artifact@v6
143115
with:
144116
name: assets
145117
path: umd

.github/workflows/update-license-year.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1717
with:
1818
fetch-depth: 0
1919

CHANGES.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
2.6.1 (November 26, 2025)
2+
- Updated @splitsoftware/splitio package to version 11.9.0 that updates the order of storage operations to prevent inconsistent states when using the `LOCALSTORAGE` storage type and the browser’s `localStorage` fails due to quota limits.
3+
14
2.6.0 (November 4, 2025)
2-
- Added `useTreatment`, `useTreatments`, `useTreatmentWithConfig` and `useTreatmentsWithConfig` hooks to replace the now deprecated `useSplitTreatments` hook.
5+
- Added `useTreatment`, `useTreatments`, `useTreatmentWithConfig` and `useTreatmentsWithConfig` hooks to replace the now deprecated `useSplitTreatments` hook. Related to https://github.com/splitio/react-client/issues/69 and contributed by Dave Beshero (@besh).
36
- Updated @splitsoftware/splitio package to version 11.8.0 that includes minor updates:
47
- Added new configuration for Fallback Treatments, which allows setting a treatment value and optional config to be returned in place of "control", either globally or by flag. Read more in our docs.
58
- Added support for custom loggers: added `logger` configuration option and `factory.Logger.setLogger` method to allow the SDK to use a custom logger.

package-lock.json

Lines changed: 38 additions & 35 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-react",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"description": "A React library to easily integrate and use Split JS SDK",
55
"main": "cjs/index.js",
66
"module": "esm/index.js",
@@ -63,7 +63,7 @@
6363
},
6464
"homepage": "https://github.com/splitio/react-client#readme",
6565
"dependencies": {
66-
"@splitsoftware/splitio": "11.8.0",
66+
"@splitsoftware/splitio": "11.9.0",
6767
"memoize-one": "^5.1.1",
6868
"shallowequal": "^1.1.0",
6969
"tslib": "^2.3.1"

sonar-project.properties

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)