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 v1.14.0 #118

Merged
merged 40 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
29844ff
Upgrade JS SDK and vulnerability fixes
EmilianoSanchez Sep 5, 2024
cccc086
Update tests and polishing
EmilianoSanchez Sep 6, 2024
5cab1e2
Refactor splitReducer
EmilianoSanchez Sep 6, 2024
057d295
Use SDK client lastUpdate to set the property in the state
EmilianoSanchez Sep 6, 2024
9e8667d
Handle events of non-default clients
EmilianoSanchez Sep 6, 2024
94fd37a
Update status property in state
EmilianoSanchez Sep 6, 2024
a3fc06f
Make status property optional, to avoid an interface breaking change
EmilianoSanchez Sep 10, 2024
e49acdd
Update reducer unit tests
EmilianoSanchez Sep 10, 2024
792927d
Add custom Jest matcher to simplify unit tests
EmilianoSanchez Sep 10, 2024
a51613a
Merge pull request #115 from splitio/refactor_reducer_and_actions
EmilianoSanchez Sep 10, 2024
385443c
Merge branch 'refactor_reducer_and_actions' into add_shared_clients_s…
EmilianoSanchez Sep 10, 2024
8913f07
Rename test file to match src file
EmilianoSanchez Sep 10, 2024
22dc49f
Unit tests: assert dispatched actions
EmilianoSanchez Sep 10, 2024
e0ced35
Merge branch 'status_properties_update' into add_shared_clients_statu…
EmilianoSanchez Sep 10, 2024
20ae830
Fix test
EmilianoSanchez Sep 10, 2024
96eb777
Update SPLIT_READY_WITH_EVALUATIONS action to handle default and non-…
EmilianoSanchez Sep 11, 2024
917fabf
rc
EmilianoSanchez Sep 11, 2024
269c4e9
Create isMainClient function to reuse as a util
EmilianoSanchez Sep 11, 2024
bfeae9f
Merge branch 'status_properties_update' into add_shared_clients_statu…
EmilianoSanchez Sep 11, 2024
8060bb7
Updated and selectors to retrieve status properties from the state …
EmilianoSanchez Sep 11, 2024
722e293
Fix typos
EmilianoSanchez Sep 11, 2024
98fb9bd
Merge branch 'status_properties_update' into add_shared_clients_statu…
EmilianoSanchez Sep 11, 2024
470c3ec
rc
EmilianoSanchez Sep 11, 2024
b434883
Add selectStatus selector
EmilianoSanchez Sep 12, 2024
54db7c2
stable version
EmilianoSanchez Sep 12, 2024
eac0e6b
Merge pull request #116 from splitio/add_shared_clients_status_to_state
EmilianoSanchez Sep 12, 2024
2103250
Add ISplitAction type
EmilianoSanchez Sep 12, 2024
b9c6bf9
Merge branch 'status_properties_update' into add_selectStatus
EmilianoSanchez Sep 12, 2024
bd8c52f
Update type definition comments
EmilianoSanchez Sep 12, 2024
d728b47
Export remaining types
EmilianoSanchez Sep 12, 2024
0677eeb
Fix some links
EmilianoSanchez Sep 12, 2024
c7433a3
Fix export
EmilianoSanchez Sep 12, 2024
0747866
Merge pull request #117 from splitio/add_selectStatus
EmilianoSanchez Sep 12, 2024
31c5c76
Merge pull request #114 from splitio/status_properties_update
EmilianoSanchez Sep 12, 2024
a37e2c0
Update shared client status to store isReadyFromCache property
EmilianoSanchez Sep 13, 2024
56b890a
stable version
EmilianoSanchez Sep 13, 2024
ec3c3d3
Update tests
EmilianoSanchez Sep 13, 2024
73a6720
Fix corner case, to dispatch a single action rather than 2
EmilianoSanchez Sep 13, 2024
4e6bb47
stable version
EmilianoSanchez Sep 13, 2024
da2ce96
Merge pull request #119 from splitio/update_shared_clients_status
EmilianoSanchez Sep 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
10 changes: 10 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
1.14.0 (September 13, 2024)
- 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).
- Added `lastUpdate` and `isTimedout` properties to the object returned by the `getStatus` helper and `selectTreatmentAndStatus` and `selectTreatmentWithConfigAndStatus` selectors, to expose the last event timestamp and the timedout status of the SDK clients (Related to https://github.com/splitio/redux-client/issues/113).
- Added `selectStatus` selector to retrieve the status properties of the SDK manager and clients from the Split state.
- Added remaining TypeScript types and interfaces to the library index exports, allowing them to be imported from the library index in TypeScript, e.g., `import type { IInitSplitSdkParams } from '@splitsoftware/splitio-redux'`.
- Updated `selectTreatmentAndStatus` and `selectTreatmentWithConfigAndStatus` selectors to retrieve status properties from the state rather than the SDK client instances directly.
- Updated @splitsoftware/splitio package to version 10.28.0 that includes minor updates:
- Added `sync.requestOptions.getHeaderOverrides` configuration option to enhance SDK HTTP request Headers for Authorization Frameworks.
- Updated some transitive dependencies for vulnerability fixes.

1.13.0 (May 24, 2024)
- Added a new `getStatus` helper function to retrieve the status properties of the SDK manager and clients: `isReady`, `isReadyFromCache`, `hasTimedout`, and `isDestroyed`.
- Added new `selectTreatmentAndStatus` and `selectTreatmentWithConfigAndStatus` selectors as alternatives to the `selectTreatmentValue` and `selectTreatmentWithConfig` selectors, respectively.
Expand Down
5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ module.exports = {
collectCoverageFrom: [
'src/**/*.{js,jsx,ts,tsx}',
'!src/__tests__/**',
]
],

// Custom jest matcher
setupFilesAfterEnv: ['<rootDir>/src/__tests__/utils/toBeWithinRange.ts'],
};
126 changes: 53 additions & 73 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@splitsoftware/splitio-redux",
"version": "1.13.0",
"version": "1.14.0",
"description": "A library to easily use Split JS SDK with Redux and React Redux",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down Expand Up @@ -59,13 +59,12 @@
},
"homepage": "https://github.com/splitio/redux-client#readme",
"dependencies": {
"@splitsoftware/splitio": "10.26.0",
"@splitsoftware/splitio": "10.28.0",
"tslib": "^2.3.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@types/jest": "^27.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/redux-mock-store": "^1.0.1",
Expand Down
Loading
Loading