From e860fd74496490f1311a2a55a9ed70b3ec6dd6fb Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 5 Jul 2023 22:36:46 +0200 Subject: [PATCH 01/10] chore: prepare next release (#104) --- CHANGELOG.md | 10 ++++++++++ package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fecac828..05c75b72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Version 0.7.0 - tbd + +### Added + +### Changed + +### Fixed + +### Removed + ## Version 0.6.1 - 2023-07-05 ### Changed diff --git a/package.json b/package.json index 94760136..18495255 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cap-js/graphql", - "version": "0.6.1", + "version": "0.7.0", "description": "CDS protocol adapter for GraphQL", "keywords": [ "CAP", From 7267d031fc40260ca779260e766e927c1642f913 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 12 Jul 2023 10:05:10 +0200 Subject: [PATCH 02/10] fix: GraphiQL Explorer Plugin init function usage (#106) --- CHANGELOG.md | 2 ++ app/graphiql.html | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 05c75b72..b5e26f79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- GraphiQL Explorer Plugin initialization due to upstream implementation pattern change + ### Removed ## Version 0.6.1 - 2023-07-05 diff --git a/app/graphiql.html b/app/graphiql.html index 60c55124..8bf3453d 100644 --- a/app/graphiql.html +++ b/app/graphiql.html @@ -31,14 +31,11 @@ const fetcher = GraphiQL.createFetcher({ url: '' }) function GraphiQLWithExplorer() { - const [query, setQuery] = React.useState() - const explorerPlugin = GraphiQLPluginExplorer.useExplorerPlugin({ query, onEdit: setQuery }) + const explorerPlugin = GraphiQLPluginExplorer.explorerPlugin() return React.createElement(GraphiQL, { fetcher, defaultEditorToolsVisibility: true, - plugins: [explorerPlugin], - query, - onEditQuery: setQuery + plugins: [explorerPlugin] }) } From e773ef81430702a8fa65aa57261fa54b489126ce Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Wed, 12 Jul 2023 11:55:30 +0200 Subject: [PATCH 03/10] chore: pin `graphiql` and `@graphiql/plugin-explorer` versions (#107) * Pin `graphiql` and `@graphiql/plugin-explorer` * Add changelog entry * Reword changelog entry --- CHANGELOG.md | 3 +++ app/graphiql.html | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5e26f79..59354d1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Pin `graphiql` version to `^3` +- Pin `@graphiql/plugin-explorer` version to `~0.3` + ### Fixed - GraphiQL Explorer Plugin initialization due to upstream implementation pattern change diff --git a/app/graphiql.html b/app/graphiql.html index 8bf3453d..30e538c8 100644 --- a/app/graphiql.html +++ b/app/graphiql.html @@ -14,8 +14,8 @@ } - - + + @@ -24,8 +24,8 @@ - - + +