Skip to content

Commit

Permalink
fix: support React 18 (#138)
Browse files Browse the repository at this point in the history
* Update peer-deps to include react version 18

* chore(deps): support React 18

Co-authored-by: Angelo Ashmore <[email protected]>
  • Loading branch information
MarcMcIntosh and angeloashmore authored Mar 31, 2022
1 parent 50ed2f0 commit 3c09fc3
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 65 deletions.
146 changes: 88 additions & 58 deletions package-lock.json

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

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
"@prismicio/mock": "^0.0.8",
"@prismicio/types": "^0.1.25",
"@size-limit/preset-small-lib": "^7.0.8",
"@testing-library/react": "^12.1.3",
"@testing-library/react": "^12.1.4",
"@testing-library/react-hooks": "^7.0.2",
"@types/jsdom": "^16.2.14",
"@types/node-fetch": "^3.0.3",
"@types/react": "^17.0.39",
"@types/react": "^17.0.43",
"@types/react-test-renderer": "^17.0.1",
"@types/sinon": "^10.0.11",
"@typescript-eslint/eslint-plugin": "^5.12.1",
Expand All @@ -70,8 +70,8 @@
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-react": "^7.29.4",
"eslint-plugin-react-hooks": "^4.4.0",
"eslint-plugin-tsdoc": "^0.2.14",
"global-jsdom": "^8.4.0",
"jsdom": "^19.0.0",
Expand All @@ -80,8 +80,8 @@
"nyc": "^15.1.0",
"prettier": "^2.5.1",
"prettier-plugin-jsdoc": "^0.3.30",
"react": "^17",
"react-test-renderer": "^17.0.2",
"react": "^18.0.0",
"react-test-renderer": "^18.0.0",
"sinon": "^13.0.1",
"siroc": "^0.16.0",
"size-limit": "^7.0.8",
Expand All @@ -90,7 +90,7 @@
},
"peerDependencies": {
"@prismicio/client": "^6.0.0",
"react": "^16.8 || ^17"
"react": "^16.8 || ^17 || ^18"
},
"peerDependenciesMeta": {
"@prismicio/client": {
Expand Down

0 comments on commit 3c09fc3

Please sign in to comment.