Skip to content

Commit b990476

Browse files
committed
Add support for React 17
1 parent 6e38dd3 commit b990476

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@
3939
"dependencies": {
4040
"@types/mdast": "^3.0.3",
4141
"@types/unist": "^2.0.3",
42-
"html-to-react": "^1.3.4",
42+
"html-to-react": "^1.4.5",
4343
"mdast-add-list-metadata": "1.0.1",
4444
"prop-types": "^15.7.2",
45-
"react-is": "^16.8.6",
45+
"react-is": "^17.0.0",
4646
"remark-parse": "^9.0.0",
4747
"unified": "^9.0.0",
4848
"unist-util-visit": "^2.0.0",
4949
"xtend": "^4.0.1"
5050
},
5151
"peerDependencies": {
5252
"@types/react": "^15.0.0 || ^16.0.0",
53-
"react": "^15.0.0 || ^16.0.0"
53+
"react": ">=16"
5454
},
5555
"devDependencies": {
5656
"@babel/cli": "^7.0.0",
@@ -64,21 +64,21 @@
6464
"@rollup/plugin-replace": "^2.0.0",
6565
"@types/react": "^16.0.0",
6666
"@types/react-dom": "^16.0.0",
67+
"@wojtekmaj/enzyme-adapter-react-17": "^0.1.1",
6768
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
6869
"dtslint": "^4.0.0",
6970
"enzyme": "^3.10.0",
70-
"enzyme-adapter-react-16": "^1.0.0",
7171
"eslint": "^7.0.0",
7272
"eslint-config-prettier": "^6.0.0",
7373
"eslint-config-sanity": "^4.0.0",
7474
"eslint-plugin-react": "^7.0.0",
7575
"jest": "^26.0.0",
7676
"npm-run-all": "^4.0.0",
7777
"prettier": "^2.0.0",
78-
"react": "^16.0.0",
79-
"react-dom": "^16.0.0",
8078
"react-katex": "^2.0.0",
81-
"react-test-renderer": "^16.0.0",
79+
"react": "^17.0.0",
80+
"react-dom": "^17.0.0",
81+
"react-test-renderer": "^17.0.0",
8282
"remark-cli": "^9.0.0",
8383
"remark-gfm": "^1.0.0",
8484
"remark-math": "^4.0.0",

test/react-markdown.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-env jest */
22
/* eslint-disable react/prop-types */
33
const Enzyme = require('enzyme')
4-
const Adapter = require('enzyme-adapter-react-16')
4+
const Adapter = require('@wojtekmaj/enzyme-adapter-react-17')
55
const fs = require('fs')
66
const path = require('path')
77
const React = require('react')

0 commit comments

Comments
 (0)