diff --git a/.changeset/big-pigs-help.md b/.changeset/big-pigs-help.md deleted file mode 100644 index bfe0fa428c..0000000000 --- a/.changeset/big-pigs-help.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -'@graphql-hive/core': minor -'@graphql-hive/apollo': minor -'@graphql-hive/envelop': minor -'@graphql-hive/yoga': minor ---- - -Add support for providing a logger object via `HivePluginOptions`. - -It is possible to provide the following options: - -- **'trace'** -- **'debug'** -- **'info'** default -- **'warn'** -- **'error'** - -```ts -import { createHive } from '@graphql-hive/core' - -const client = createHive({ - logger: 'info' -}) -``` - -In addition to that, it is also possible to provide a Hive Logger instance, that allows more control over how you want to log and forward logs. - -```ts -import { createHive } from '@graphql-hive/core' -import { Logger } from '@graphql-hive/logger' - -const client = createHive({ - logger: new Logger() -}) -``` - -Head to our [Hive Logger documentation](https://the-guild.dev/graphql/hive/docs/logger) to learn more. - -___ - -**The `HivePluginOptions.debug` option is now deprecated.** Instead, please provide the option `debug` -instead for the logger. - -```diff - import { createHive } from '@graphql-hive/core' - - const client = createHive({ -- debug: process.env.DEBUG === "1", -+ logger: process.env.DEBUG === "1" ? "debug" : "info", - }) -``` - -**Note**: If the `logger` property is provided, the `debug` option is ignored. - -___ - -**The `HivePluginOptions.agent.logger` option is now deprecated.** Instead, please provide -`HivePluginOptions.logger`. - -```diff - import { createHive } from '@graphql-hive/core' - - const logger = new Logger() - - const client = createHive({ - agent: { -- logger, - }, -+ logger, - }) -``` - -**Note**: If both options are provided, the `agent` option is ignored. diff --git a/.changeset/brave-tigers-dance.md b/.changeset/brave-tigers-dance.md deleted file mode 100644 index 00830b1b30..0000000000 --- a/.changeset/brave-tigers-dance.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@graphql-hive/cli': patch ---- - -handle escaped single-quoted strings in schema changes diff --git a/.changeset/loose-dots-learn.md b/.changeset/loose-dots-learn.md deleted file mode 100644 index a3b346da31..0000000000 --- a/.changeset/loose-dots-learn.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@graphql-hive/cli': minor -'hive': minor ---- - -Upgrade graphql-inspector/core to v7 and update the models to be able to handle the new change -objects. GraphQL Inspector now supports directive changes and improves the accuracy of the severity level for several change types. This will improve schema checks to make them more accurate and more complete. See graphql-inspector's changelog for details. diff --git a/deployment/CHANGELOG.md b/deployment/CHANGELOG.md index 35abb0fd74..6995214443 100644 --- a/deployment/CHANGELOG.md +++ b/deployment/CHANGELOG.md @@ -1,5 +1,17 @@ # hive +## 8.11.0 + +### Minor Changes + +- [#7267](https://github.com/graphql-hive/console/pull/7267) + [`114cd80`](https://github.com/graphql-hive/console/commit/114cd80a8e419d6ff631631fee28a9922a7b9e5a) + Thanks [@jdolle](https://github.com/jdolle)! - Upgrade graphql-inspector/core to v7 and update the + models to be able to handle the new change objects. GraphQL Inspector now supports directive + changes and improves the accuracy of the severity level for several change types. This will + improve schema checks to make them more accurate and more complete. See graphql-inspector's + changelog for details. + ## 8.10.0 ### Minor Changes diff --git a/deployment/package.json b/deployment/package.json index b3a7955c72..0d5f856bb0 100644 --- a/deployment/package.json +++ b/deployment/package.json @@ -1,6 +1,6 @@ { "name": "hive", - "version": "8.10.0", + "version": "8.11.0", "private": true, "scripts": { "generate": "tsx generate.ts", diff --git a/packages/libraries/apollo/CHANGELOG.md b/packages/libraries/apollo/CHANGELOG.md index a7d36994f6..add87b4d82 100644 --- a/packages/libraries/apollo/CHANGELOG.md +++ b/packages/libraries/apollo/CHANGELOG.md @@ -1,5 +1,87 @@ # @graphql-hive/apollo +## 0.43.0 + +### Minor Changes + +- [#7290](https://github.com/graphql-hive/console/pull/7290) + [`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for providing a logger object via + `HivePluginOptions`. + + It is possible to provide the following options: + + - **'trace'** + - **'debug'** + - **'info'** default + - **'warn'** + - **'error'** + + ```ts + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + logger: 'info' + }) + ``` + + In addition to that, it is also possible to provide a Hive Logger instance, that allows more + control over how you want to log and forward logs. + + ```ts + import { createHive } from '@graphql-hive/core' + import { Logger } from '@graphql-hive/logger' + + const client = createHive({ + logger: new Logger() + }) + ``` + + Head to our [Hive Logger documentation](https://the-guild.dev/graphql/hive/docs/logger) to learn + more. + + *** + + **The `HivePluginOptions.debug` option is now deprecated.** Instead, please provide the option + `debug` instead for the logger. + + ```diff + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + - debug: process.env.DEBUG === "1", + + logger: process.env.DEBUG === "1" ? "debug" : "info", + }) + ``` + + **Note**: If the `logger` property is provided, the `debug` option is ignored. + + *** + + **The `HivePluginOptions.agent.logger` option is now deprecated.** Instead, please provide + `HivePluginOptions.logger`. + + ```diff + import { createHive } from '@graphql-hive/core' + + const logger = new Logger() + + const client = createHive({ + agent: { + - logger, + }, + + logger, + }) + ``` + + **Note**: If both options are provided, the `agent` option is ignored. + +### Patch Changes + +- Updated dependencies + [[`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f)]: + - @graphql-hive/core@0.16.0 + ## 0.42.1 ### Patch Changes diff --git a/packages/libraries/apollo/package.json b/packages/libraries/apollo/package.json index 9d45e7d456..e0c67f2c49 100644 --- a/packages/libraries/apollo/package.json +++ b/packages/libraries/apollo/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-hive/apollo", - "version": "0.42.1", + "version": "0.43.0", "type": "module", "description": "GraphQL Hive + Apollo Server", "repository": { diff --git a/packages/libraries/apollo/src/version.ts b/packages/libraries/apollo/src/version.ts index ad24d60959..c925cb77f8 100644 --- a/packages/libraries/apollo/src/version.ts +++ b/packages/libraries/apollo/src/version.ts @@ -1 +1 @@ -export const version = '0.42.1'; +export const version = '0.43.0'; diff --git a/packages/libraries/cli/CHANGELOG.md b/packages/libraries/cli/CHANGELOG.md index 5f3bd8f5ca..1c5895a3a1 100644 --- a/packages/libraries/cli/CHANGELOG.md +++ b/packages/libraries/cli/CHANGELOG.md @@ -1,5 +1,28 @@ # @graphql-hive/cli +## 0.55.0 + +### Minor Changes + +- [#7267](https://github.com/graphql-hive/console/pull/7267) + [`114cd80`](https://github.com/graphql-hive/console/commit/114cd80a8e419d6ff631631fee28a9922a7b9e5a) + Thanks [@jdolle](https://github.com/jdolle)! - Upgrade graphql-inspector/core to v7 and update the + models to be able to handle the new change objects. GraphQL Inspector now supports directive + changes and improves the accuracy of the severity level for several change types. This will + improve schema checks to make them more accurate and more complete. See graphql-inspector's + changelog for details. + +### Patch Changes + +- [#7321](https://github.com/graphql-hive/console/pull/7321) + [`316859e`](https://github.com/graphql-hive/console/commit/316859ebcb29108efc30de515276a39a1161d124) + Thanks [@adambenhassen](https://github.com/adambenhassen)! - handle escaped single-quoted strings + in schema changes + +- Updated dependencies + [[`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f)]: + - @graphql-hive/core@0.16.0 + ## 0.54.0 ### Minor Changes diff --git a/packages/libraries/cli/README.md b/packages/libraries/cli/README.md index e01e29265b..45cdfb5fad 100644 --- a/packages/libraries/cli/README.md +++ b/packages/libraries/cli/README.md @@ -81,7 +81,7 @@ DESCRIPTION ``` _See code: -[src/commands/app/create.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/app/create.ts)_ +[src/commands/app/create.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/app/create.ts)_ ## `hive app:publish` @@ -108,7 +108,7 @@ DESCRIPTION ``` _See code: -[src/commands/app/publish.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/app/publish.ts)_ +[src/commands/app/publish.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/app/publish.ts)_ ## `hive app:retire` @@ -135,7 +135,7 @@ DESCRIPTION ``` _See code: -[src/commands/app/retire.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/app/retire.ts)_ +[src/commands/app/retire.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/app/retire.ts)_ ## `hive artifact:fetch` @@ -159,7 +159,7 @@ DESCRIPTION ``` _See code: -[src/commands/artifact/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/artifact/fetch.ts)_ +[src/commands/artifact/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/artifact/fetch.ts)_ ## `hive dev` @@ -202,7 +202,7 @@ DESCRIPTION ``` _See code: -[src/commands/dev.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/dev.ts)_ +[src/commands/dev.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/dev.ts)_ ## `hive help [COMMAND]` @@ -246,7 +246,7 @@ DESCRIPTION ``` _See code: -[src/commands/introspect.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/introspect.ts)_ +[src/commands/introspect.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/introspect.ts)_ ## `hive operations:check FILE` @@ -305,7 +305,7 @@ DESCRIPTION ``` _See code: -[src/commands/operations/check.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/operations/check.ts)_ +[src/commands/operations/check.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/operations/check.ts)_ ## `hive schema:check FILE` @@ -349,7 +349,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/check.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/schema/check.ts)_ +[src/commands/schema/check.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/schema/check.ts)_ ## `hive schema:delete SERVICE` @@ -381,7 +381,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/delete.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/schema/delete.ts)_ +[src/commands/schema/delete.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/schema/delete.ts)_ ## `hive schema:fetch [COMMIT]` @@ -414,7 +414,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/schema/fetch.ts)_ +[src/commands/schema/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/schema/fetch.ts)_ ## `hive schema:publish FILE` @@ -458,7 +458,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/publish.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/schema/publish.ts)_ +[src/commands/schema/publish.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/schema/publish.ts)_ ## `hive update [CHANNEL]` @@ -520,7 +520,7 @@ DESCRIPTION ``` _See code: -[src/commands/whoami.ts](https://github.com/graphql-hive/platform/blob/v0.54.0/src/commands/whoami.ts)_ +[src/commands/whoami.ts](https://github.com/graphql-hive/platform/blob/v0.55.0/src/commands/whoami.ts)_ diff --git a/packages/libraries/cli/package.json b/packages/libraries/cli/package.json index 39b1aa99eb..478c177bf8 100644 --- a/packages/libraries/cli/package.json +++ b/packages/libraries/cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-hive/cli", - "version": "0.54.0", + "version": "0.55.0", "description": "A CLI util to manage and control your GraphQL Hive", "repository": { "type": "git", diff --git a/packages/libraries/core/CHANGELOG.md b/packages/libraries/core/CHANGELOG.md index b1e7cab0d9..cd92910381 100644 --- a/packages/libraries/core/CHANGELOG.md +++ b/packages/libraries/core/CHANGELOG.md @@ -1,5 +1,81 @@ # @graphql-hive/core +## 0.16.0 + +### Minor Changes + +- [#7290](https://github.com/graphql-hive/console/pull/7290) + [`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for providing a logger object via + `HivePluginOptions`. + + It is possible to provide the following options: + + - **'trace'** + - **'debug'** + - **'info'** default + - **'warn'** + - **'error'** + + ```ts + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + logger: 'info' + }) + ``` + + In addition to that, it is also possible to provide a Hive Logger instance, that allows more + control over how you want to log and forward logs. + + ```ts + import { createHive } from '@graphql-hive/core' + import { Logger } from '@graphql-hive/logger' + + const client = createHive({ + logger: new Logger() + }) + ``` + + Head to our [Hive Logger documentation](https://the-guild.dev/graphql/hive/docs/logger) to learn + more. + + *** + + **The `HivePluginOptions.debug` option is now deprecated.** Instead, please provide the option + `debug` instead for the logger. + + ```diff + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + - debug: process.env.DEBUG === "1", + + logger: process.env.DEBUG === "1" ? "debug" : "info", + }) + ``` + + **Note**: If the `logger` property is provided, the `debug` option is ignored. + + *** + + **The `HivePluginOptions.agent.logger` option is now deprecated.** Instead, please provide + `HivePluginOptions.logger`. + + ```diff + import { createHive } from '@graphql-hive/core' + + const logger = new Logger() + + const client = createHive({ + agent: { + - logger, + }, + + logger, + }) + ``` + + **Note**: If both options are provided, the `agent` option is ignored. + ## 0.15.1 ### Patch Changes diff --git a/packages/libraries/core/package.json b/packages/libraries/core/package.json index 3667cd126a..a7c2e3c1b1 100644 --- a/packages/libraries/core/package.json +++ b/packages/libraries/core/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-hive/core", - "version": "0.15.1", + "version": "0.16.0", "type": "module", "repository": { "type": "git", diff --git a/packages/libraries/core/src/version.ts b/packages/libraries/core/src/version.ts index 0d2e339fe5..b7190d27ef 100644 --- a/packages/libraries/core/src/version.ts +++ b/packages/libraries/core/src/version.ts @@ -1 +1 @@ -export const version = '0.15.1'; +export const version = '0.16.0'; diff --git a/packages/libraries/envelop/CHANGELOG.md b/packages/libraries/envelop/CHANGELOG.md index 92733b07c5..4c80f7a597 100644 --- a/packages/libraries/envelop/CHANGELOG.md +++ b/packages/libraries/envelop/CHANGELOG.md @@ -1,5 +1,87 @@ # @graphql-hive/envelop +## 0.39.0 + +### Minor Changes + +- [#7290](https://github.com/graphql-hive/console/pull/7290) + [`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for providing a logger object via + `HivePluginOptions`. + + It is possible to provide the following options: + + - **'trace'** + - **'debug'** + - **'info'** default + - **'warn'** + - **'error'** + + ```ts + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + logger: 'info' + }) + ``` + + In addition to that, it is also possible to provide a Hive Logger instance, that allows more + control over how you want to log and forward logs. + + ```ts + import { createHive } from '@graphql-hive/core' + import { Logger } from '@graphql-hive/logger' + + const client = createHive({ + logger: new Logger() + }) + ``` + + Head to our [Hive Logger documentation](https://the-guild.dev/graphql/hive/docs/logger) to learn + more. + + *** + + **The `HivePluginOptions.debug` option is now deprecated.** Instead, please provide the option + `debug` instead for the logger. + + ```diff + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + - debug: process.env.DEBUG === "1", + + logger: process.env.DEBUG === "1" ? "debug" : "info", + }) + ``` + + **Note**: If the `logger` property is provided, the `debug` option is ignored. + + *** + + **The `HivePluginOptions.agent.logger` option is now deprecated.** Instead, please provide + `HivePluginOptions.logger`. + + ```diff + import { createHive } from '@graphql-hive/core' + + const logger = new Logger() + + const client = createHive({ + agent: { + - logger, + }, + + logger, + }) + ``` + + **Note**: If both options are provided, the `agent` option is ignored. + +### Patch Changes + +- Updated dependencies + [[`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f)]: + - @graphql-hive/core@0.16.0 + ## 0.38.1 ### Patch Changes diff --git a/packages/libraries/envelop/package.json b/packages/libraries/envelop/package.json index 48730825e1..03b01bd032 100644 --- a/packages/libraries/envelop/package.json +++ b/packages/libraries/envelop/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-hive/envelop", - "version": "0.38.1", + "version": "0.39.0", "type": "module", "description": "GraphQL Hive + GraphQL Envelop", "repository": { diff --git a/packages/libraries/envelop/src/version.ts b/packages/libraries/envelop/src/version.ts index d11c694508..cfad1a37b2 100644 --- a/packages/libraries/envelop/src/version.ts +++ b/packages/libraries/envelop/src/version.ts @@ -1 +1 @@ -export const version = '0.38.1'; +export const version = '0.39.0'; diff --git a/packages/libraries/yoga/CHANGELOG.md b/packages/libraries/yoga/CHANGELOG.md index 9c8323ae9d..3fd570a34f 100644 --- a/packages/libraries/yoga/CHANGELOG.md +++ b/packages/libraries/yoga/CHANGELOG.md @@ -1,5 +1,87 @@ # @graphql-hive/yoga +## 0.44.0 + +### Minor Changes + +- [#7290](https://github.com/graphql-hive/console/pull/7290) + [`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add support for providing a logger object via + `HivePluginOptions`. + + It is possible to provide the following options: + + - **'trace'** + - **'debug'** + - **'info'** default + - **'warn'** + - **'error'** + + ```ts + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + logger: 'info' + }) + ``` + + In addition to that, it is also possible to provide a Hive Logger instance, that allows more + control over how you want to log and forward logs. + + ```ts + import { createHive } from '@graphql-hive/core' + import { Logger } from '@graphql-hive/logger' + + const client = createHive({ + logger: new Logger() + }) + ``` + + Head to our [Hive Logger documentation](https://the-guild.dev/graphql/hive/docs/logger) to learn + more. + + *** + + **The `HivePluginOptions.debug` option is now deprecated.** Instead, please provide the option + `debug` instead for the logger. + + ```diff + import { createHive } from '@graphql-hive/core' + + const client = createHive({ + - debug: process.env.DEBUG === "1", + + logger: process.env.DEBUG === "1" ? "debug" : "info", + }) + ``` + + **Note**: If the `logger` property is provided, the `debug` option is ignored. + + *** + + **The `HivePluginOptions.agent.logger` option is now deprecated.** Instead, please provide + `HivePluginOptions.logger`. + + ```diff + import { createHive } from '@graphql-hive/core' + + const logger = new Logger() + + const client = createHive({ + agent: { + - logger, + }, + + logger, + }) + ``` + + **Note**: If both options are provided, the `agent` option is ignored. + +### Patch Changes + +- Updated dependencies + [[`5229612`](https://github.com/graphql-hive/console/commit/5229612d4fd17ed2535ed8d66160758103d2c00f)]: + - @graphql-hive/core@0.16.0 + ## 0.43.1 ### Patch Changes diff --git a/packages/libraries/yoga/package.json b/packages/libraries/yoga/package.json index a6430cb6ce..378af1257a 100644 --- a/packages/libraries/yoga/package.json +++ b/packages/libraries/yoga/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-hive/yoga", - "version": "0.43.1", + "version": "0.44.0", "type": "module", "description": "GraphQL Hive + GraphQL Yoga", "repository": { diff --git a/packages/libraries/yoga/src/version.ts b/packages/libraries/yoga/src/version.ts index ca774b9526..a89e3c3727 100644 --- a/packages/libraries/yoga/src/version.ts +++ b/packages/libraries/yoga/src/version.ts @@ -1 +1 @@ -export const version = '0.43.1'; +export const version = '0.44.0';