From 838e58dad652d8f5559af7b88d049b1c62348f2f Mon Sep 17 00:00:00 2001 From: "C. T. Lin" Date: Sun, 22 May 2022 18:19:29 +0800 Subject: [PATCH] fix: use || instead of | in peerDependencies (#2423) * fix: use || instead of | in peerDependencies * add changeset * format changelog Co-authored-by: Thomas Heyenbrock --- .changeset/lovely-onions-rhyme.md | 6 ++++++ packages/graphiql-react/CHANGELOG.md | 16 +++------------- packages/graphiql-react/package.json | 4 ++-- 3 files changed, 11 insertions(+), 15 deletions(-) create mode 100644 .changeset/lovely-onions-rhyme.md diff --git a/.changeset/lovely-onions-rhyme.md b/.changeset/lovely-onions-rhyme.md new file mode 100644 index 00000000000..511b744a7b7 --- /dev/null +++ b/.changeset/lovely-onions-rhyme.md @@ -0,0 +1,6 @@ +--- +"@graphiql/react": patch +"graphiql": patch +--- + +Fix peer dependency declaration by using `||` instead of `|` to link multiple major versions diff --git a/packages/graphiql-react/CHANGELOG.md b/packages/graphiql-react/CHANGELOG.md index 64a522171ba..adda4d726d1 100644 --- a/packages/graphiql-react/CHANGELOG.md +++ b/packages/graphiql-react/CHANGELOG.md @@ -1,27 +1,17 @@ # @graphiql/react ## 0.1.0 -### Minor Changes - +### Minor Changes - [#2409](https://github.com/graphql/graphiql/pull/2409) [`f2025ba0`](https://github.com/graphql/graphiql/commit/f2025ba06c5aa8e8ac68d29538ff135f3efc8e46) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the variable editor from the `graphiql` package into a hook `useVariableEditor` provided by `@graphiql/react` - - -- [#2408](https://github.com/graphql/graphiql/pull/2408) [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the query editor from the `graphiql` package into a hook `useQueryEditor` provided by `@graphiql/react` - - +* [#2408](https://github.com/graphql/graphiql/pull/2408) [`d825bb75`](https://github.com/graphql/graphiql/commit/d825bb7569ca6b1ebbe534b893354645c790e003) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the query editor from the `graphiql` package into a hook `useQueryEditor` provided by `@graphiql/react` - [#2411](https://github.com/graphql/graphiql/pull/2411) [`ad448693`](https://github.com/graphql/graphiql/commit/ad4486934ba69247efd33ee500e30f8236ecd079) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Move the logic of the result viewer from the `graphiql` package into a hook `useResponseEditor` provided by `@graphiql/react` - - -- [#2404](https://github.com/graphql/graphiql/pull/2404) [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a context provider for editors and move the logic of the headers editor from the `graphiql` package into a hook `useHeaderEditor` provided by `@graphiql/react` - +* [#2404](https://github.com/graphql/graphiql/pull/2404) [`029ddf82`](https://github.com/graphql/graphiql/commit/029ddf82c29754ab8518ae7df66f9b25361a8247) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a context provider for editors and move the logic of the headers editor from the `graphiql` package into a hook `useHeaderEditor` provided by `@graphiql/react` ### Patch Changes - - - [#2370](https://github.com/graphql/graphiql/pull/2370) [`7f695b10`](https://github.com/graphql/graphiql/commit/7f695b104f9b25ba8c6d36f7827c475b297b7482) Thanks [@thomasheyenbrock](https://github.com/thomasheyenbrock)! - Add a context with provider component and hooks that manages the state related to the docs/explorer. diff --git a/packages/graphiql-react/package.json b/packages/graphiql-react/package.json index 8f67b84235d..726ff4ea4b9 100644 --- a/packages/graphiql-react/package.json +++ b/packages/graphiql-react/package.json @@ -26,8 +26,8 @@ }, "peerDependencies": { "graphql": "^15.5.0 || ^16.0.0", - "react": "^16.8.0 | ^17.0.0 | ^18.0.0", - "react-dom": "^16.8.0 | ^17.0.0 | ^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" }, "dependencies": { "codemirror": "^5.65.3",