From 984c9bb7f4b18a5e4ba63e540de5a264851c80cd Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Sat, 24 Oct 2020 14:42:07 +0200 Subject: [PATCH] Add support for React 17 --- package.json | 8 ++++---- test/react-markdown.test.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 9072964c..763883c3 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ }, "peerDependencies": { "@types/react": "^15.0.0 || ^16.0.0", - "react": "^15.0.0 || ^16.0.0" + "react": "^15.0.0 || ^16.0.0 || ^17.0.0" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -64,10 +64,10 @@ "@rollup/plugin-replace": "^2.0.0", "@types/react": "^16.0.0", "@types/react-dom": "^16.0.0", + "@wojtekmaj/enzyme-adapter-react-17": "^0.1.1", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "dtslint": "^4.0.0", "enzyme": "^3.10.0", - "enzyme-adapter-react-16": "^1.0.0", "eslint": "^7.0.0", "eslint-config-prettier": "^6.0.0", "eslint-config-sanity": "^4.0.0", @@ -75,8 +75,8 @@ "jest": "^26.0.0", "npm-run-all": "^4.0.0", "prettier": "^2.0.0", - "react": "^16.0.0", - "react-dom": "^16.0.0", + "react": "^17.0.0", + "react-dom": "^17.0.0", "react-katex": "^2.0.0", "react-test-renderer": "^16.0.0", "remark-cli": "^9.0.0", diff --git a/test/react-markdown.test.js b/test/react-markdown.test.js index 00075ab2..ce22e5d5 100644 --- a/test/react-markdown.test.js +++ b/test/react-markdown.test.js @@ -1,7 +1,7 @@ /* eslint-env jest */ /* eslint-disable react/prop-types */ const Enzyme = require('enzyme') -const Adapter = require('enzyme-adapter-react-16') +const Adapter = require('@wojtekmaj/enzyme-adapter-react-17') const fs = require('fs') const path = require('path') const React = require('react')