feat: support GraphQL Code Generator 7 and modern Vite/graphql majors#8
feat: support GraphQL Code Generator 7 and modern Vite/graphql majors#8smolinari 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.
|
Hey guys. Not sure if you caught this PR. So, pinging you. It should fix all open issues too. My Quasar app is running with this version and it is working, but I have yet to upgrade Quasar to the new app-vite RC. I'll be doing that this weekend. I don't see any reason for getting issues with the new app-vite. On the contrary, the changes in this PR were made to be compatible. Hope you can publish the new version sometime soon or let me know of anything needs improvement or tweaking. Scott |
|
Hey Scott, both me and Yusuf are wrapping up projects with tight deadline by the end of this month We'll check this out as soon as we're done with those |
|
No worries. Thanks for the heads up. Btw, I also upgraded my app to app-vite v3 RC and everything is running smoothly. Scott |
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: