Skip to content

Commit

Permalink
update dev dependencies, tests and readme (#137)
Browse files Browse the repository at this point in the history
* update dev dependencies, tests and readme

* small change
  • Loading branch information
dai-shi authored Sep 8, 2024
1 parent ee95bff commit 76cf255
Show file tree
Hide file tree
Showing 4 changed files with 747 additions and 804 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ This hook return a value for BridgeProvider
* In order to stop propagation, `children` of a context provider has to be either created outside of the provider or memoized with `React.memo`.
* Provider trigger re-renders only if the context value is referentially changed.
* Neither context consumers or class components are supported.
* The [stale props](https://react-redux.js.org/api/hooks#stale-props-and-zombie-children) issue can't be solved in userland.
* 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`)
* 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)

## Examples
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,33 +55,33 @@
"singleQuote": true
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.6",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^20.12.10",
"@types/react": "^18.3.1",
"@types/node": "^22.5.4",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/scheduler": "^0.23.0",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"@typescript-eslint/eslint-plugin": "^8.4.0",
"@typescript-eslint/parser": "^8.4.0",
"documentation": "^14.0.3",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-react": "^7.34.1",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-hooks": "^4.6.2",
"happy-dom": "^14.8.3",
"prettier": "^3.2.5",
"happy-dom": "^15.7.3",
"prettier": "^3.3.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"scheduler": "^0.23.2",
"ts-expect": "^1.3.0",
"typescript": "^5.4.5",
"typescript": "^5.5.4",
"use-context-selector": "link:.",
"vite": "^5.2.11",
"vitest": "^1.6.0"
"vite": "^5.4.3",
"vitest": "^2.0.5"
},
"peerDependencies": {
"react": ">=18.0.0",
Expand Down
Loading

0 comments on commit 76cf255

Please sign in to comment.