From 4abdfc0c5dff3371ae6cef0d383ec7012a2b1967 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 21 Mar 2024 12:41:53 +0000 Subject: [PATCH] Version Packages (#148) Co-authored-by: github-actions[bot] Co-authored-by: Phil Pluckthun --- .changeset/kind-geckos-appear.md | 5 ----- .changeset/real-dogs-swim.md | 5 ----- .changeset/rotten-eagles-sort.md | 5 ----- .changeset/three-spoons-call.md | 6 ------ .changeset/two-mice-try.md | 7 ------- .changeset/two-rockets-hear.md | 5 ----- CHANGELOG.md | 19 +++++++++++++++++++ examples/example-pokemon-api/package.json | 2 +- package.json | 2 +- packages/cli-utils/CHANGELOG.md | 16 ++++++++++++++++ packages/cli-utils/package.json | 2 +- packages/internal/CHANGELOG.md | 10 ++++++++++ packages/internal/package.json | 2 +- website/CHANGELOG.md | 7 +++++++ website/package.json | 2 +- website/reference/graphqlsp-config.md | 6 ++++++ 16 files changed, 63 insertions(+), 38 deletions(-) delete mode 100644 .changeset/kind-geckos-appear.md delete mode 100644 .changeset/real-dogs-swim.md delete mode 100644 .changeset/rotten-eagles-sort.md delete mode 100644 .changeset/three-spoons-call.md delete mode 100644 .changeset/two-mice-try.md delete mode 100644 .changeset/two-rockets-hear.md create mode 100644 packages/internal/CHANGELOG.md diff --git a/.changeset/kind-geckos-appear.md b/.changeset/kind-geckos-appear.md deleted file mode 100644 index f2bbf164..00000000 --- a/.changeset/kind-geckos-appear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@gql.tada/cli-utils": minor ---- - -Enable pre-processed introspection output by default (since it only applies to `d.ts` outputs) diff --git a/.changeset/real-dogs-swim.md b/.changeset/real-dogs-swim.md deleted file mode 100644 index 810e6f22..00000000 --- a/.changeset/real-dogs-swim.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gql.tada": patch ---- - -Remove `stringLiteral` generic constraint, causing errors depending on TypeScript version diff --git a/.changeset/rotten-eagles-sort.md b/.changeset/rotten-eagles-sort.md deleted file mode 100644 index 7b986518..00000000 --- a/.changeset/rotten-eagles-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gql.tada": minor ---- - -Accept a pre-processed schema when setting up `gql.tada` for the `AbstractSetupSchema.introspection` option. This allows us to map an `IntrospectionQuery` ahead of time. diff --git a/.changeset/three-spoons-call.md b/.changeset/three-spoons-call.md deleted file mode 100644 index d39ba46b..00000000 --- a/.changeset/three-spoons-call.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@gql.tada/cli-utils": minor -"@gql.tada/internal": minor ---- - -Expose introspection output format generation from `@gql.tada/internal` and implement a new pre-processed output format, which pre-computes the output of the `mapIntrospection` type. diff --git a/.changeset/two-mice-try.md b/.changeset/two-mice-try.md deleted file mode 100644 index 035c57f9..00000000 --- a/.changeset/two-mice-try.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@gql.tada/cli-utils": minor -"@gql.tada/internal": minor -"gql.tada": minor ---- - -Add `@gql.tada/internal` package to extract common logic between the CLI and the LSP diff --git a/.changeset/two-rockets-hear.md b/.changeset/two-rockets-hear.md deleted file mode 100644 index ff9f9ed9..00000000 --- a/.changeset/two-rockets-hear.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"gql.tada": minor ---- - -Change the default scalar type of `ID` to be `string`, as [the GraphQL spec](https://spec.graphql.org/October2021/#sec-ID) recommends it to serialize to a string diff --git a/CHANGELOG.md b/CHANGELOG.md index 1963b3f5..291c1d97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # gql.tada +## 1.4.0 + +### Minor Changes + +- Accept a pre-processed schema when setting up `gql.tada` for the `AbstractSetupSchema.introspection` option. This allows us to map an `IntrospectionQuery` ahead of time + Submitted by [@kitten](https://github.com/kitten) (See [#147](https://github.com/0no-co/gql.tada/pull/147)) +- Add `@gql.tada/internal` package to extract common logic between the CLI and the LSP + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#149](https://github.com/0no-co/gql.tada/pull/149)) +- Change the default scalar type of `ID` to be `string`, as [the GraphQL spec](https://spec.graphql.org/October2021/#sec-ID) recommends it to serialize to a string + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#146](https://github.com/0no-co/gql.tada/pull/146)) + +### Patch Changes + +- Remove `stringLiteral` generic constraint, causing errors depending on TypeScript version + Submitted by [@kitten](https://github.com/kitten) (See [#151](https://github.com/0no-co/gql.tada/pull/151)) +- Updated dependencies (See [#155](https://github.com/0no-co/gql.tada/pull/155), [#150](https://github.com/0no-co/gql.tada/pull/150), and [#149](https://github.com/0no-co/gql.tada/pull/149)) + - @gql.tada/cli-utils@0.3.0 + - @gql.tada/internal@0.1.0 + ## 1.3.6 ### Patch Changes diff --git a/examples/example-pokemon-api/package.json b/examples/example-pokemon-api/package.json index 384061a9..740ef858 100644 --- a/examples/example-pokemon-api/package.json +++ b/examples/example-pokemon-api/package.json @@ -7,7 +7,7 @@ }, "dependencies": { "@urql/core": "^4.3.0", - "gql.tada": "^1.3.3", + "gql.tada": "^1.4.0", "react": "^18.2.0", "react-dom": "^18.2.0", "urql": "^4.0.6" diff --git a/package.json b/package.json index 4debf665..55406266 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "gql.tada", "description": "The spec-compliant & magical GraphQL query language engine in the TypeScript type system", - "version": "1.3.6", + "version": "1.4.0", "author": "0no.co ", "source": "./src/index.ts", "main": "./dist/gql-tada", diff --git a/packages/cli-utils/CHANGELOG.md b/packages/cli-utils/CHANGELOG.md index 8ed64b96..ebe9202f 100644 --- a/packages/cli-utils/CHANGELOG.md +++ b/packages/cli-utils/CHANGELOG.md @@ -1,5 +1,21 @@ # @gql.tada/cli-utils +## 0.3.0 + +### Minor Changes + +- Enable pre-processed introspection output by default (since it only applies to `d.ts` outputs) + Submitted by [@kitten](https://github.com/kitten) (See [#155](https://github.com/0no-co/gql.tada/pull/155)) +- Expose introspection output format generation from `@gql.tada/internal` and implement a new pre-processed output format, which pre-computes the output of the `mapIntrospection` type + Submitted by [@kitten](https://github.com/kitten) (See [#150](https://github.com/0no-co/gql.tada/pull/150)) +- Add `@gql.tada/internal` package to extract common logic between the CLI and the LSP + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#149](https://github.com/0no-co/gql.tada/pull/149)) + +### Patch Changes + +- Updated dependencies (See [#150](https://github.com/0no-co/gql.tada/pull/150) and [#149](https://github.com/0no-co/gql.tada/pull/149)) + - @gql.tada/internal@0.1.0 + ## 0.2.0 ### Minor Changes diff --git a/packages/cli-utils/package.json b/packages/cli-utils/package.json index 2f3230e3..46b0618b 100644 --- a/packages/cli-utils/package.json +++ b/packages/cli-utils/package.json @@ -1,6 +1,6 @@ { "name": "@gql.tada/cli-utils", - "version": "0.2.0", + "version": "0.3.0", "public": true, "description": "Main logic for gql.tada’s CLI tool.", "author": "0no.co ", diff --git a/packages/internal/CHANGELOG.md b/packages/internal/CHANGELOG.md new file mode 100644 index 00000000..b9a5ad09 --- /dev/null +++ b/packages/internal/CHANGELOG.md @@ -0,0 +1,10 @@ +# @gql.tada/internal + +## 0.1.0 + +### Minor Changes + +- Expose introspection output format generation from `@gql.tada/internal` and implement a new pre-processed output format, which pre-computes the output of the `mapIntrospection` type + Submitted by [@kitten](https://github.com/kitten) (See [#150](https://github.com/0no-co/gql.tada/pull/150)) +- Add `@gql.tada/internal` package to extract common logic between the CLI and the LSP + Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#149](https://github.com/0no-co/gql.tada/pull/149)) diff --git a/packages/internal/package.json b/packages/internal/package.json index e95333b2..3891b399 100644 --- a/packages/internal/package.json +++ b/packages/internal/package.json @@ -1,6 +1,6 @@ { "name": "@gql.tada/internal", - "version": "0.0.0", + "version": "0.1.0", "public": true, "description": "Internal logic for gql.tada’s CLI tool and GraphQLSP.", "author": "0no.co ", diff --git a/website/CHANGELOG.md b/website/CHANGELOG.md index 6717a2f1..db626f56 100644 --- a/website/CHANGELOG.md +++ b/website/CHANGELOG.md @@ -1,5 +1,12 @@ # @gql.tada/website-vitepress +## 0.0.5 + +### Patch Changes + +- Updated dependencies (See [#151](https://github.com/0no-co/gql.tada/pull/151), [#147](https://github.com/0no-co/gql.tada/pull/147), [#149](https://github.com/0no-co/gql.tada/pull/149), and [#146](https://github.com/0no-co/gql.tada/pull/146)) + - gql.tada@1.4.0 + ## 0.0.4 ### Patch Changes diff --git a/website/package.json b/website/package.json index 4e88260d..7dceeb4b 100644 --- a/website/package.json +++ b/website/package.json @@ -1,6 +1,6 @@ { "name": "@gql.tada/website-vitepress", - "version": "0.0.4", + "version": "0.0.5", "private": true, "scripts": { "dev": "vitepress dev", diff --git a/website/reference/graphqlsp-config.md b/website/reference/graphqlsp-config.md index d5be59ac..ad96058b 100644 --- a/website/reference/graphqlsp-config.md +++ b/website/reference/graphqlsp-config.md @@ -171,6 +171,12 @@ export const graphql = initGraphQLTada<{ #### Format 2 — `.ts` file +> [!WARNING] +> +> We strongly recommend you to use the `.d.ts` format instead. While it's less reusable, the format will +> be more efficient and increase TypeScript inference performance. +> You will still be able to import the `introspection` type from the `.d.ts` file. + When writing a `.ts` file instead, `@0no-co/graphqlsp` will create a regular TypeScript file that exports an `introspection` object, which is useful if we’re planning on re-using the introspection data during runtime.