From d3a88283c7b618376ad4a06c7db20e60b066d1a0 Mon Sep 17 00:00:00 2001 From: Tony Date: Fri, 29 Oct 2021 18:23:12 +0900 Subject: [PATCH] fix(graphiql): add react 17, 18 in peerDependencies (#1934) * fix(graphiql): add react 17, 18 in peerDependencies * chore: add changeset --- .changeset/hungry-seals-fix.md | 5 +++++ packages/graphiql/package.json | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/hungry-seals-fix.md diff --git a/.changeset/hungry-seals-fix.md b/.changeset/hungry-seals-fix.md new file mode 100644 index 00000000000..269bd7d6c35 --- /dev/null +++ b/.changeset/hungry-seals-fix.md @@ -0,0 +1,5 @@ +--- +'graphiql': patch +--- + +add react 17, 18 in peerDependencies diff --git a/packages/graphiql/package.json b/packages/graphiql/package.json index df4d7a7c7ce..a0b024fbe7d 100644 --- a/packages/graphiql/package.json +++ b/packages/graphiql/package.json @@ -54,8 +54,8 @@ }, "peerDependencies": { "graphql": ">= v14.5.0 <= 15.5.0", - "react": "^16.8.0", - "react-dom": "^16.8.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "devDependencies": { "@testing-library/jest-dom": "^5.4.0",