feat: support GraphQL Code Generator 7 and modern Vite/graphql majors#8
Open
smolinari wants to merge 1 commit into
Open
feat: support GraphQL Code Generator 7 and modern Vite/graphql majors#8smolinari wants to merge 1 commit into
smolinari wants to merge 1 commit into
Conversation
Widen peer ranges across all three packages and release 0.2.0 so they work with the @graphql-codegen v5/v6/v7-era plugins, Vite 5-8 and @graphql-codegen/core 6. codegen-plugin (vue-apollo): - export `plugin` as a named export (not only via the default object). codegen 7 loads custom plugins via ESM `import`, which only sees named/default exports of this "type": "module" package; a default-only export fails with `does not export a valid JS object with "plugin" function`. - fix graphql-16 enum-comparison type errors by comparing against Kind / OperationTypeNode constants instead of string literals. - widen peers: @graphql-codegen/typescript & typescript-operations to ^6, near-operation-file-preset to ^5, typed-document-node to ^6/^7; allow @graphql-codegen/plugin-helpers ^7. near-operation-file: - widen vite peer to include ^5, ^6, ^7, ^8. vue-query-block: - widen @graphql-codegen/core peer to ^5/^6 and vite peer to ^5-^8.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Widen peer ranges across all three packages and release 0.2.0 so they work with the @graphql-codegen v5/v6/v7-era plugins, Vite 5-8 and @graphql-codegen/core 6.
codegen-plugin (vue-apollo):
pluginas a named export (not only via the default object). codegen 7 loads custom plugins via ESMimport, which only sees named/default exports of this "type": "module" package; a default-only export fails withdoes not export a valid JS object with "plugin" function.near-operation-file:
vue-query-block: