Skip to content

Commit d6bc305

Browse files
committed
deps: update peerDeps to support React 17 without warnings
- seems to work without any component modifications needed on React 17 - it was supposed to have "no new features" in any case per the release blog post - https://reactjs.org/blog/2020/10/20/react-v17.html - ensure tests pass with React 17 - update devDeps to React 17 + react-dom 17 - update devDeps to use unofficial Enzyme Adapter for React 17 - official adapter has yet to be released, but this seems to work for many people and the usage here is quite simple, so should be fine for this use-case - and tests seem to pass without issue too - React 18 will be a separate story, but will cross that bridge when we get there
1 parent d449c18 commit d6bc305

File tree

3 files changed

+148
-126
lines changed

3 files changed

+148
-126
lines changed

package-lock.json

Lines changed: 142 additions & 120 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@
4646
},
4747
"peerDependencies": {
4848
"prop-types": "^15.5.8",
49-
"react": "0.14 - 16",
50-
"react-dom": "0.14 - 16"
49+
"react": "0.14 - 17",
50+
"react-dom": "0.14 - 17"
5151
},
5252
"dependencies": {
5353
"signature_pad": "^2.3.2",
5454
"trim-canvas": "^0.1.0"
5555
},
5656
"devDependencies": {
5757
"@agilgur5/changelog-maker": "^3.0.0",
58+
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
5859
"babel-core": "^6.26.3",
5960
"babel-eslint": "^10.0.2",
6061
"babel-jest": "^23.6.0",
@@ -65,10 +66,9 @@
6566
"canvas-prebuilt": "^1.6.11",
6667
"css-loader": "^0.24.0",
6768
"enzyme": "^3.10.0",
68-
"enzyme-adapter-react-16": "^1.14.0",
6969
"jest": "^24.8.0",
70-
"react": "^16.8.6",
71-
"react-dom": "^16.8.6",
70+
"react": "^17.0.2",
71+
"react-dom": "^17.0.2",
7272
"react-hot-loader": "^1.2.7",
7373
"standard": "^13.0.2",
7474
"style-loader": "^0.13.1",

0 commit comments

Comments
 (0)