From 899e17f4c067ee3d5fca6e05df11d273edaf7ae7 Mon Sep 17 00:00:00 2001 From: "C. T. Lin" Date: Sun, 22 May 2022 17:40:37 +0800 Subject: [PATCH 1/3] fix: use || instead of | in peerDependencies --- packages/graphiql-react/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", From eab0467f206d74fbefcf39dad783b00018099d9e Mon Sep 17 00:00:00 2001 From: Thomas Heyenbrock Date: Sun, 22 May 2022 12:00:14 +0200 Subject: [PATCH 2/3] add changeset --- .changeset/lovely-onions-rhyme.md | 6 ++++++ 1 file changed, 6 insertions(+) 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 From d359e15967aa023ef7717e35c4cf4b46766aba7a Mon Sep 17 00:00:00 2001 From: Thomas Heyenbrock Date: Sun, 22 May 2022 12:05:22 +0200 Subject: [PATCH 3/3] format changelog --- packages/graphiql-react/CHANGELOG.md | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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.