Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate TypeScript modules compatible exports map and dist str…
…ucture (#7978) * feat: generate TypeScript modules compatible exports map * chore: upgrade to latest bob * fix: bob check errors * chore: prettier * fix: bin path for dev-tests * revert dev-test code changes * remove .js for website * ok no .js here * revert accidential test string changes * feat: esm lfg * chore: add changeset * chore: run dev tests on both cjs and esm * chore: upgrade bob to version 3 * chore: test whether the cache is fucked up * why why oh why * fix: urql graphcache code * chore: add changeset * fix: resolve ESM modules when running graphql-codegen via the esm binary * chore: remove testing package from the changeset * fix: also support the esm error code when trying to load a plugin * chore: patch @urql/introspection so the graphql logic is loaded from the top level export (cjs module) * chore: remove obsolete prepack command
- Loading branch information
Showing
295 changed files
with
3,964 additions
and
3,604 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@graphql-codegen/cli': minor | ||
--- | ||
|
||
Add bin CLI command for running `graphql-code-generator` in ESM mode. You can now use `graphql-codegen-esm` instead of `graphql-codegen`. | ||
|
||
GraphQL Code Generator will continue supporting both ESM and CommonJS in parallel. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
'@graphql-cli/codegen': minor | ||
'@graphql-codegen/cli': minor | ||
'@graphql-codegen/core': minor | ||
'@graphql-codegen/c-sharp': minor | ||
'@graphql-codegen/c-sharp-common': minor | ||
'@graphql-codegen/c-sharp-operations': minor | ||
'@graphql-codegen/flow': minor | ||
'@graphql-codegen/flow-operations': minor | ||
'@graphql-codegen/flow-resolvers': minor | ||
'@graphql-codegen/java-apollo-android': minor | ||
'@graphql-codegen/java-common': minor | ||
'@graphql-codegen/java': minor | ||
'@graphql-codegen/kotlin': minor | ||
'@graphql-codegen/java-resolvers': minor | ||
'@graphql-codegen/add': minor | ||
'@graphql-codegen/fragment-matcher': minor | ||
'@graphql-codegen/hasura-allow-list': minor | ||
'@graphql-codegen/introspection': minor | ||
'@graphql-codegen/jsdoc': minor | ||
'@graphql-codegen/schema-ast': minor | ||
'@graphql-codegen/time': minor | ||
'@graphql-codegen/urql-introspection': minor | ||
'@graphql-codegen/visitor-plugin-common': minor | ||
'@graphql-codegen/typescript-apollo-angular': minor | ||
'@graphql-codegen/typescript-apollo-client-helpers': minor | ||
'@graphql-codegen/typescript-document-nodes': minor | ||
'@graphql-codegen/typescript-enum-array': minor | ||
'@graphql-codegen/typescript-generic-sdk': minor | ||
'@graphql-codegen/gql-tag-operations': minor | ||
'@graphql-codegen/typescript-graphql-apollo': minor | ||
'@graphql-codegen/typescript-graphql-files-modules': minor | ||
'@graphql-codegen/typescript-graphql-request': minor | ||
'@graphql-codegen/typescript-jit-sdk': minor | ||
'@graphql-codegen/typescript-mongodb': minor | ||
'@graphql-codegen/typescript-msw': minor | ||
'@graphql-codegen/named-operations-object': minor | ||
'@graphql-codegen/typescript-oclif': minor | ||
'@graphql-codegen/typescript-operations': minor | ||
'@graphql-codegen/typescript-react-apollo': minor | ||
'@graphql-codegen/typescript-react-offix': minor | ||
'@graphql-codegen/typescript-react-query': minor | ||
'@graphql-codegen/typescript-resolvers': minor | ||
'@graphql-codegen/typescript-rtk-query': minor | ||
'@graphql-codegen/typescript-stencil-apollo': minor | ||
'@graphql-codegen/typescript-type-graphql': minor | ||
'@graphql-codegen/typed-document-node': minor | ||
'@graphql-codegen/typescript': minor | ||
'@graphql-codegen/typescript-urql': minor | ||
'@graphql-codegen/typescript-urql-graphcache': minor | ||
'@graphql-codegen/urql-svelte-operations-store': minor | ||
'@graphql-codegen/typescript-vue-apollo': minor | ||
'@graphql-codegen/typescript-vue-apollo-smart-ops': minor | ||
'@graphql-codegen/typescript-vue-urql': minor | ||
'@graphql-codegen/gql-tag-operations-preset': minor | ||
'@graphql-codegen/graphql-modules-preset': minor | ||
'@graphql-codegen/import-types-preset': minor | ||
'@graphql-codegen/near-operation-file-preset': minor | ||
'@graphql-codegen/plugin-helpers': minor | ||
--- | ||
|
||
Support TypeScript ESM modules (`"module": "node16"` and `"moduleResolution": "node16"`). | ||
|
||
[More information on the TypeScript Release Notes.](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#ecmascript-module-support-in-node-js) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@graphql-codegen/typescript-urql-graphcache': patch | ||
--- | ||
|
||
Don't depend on schema AST for cache update generation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d84afec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graphql-code-generator – ./
graphql-code-generator-theguild.vercel.app
graphql-code-generator.vercel.app
graphql-code-generator-git-master-theguild.vercel.app
www.graphql-codegen.com
www.graphql-code-generator.com
graphql-codegen.com
graphql-code-generator.com