Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v2.0.0 #129

Merged
merged 25 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5653495
Upgrade JS SDK dependency, which includes large segments and factory …
EmilianoSanchez Sep 20, 2024
91fc42a
Merge branch 'master' into release_v1.15.0
EmilianoSanchez Oct 15, 2024
2ac5530
Rename build folders for consistency with other packages
EmilianoSanchez Oct 29, 2024
844eec5
Merge pull request #123 from splitio/rename_dist_folders
EmilianoSanchez Oct 29, 2024
14f5134
Merge branch 'breaking_change_baseline' into release_v1.15.0
EmilianoSanchez Oct 29, 2024
60210fe
Merge pull request #120 from splitio/release_v1.15.0
EmilianoSanchez Oct 29, 2024
434a0f0
Upgrade JS SDK to v11
EmilianoSanchez Oct 29, 2024
adb9a68
Update types
EmilianoSanchez Oct 29, 2024
edbc8c1
Add TSDoc linter rules
EmilianoSanchez Oct 29, 2024
05f3f95
Upgrade JS SDK to v11.0.1
EmilianoSanchez Nov 11, 2024
d752428
Merge branch 'upgrade_js_sdk_v11' into tsdoc_linter
EmilianoSanchez Nov 11, 2024
91e268c
Rename Node.js
EmilianoSanchez Nov 11, 2024
d3056c7
Polishing
EmilianoSanchez Nov 12, 2024
ffd93c0
Merge pull request #125 from splitio/upgrade_js_sdk_v11
EmilianoSanchez Nov 12, 2024
c3b937e
Merge pull request #126 from splitio/tsdoc_linter
EmilianoSanchez Nov 12, 2024
9dbfcbc
Update changelog
EmilianoSanchez Nov 12, 2024
e39e0d6
Fix typos
EmilianoSanchez Nov 12, 2024
947925d
Added MIGRATION-GUIDE.md file
EmilianoSanchez Nov 12, 2024
5e2967f
Updated 'getTreatments' action creator to not dispatch an action when…
EmilianoSanchez Nov 12, 2024
0c4c72f
Merge pull request #128 from splitio/update_getTreatments_action_creator
EmilianoSanchez Nov 13, 2024
080e7ae
Merge pull request #127 from splitio/polishing
EmilianoSanchez Nov 13, 2024
f01b764
Updated redux peer-dependency to >=3.0.0
EmilianoSanchez Nov 13, 2024
b2d88cb
rc
EmilianoSanchez Nov 13, 2024
8a99367
stable version
EmilianoSanchez Nov 13, 2024
60bef68
Merge pull request #124 from splitio/breaking_change_baseline
EmilianoSanchez Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = {
'plugins': [
'react',
'@typescript-eslint',
'eslint-plugin-tsdoc',
'import'
],
'rules': {
Expand Down Expand Up @@ -56,5 +57,11 @@ module.exports = {
'import/no-self-import': 'error',
'import/no-default-export': 'error',
}
}, {
// Enable TSDoc rules for TypeScript files, allowing the use of JSDoc in JS files.
'files': ['**/*.ts'],
'rules': {
'tsdoc/syntax': 'warn'
}
}],
};
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.DS_Store
node_modules
lib
es
types
coverage
examples
.vscode
.scannerwork
/node_modules
/cjs
/esm
/types
/coverage
/examples
/.vscode
/.scannerwork
13 changes: 12 additions & 1 deletion CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
2.0.0 (November 14, 2024)
- Added support for targeting rules based on large segments.
- Updated @splitsoftware/splitio package to version 11.0.1 that includes major updates, and updated some transitive dependencies for vulnerability fixes.
- Updated `getTreatments` action creator to not dispatch an action when called while the SDK is not ready or ready from cache, to avoid unnecessary updates in the state.
- Renamed distribution folders from `/lib` to `/cjs` for CommonJS build, and `/es` to `/esm` for ECMAScript Modules build.
- BREAKING CHANGES:
- Removed the `core.trafficType` option from the `config` object accepted by the `initSplitSdk` action creator, and made the `trafficType` argument of the `track` helper function mandatory.
This is because traffic types can no longer be bound to SDK clients since JavaScript SDK v11.0.0, so the traffic type must now be provided as an argument in `track` function calls.
Refer to ./MIGRATION-GUIDE.md for more details.
- Updated peer dependencies to drop support for Redux library below v3.0.0.

1.14.1 (October 15, 2024)
- 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).

Expand Down Expand Up @@ -55,7 +66,7 @@
- Updated linter dependencies and rules. The deprecated TSLint package was replaced by ESLint.
- Updated some transitive dependencies for vulnerability fixes.
- Updated @splitsoftware/splitio package to version 10.22.4 that includes minor improvements.
- Bugfixing - Fixed error when using the SDK in localhost mode for testing with NodeJS test runners such as Jest (See https://help.split.io/hc/en-us/articles/360038851551-Redux-SDK#localhost-mode).
- 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).

1.7.1 (November 15, 2022)
- Updated React Redux peer dependency range to include [email protected] and [email protected].
Expand Down
40 changes: 40 additions & 0 deletions MIGRATION-GUIDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

# Migrating to Redux SDK v2.0.0

Redux SDK v2.0.0 introduces a breaking change that you should consider when migrating from a previous version.

If you were passing the `core.trafficType` option to the SDK configuration object, you should remove it since it is no longer supported.
The `trafficType` must be passed as an argument of the `track` helper function. For example:

```js
import { initSplitSdk, track } from '@splitsoftware/splitio-redux'

const CONFIG = {
core: {
authorizationKey: YOUR_CLIENT_SIDE_SDK_KEY,
key: USER_KEY,
trafficType: 'user'
}
}

store.dispatch(initSplitSdk({ config: CONFIG }))

track({ eventType: 'my_event' });
```

should be refactored to:

```js
import { initSplitSdk, track } from '@splitsoftware/splitio-redux'

const CONFIG = {
core: {
authorizationKey: YOUR_CLIENT_SIDE_SDK_KEY,
key: USER_KEY
}
}

store.dispatch(initSplitSdk({ config: CONFIG }))

track({ eventType: 'my_event', trafficType: 'user' });
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Split has built and maintains SDKs for:
* Java [Github](https://github.com/splitio/java-client) [Docs](https://help.split.io/hc/en-us/articles/360020405151-Java-SDK)
* JavaScript [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020448791-JavaScript-SDK)
* JavaScript for Browser [Github](https://github.com/splitio/javascript-browser-client) [Docs](https://help.split.io/hc/en-us/articles/360058730852-Browser-SDK)
* Node [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
* Node.js [Github](https://github.com/splitio/javascript-client) [Docs](https://help.split.io/hc/en-us/articles/360020564931-Node-js-SDK)
* PHP [Github](https://github.com/splitio/php-client) [Docs](https://help.split.io/hc/en-us/articles/360020350372-PHP-SDK)
* PHP thin-client [Github](https://github.com/splitio/php-thin-client) [Docs](https://help.split.io/hc/en-us/articles/18305128673933-PHP-Thin-Client-SDK)
* Python [Github](https://github.com/splitio/python-client) [Docs](https://help.split.io/hc/en-us/articles/360020359652-Python-SDK)
Expand Down
Loading
Loading