Skip to content

Commit 76cf255

Browse files
authored
update dev dependencies, tests and readme (#137)
* update dev dependencies, tests and readme * small change
1 parent ee95bff commit 76cf255

File tree

4 files changed

+747
-804
lines changed

4 files changed

+747
-804
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ This hook return a value for BridgeProvider
234234
* In order to stop propagation, `children` of a context provider has to be either created outside of the provider or memoized with `React.memo`.
235235
* Provider trigger re-renders only if the context value is referentially changed.
236236
* Neither context consumers or class components are supported.
237-
* The [stale props](https://react-redux.js.org/api/hooks#stale-props-and-zombie-children) issue can't be solved in userland.
237+
* The [stale props](https://react-redux.js.org/api/hooks#stale-props-and-zombie-children) issue exists in React 17 and below. (Can be resolved with `unstable_batchedUpdates`)
238238
* Tearing is only avoided if all consumers get data using `useContextSelector`. If you use both props and `use-context-selector` to pass the same data, they may provide inconsistence data for a brief moment. (`02_tearing_spec` fails)
239239

240240
## Examples

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,33 @@
5555
"singleQuote": true
5656
},
5757
"devDependencies": {
58-
"@testing-library/jest-dom": "^6.4.5",
59-
"@testing-library/react": "^15.0.6",
58+
"@testing-library/jest-dom": "^6.5.0",
59+
"@testing-library/react": "^16.0.1",
6060
"@testing-library/user-event": "^14.5.2",
61-
"@types/node": "^20.12.10",
62-
"@types/react": "^18.3.1",
61+
"@types/node": "^22.5.4",
62+
"@types/react": "^18.3.5",
6363
"@types/react-dom": "^18.3.0",
6464
"@types/scheduler": "^0.23.0",
65-
"@typescript-eslint/eslint-plugin": "^7.8.0",
66-
"@typescript-eslint/parser": "^7.8.0",
65+
"@typescript-eslint/eslint-plugin": "^8.4.0",
66+
"@typescript-eslint/parser": "^8.4.0",
6767
"documentation": "^14.0.3",
6868
"eslint": "8.57.0",
6969
"eslint-config-prettier": "^9.1.0",
70-
"eslint-import-resolver-typescript": "^3.6.1",
71-
"eslint-plugin-import": "^2.29.1",
72-
"eslint-plugin-jsx-a11y": "^6.8.0",
73-
"eslint-plugin-react": "^7.34.1",
70+
"eslint-import-resolver-typescript": "^3.6.3",
71+
"eslint-plugin-import": "^2.30.0",
72+
"eslint-plugin-jsx-a11y": "^6.10.0",
73+
"eslint-plugin-react": "^7.35.2",
7474
"eslint-plugin-react-hooks": "^4.6.2",
75-
"happy-dom": "^14.8.3",
76-
"prettier": "^3.2.5",
75+
"happy-dom": "^15.7.3",
76+
"prettier": "^3.3.3",
7777
"react": "^18.3.1",
7878
"react-dom": "^18.3.1",
7979
"scheduler": "^0.23.2",
8080
"ts-expect": "^1.3.0",
81-
"typescript": "^5.4.5",
81+
"typescript": "^5.5.4",
8282
"use-context-selector": "link:.",
83-
"vite": "^5.2.11",
84-
"vitest": "^1.6.0"
83+
"vite": "^5.4.3",
84+
"vitest": "^2.0.5"
8585
},
8686
"peerDependencies": {
8787
"react": ">=18.0.0",

0 commit comments

Comments
 (0)