diff --git a/.changeset/calm-boats-try.md b/.changeset/calm-boats-try.md deleted file mode 100644 index 00d9dde00..000000000 --- a/.changeset/calm-boats-try.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'hive': patch ---- - -Fix org owner not being able to select a new billing plan after downgrading. diff --git a/.changeset/calm-kings-attend.md b/.changeset/calm-kings-attend.md deleted file mode 100644 index 31dda05de..000000000 --- a/.changeset/calm-kings-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'hive': patch ---- - -Improve error message when schema composition exceeds the memory consumption limits. diff --git a/.changeset/clever-clocks-throw.md b/.changeset/clever-clocks-throw.md deleted file mode 100644 index 990c8d50a..000000000 --- a/.changeset/clever-clocks-throw.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@graphql-hive/cli': patch -'hive': patch ---- - -Fixes a bug in Federation composition and validation where an error was incorrectly reported for interfaces -implementing another interface with a `@key`. The validation now correctly applies only to object -types implementing the interface. diff --git a/.changeset/free-clocks-smash.md b/.changeset/free-clocks-smash.md deleted file mode 100644 index d97436aad..000000000 --- a/.changeset/free-clocks-smash.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -'hive': major ---- - -Add a new `workflows` service. This service consolidates and replaces the `emails` and `webhooks` services, using a Postgres-backed persistent queue for improved stability and reliability. - -If you are running a self-hosted setup the following docker compose changes are required: - -```diff -services: - -+ workflows: -+ image: '${DOCKER_REGISTRY}workflows${DOCKER_TAG}' -+ networks: -+ - 'stack' -+ depends_on: -+ db: -+ condition: service_healthy -+ environment: -+ NODE_ENV: production -+ PORT: 3014 -+ POSTGRES_HOST: db -+ POSTGRES_PORT: 5432 -+ POSTGRES_DB: '${POSTGRES_DB}' -+ POSTGRES_USER: '${POSTGRES_USER}' -+ POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}' -+ EMAIL_FROM: no-reply@graphql-hive.com -+ EMAIL_PROVIDER: sendmail -+ LOG_LEVEL: '${LOG_LEVEL:-debug}' -+ SENTRY: '${SENTRY:-0}' -+ SENTRY_DSN: '${SENTRY_DSN:-}' -+ PROMETHEUS_METRICS: '${PROMETHEUS_METRICS:-}' -+ LOG_JSON: '1' -- emails: -- ... -- webhooks: -- ... -``` - -For different setups, we recommend using this as a reference. - -**Note:** The workflows service will attempt to run postgres migrations for seeding the required database tables within the `graphile_worker` namespace. Please make sure the database user has sufficient permissions. For more information please refer to the [Graphile Worker documentation](https://worker.graphile.org/). diff --git a/.changeset/great-bags-kiss.md b/.changeset/great-bags-kiss.md deleted file mode 100644 index a42d8935f..000000000 --- a/.changeset/great-bags-kiss.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'hive': major ---- - -Bump Node.js version to `v24.13.0`. diff --git a/.changeset/jdpj-gvmv-utrp.md b/.changeset/jdpj-gvmv-utrp.md deleted file mode 100644 index f651a0e8e..000000000 --- a/.changeset/jdpj-gvmv-utrp.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -'hive': minor ---- - -Add `activeAppDeployments` GraphQL query to find app deployments based on usage criteria. - -New filter options: -- `lastUsedBefore`: Find stale deployments that were used but not recently (OR with neverUsedAndCreatedBefore) -- `neverUsedAndCreatedBefore`: Find old deployments that have never been used (OR with lastUsedBefore) -- `name`: Filter by app deployment name (case-insensitive partial match, AND with date filters) - -Also adds `createdAt` field to the `AppDeployment` type. - -See [Finding Stale App Deployments](https://the-guild.dev/graphql/hive/docs/schema-registry/app-deployments#finding-stale-app-deployments) for more details. diff --git a/.changeset/true-pumas-write.md b/.changeset/true-pumas-write.md deleted file mode 100644 index 6313c7ab8..000000000 --- a/.changeset/true-pumas-write.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'hive': patch ---- - -Fix federation composition access validation on union members when selecting `__typename` in `@requires` directives. - -The `@requires` directive validation rule (`AuthOnRequiresRule`) was not checking authorization requirements for `__typename` selections on union types. When `__typename` on a union type was selected, code would throw an unexpected error. diff --git a/deployment/CHANGELOG.md b/deployment/CHANGELOG.md index f6c95d348..1069440fe 100644 --- a/deployment/CHANGELOG.md +++ b/deployment/CHANGELOG.md @@ -1,5 +1,108 @@ # hive +## 9.0.0 + +### Major Changes + +- [#7383](https://github.com/graphql-hive/console/pull/7383) + [`ec77725`](https://github.com/graphql-hive/console/commit/ec77725ca16db22e238b4f3ba3d9c881ffb0cd62) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Add a new `workflows` service. This service + consolidates and replaces the `emails` and `webhooks` services, using a Postgres-backed persistent + queue for improved stability and reliability. + + If you are running a self-hosted setup the following docker compose changes are required: + + ```diff + services: + + + workflows: + + image: '${DOCKER_REGISTRY}workflows${DOCKER_TAG}' + + networks: + + - 'stack' + + depends_on: + + db: + + condition: service_healthy + + environment: + + NODE_ENV: production + + PORT: 3014 + + POSTGRES_HOST: db + + POSTGRES_PORT: 5432 + + POSTGRES_DB: '${POSTGRES_DB}' + + POSTGRES_USER: '${POSTGRES_USER}' + + POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}' + + EMAIL_FROM: no-reply@graphql-hive.com + + EMAIL_PROVIDER: sendmail + + LOG_LEVEL: '${LOG_LEVEL:-debug}' + + SENTRY: '${SENTRY:-0}' + + SENTRY_DSN: '${SENTRY_DSN:-}' + + PROMETHEUS_METRICS: '${PROMETHEUS_METRICS:-}' + + LOG_JSON: '1' + - emails: + - ... + - webhooks: + - ... + ``` + + For different setups, we recommend using this as a reference. + + **Note:** The workflows service will attempt to run postgres migrations for seeding the required + database tables within the `graphile_worker` namespace. Please make sure the database user has + sufficient permissions. For more information please refer to the + [Graphile Worker documentation](https://worker.graphile.org/). + +- [#7492](https://github.com/graphql-hive/console/pull/7492) + [`954e9f3`](https://github.com/graphql-hive/console/commit/954e9f3c37c8518a083b330caa160931779d9a84) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Bump Node.js version to `v24.13.0`. + +### Minor Changes + +- [#7377](https://github.com/graphql-hive/console/pull/7377) + [`8549f22`](https://github.com/graphql-hive/console/commit/8549f222405a08dec4b2974a28414415c0859cf9) + Thanks [@adambenhassen](https://github.com/adambenhassen)! - Add `activeAppDeployments` GraphQL + query to find app deployments based on usage criteria. + + New filter options: + + - `lastUsedBefore`: Find stale deployments that were used but not recently (OR with + neverUsedAndCreatedBefore) + - `neverUsedAndCreatedBefore`: Find old deployments that have never been used (OR with + lastUsedBefore) + - `name`: Filter by app deployment name (case-insensitive partial match, AND with date filters) + + Also adds `createdAt` field to the `AppDeployment` type. + + See + [Finding Stale App Deployments](https://the-guild.dev/graphql/hive/docs/schema-registry/app-deployments#finding-stale-app-deployments) + for more details. + +### Patch Changes + +- [#7475](https://github.com/graphql-hive/console/pull/7475) + [`e022bb4`](https://github.com/graphql-hive/console/commit/e022bb4805afcc4583db26b16ffd03822d22258f) + Thanks [@jdolle](https://github.com/jdolle)! - Fix org owner not being able to select a new + billing plan after downgrading. + +- [#7478](https://github.com/graphql-hive/console/pull/7478) + [`8e2e40d`](https://github.com/graphql-hive/console/commit/8e2e40dcf02664b5fe17ed1c7ffbff9e0ec9ffe0) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Improve error message when schema composition + exceeds the memory consumption limits. + +- [#7485](https://github.com/graphql-hive/console/pull/7485) + [`e3006e2`](https://github.com/graphql-hive/console/commit/e3006e22bbe38e673c27b94b080be5f57f3d095d) + Thanks [@kamilkisiela](https://github.com/kamilkisiela)! - Fixes a bug in Federation composition + and validation where an error was incorrectly reported for interfaces implementing another + interface with a `@key`. The validation now correctly applies only to object types implementing + the interface. + +- [#7508](https://github.com/graphql-hive/console/pull/7508) + [`8e111ac`](https://github.com/graphql-hive/console/commit/8e111ac4285c5b13196d11908b5afee512dc0e9b) + Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix federation composition access validation on + union members when selecting `__typename` in `@requires` directives. + + The `@requires` directive validation rule (`AuthOnRequiresRule`) was not checking authorization + requirements for `__typename` selections on union types. When `__typename` on a union type was + selected, code would throw an unexpected error. + ## 8.14.1 ### Patch Changes diff --git a/deployment/package.json b/deployment/package.json index 1cf95d230..647319892 100644 --- a/deployment/package.json +++ b/deployment/package.json @@ -1,6 +1,6 @@ { "name": "hive", - "version": "8.14.1", + "version": "9.0.0", "private": true, "scripts": { "generate": "tsx generate.ts", diff --git a/packages/libraries/cli/CHANGELOG.md b/packages/libraries/cli/CHANGELOG.md index 07efaae59..10618e6f4 100644 --- a/packages/libraries/cli/CHANGELOG.md +++ b/packages/libraries/cli/CHANGELOG.md @@ -1,5 +1,16 @@ # @graphql-hive/cli +## 0.57.2 + +### Patch Changes + +- [#7485](https://github.com/graphql-hive/console/pull/7485) + [`e3006e2`](https://github.com/graphql-hive/console/commit/e3006e22bbe38e673c27b94b080be5f57f3d095d) + Thanks [@kamilkisiela](https://github.com/kamilkisiela)! - Fixes a bug in Federation composition + and validation where an error was incorrectly reported for interfaces implementing another + interface with a `@key`. The validation now correctly applies only to object types implementing + the interface. + ## 0.57.1 ### Patch Changes diff --git a/packages/libraries/cli/README.md b/packages/libraries/cli/README.md index 3cc6c8e2c..10825fe3c 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.57.1/src/commands/app/create.ts)_ +[src/commands/app/create.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/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.57.1/src/commands/app/publish.ts)_ +[src/commands/app/publish.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/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.57.1/src/commands/app/retire.ts)_ +[src/commands/app/retire.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/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.57.1/src/commands/artifact/fetch.ts)_ +[src/commands/artifact/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/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.57.1/src/commands/dev.ts)_ +[src/commands/dev.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/dev.ts)_ ## `hive help [COMMAND]` @@ -213,7 +213,7 @@ USAGE $ hive help [COMMAND...] [-n] ARGUMENTS - COMMAND... Command to show help for. + [COMMAND...] Command to show help for. FLAGS -n, --nested-commands Include all nested commands in the output. @@ -223,7 +223,7 @@ DESCRIPTION ``` _See code: -[@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.22/src/commands/help.ts)_ +[@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_ ## `hive introspect LOCATION` @@ -246,7 +246,7 @@ DESCRIPTION ``` _See code: -[src/commands/introspect.ts](https://github.com/graphql-hive/platform/blob/v0.57.1/src/commands/introspect.ts)_ +[src/commands/introspect.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/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.57.1/src/commands/operations/check.ts)_ +[src/commands/operations/check.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/operations/check.ts)_ ## `hive schema:check FILE` @@ -350,7 +350,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/check.ts](https://github.com/graphql-hive/platform/blob/v0.57.1/src/commands/schema/check.ts)_ +[src/commands/schema/check.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/schema/check.ts)_ ## `hive schema:delete SERVICE` @@ -382,7 +382,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/delete.ts](https://github.com/graphql-hive/platform/blob/v0.57.1/src/commands/schema/delete.ts)_ +[src/commands/schema/delete.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/schema/delete.ts)_ ## `hive schema:fetch [COMMIT]` @@ -394,7 +394,7 @@ USAGE [--registry.accessToken ] [--type ] [--write ] [--outputFile ] [--target ] ARGUMENTS - COMMIT commit SHA, or it can be any external ID that references the schema + [COMMIT] commit SHA, or it can be any external ID that references the schema FLAGS --debug Whether debug output for HTTP calls and similar should be enabled. @@ -415,7 +415,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.57.1/src/commands/schema/fetch.ts)_ +[src/commands/schema/fetch.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/schema/fetch.ts)_ ## `hive schema:publish FILE` @@ -459,7 +459,7 @@ DESCRIPTION ``` _See code: -[src/commands/schema/publish.ts](https://github.com/graphql-hive/platform/blob/v0.57.1/src/commands/schema/publish.ts)_ +[src/commands/schema/publish.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/schema/publish.ts)_ ## `hive update [CHANNEL]` @@ -467,10 +467,11 @@ update the hive CLI ``` USAGE - $ hive update [CHANNEL] [-a] [--force] [-i | -v ] + $ hive update [CHANNEL] [--force | | [-a | -v | -i]] [-b ] FLAGS -a, --available See available versions. + -b, --verbose Show more details about the available versions. -i, --interactive Interactively select version to install. This is ignored if a channel is provided. -v, --version= Install a specific version. --force Force a re-download of the requested version. @@ -497,7 +498,7 @@ EXAMPLES ``` _See code: -[@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.2.13/src/commands/update.ts)_ +[@oclif/plugin-update](https://github.com/oclif/plugin-update/blob/v4.7.16/src/commands/update.ts)_ ## `hive whoami` @@ -521,7 +522,7 @@ DESCRIPTION ``` _See code: -[src/commands/whoami.ts](https://github.com/graphql-hive/platform/blob/v0.57.1/src/commands/whoami.ts)_ +[src/commands/whoami.ts](https://github.com/graphql-hive/platform/blob/v0.57.2/src/commands/whoami.ts)_ diff --git a/packages/libraries/cli/package.json b/packages/libraries/cli/package.json index 0db429db0..3866d187a 100644 --- a/packages/libraries/cli/package.json +++ b/packages/libraries/cli/package.json @@ -1,6 +1,6 @@ { "name": "@graphql-hive/cli", - "version": "0.57.1", + "version": "0.57.2", "description": "A CLI util to manage and control your GraphQL Hive", "repository": { "type": "git", diff --git a/packages/web/docs/src/content/schema-registry/self-hosting/get-started.mdx b/packages/web/docs/src/content/schema-registry/self-hosting/get-started.mdx index 37589d127..996515ec0 100644 --- a/packages/web/docs/src/content/schema-registry/self-hosting/get-started.mdx +++ b/packages/web/docs/src/content/schema-registry/self-hosting/get-started.mdx @@ -152,7 +152,7 @@ using the link below ```sh -curl -O https://raw.githubusercontent.com/graphql-hive/console/hive@8.14.1/docker/docker-compose.community.yml +curl -O https://raw.githubusercontent.com/graphql-hive/console/hive@9.0.0/docker/docker-compose.community.yml ``` @@ -160,7 +160,7 @@ curl -O https://raw.githubusercontent.com/graphql-hive/console/hive@8.14.1/docke ```sh -wget https://raw.githubusercontent.com/graphql-hive/console/hive@8.14.1/docker/docker-compose.community.yml +wget https://raw.githubusercontent.com/graphql-hive/console/hive@9.0.0/docker/docker-compose.community.yml ``` @@ -179,7 +179,7 @@ We recommend sticking to a specific version to avoid breaking changes. The `late correspons to the latest stable release. ```sh -export DOCKER_TAG=":8.14.1" +export DOCKER_TAG=":9.0.0" ``` After picking a version set the `DOCKER_TAG` environment variable to that value. @@ -188,7 +188,7 @@ After picking a version set the `DOCKER_TAG` environment variable to that value. ```bash export DOCKER_REGISTRY="ghcr.io/graphql-hive/" -export DOCKER_TAG=":8.14.1" # Pin this to an exact version +export DOCKER_TAG=":9.0.0" # Pin this to an exact version export HIVE_ENCRYPTION_SECRET=$(openssl rand -hex 16) export HIVE_APP_BASE_URL="http://localhost:8080" export HIVE_EMAIL_FROM="no-reply@graphql-hive.com"