Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graphql-tools-update | gql-tag preset/plugin | drop node 10 support #6267

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

n1ru4l
Copy link
Collaborator

@n1ru4l n1ru4l commented Jul 7, 2021

gql-tag plugin/preset inspired by https://github.com/arcanis/graphql-typescript-integration (n1ru4l/graphql-typescript-integration#1)

NOTE: updating graphql-tools is a major breaking change as it drops Node 10 support.

@changeset-bot
Copy link

changeset-bot bot commented Jul 7, 2021

🦋 Changeset detected

Latest commit: d718bc6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 54 packages
Name Type
@graphql-codegen/gql-tag-operations Minor
@graphql-codegen/gql-tag-operations-preset Minor
@graphql-cli/codegen Major
@graphql-codegen/cli Major
@graphql-codegen/core Major
@graphql-codegen/c-sharp Major
@graphql-codegen/c-sharp-operations Major
@graphql-codegen/flow Major
@graphql-codegen/flow-operations Major
@graphql-codegen/flow-resolvers Major
@graphql-codegen/java-apollo-android Major
@graphql-codegen/java-common Major
@graphql-codegen/java Major
@graphql-codegen/kotlin Major
@graphql-codegen/java-resolvers Major
@graphql-codegen/jsdoc Major
@graphql-codegen/schema-ast Major
@graphql-codegen/visitor-plugin-common Major
@graphql-codegen/typescript-apollo-angular Major
@graphql-codegen/typescript-apollo-client-helpers Major
@graphql-codegen/typescript-compatibility Major
@graphql-codegen/typescript-document-nodes Major
@graphql-codegen/typescript-enum-array Major
@graphql-codegen/typescript-generic-sdk Major
@graphql-codegen/typescript-graphql-request Major
@graphql-codegen/typescript-mongodb Major
@graphql-codegen/typescript-oclif Major
@graphql-codegen/typescript-operations Major
@graphql-codegen/typescript-react-apollo Major
@graphql-codegen/typescript-react-offix Major
@graphql-codegen/typescript-react-query Major
@graphql-codegen/typescript-resolvers Major
@graphql-codegen/typescript-rtk-query Major
@graphql-codegen/typescript-stencil-apollo Major
@graphql-codegen/typescript-type-graphql Major
@graphql-codegen/typed-document-node Major
@graphql-codegen/typescript Major
@graphql-codegen/typescript-urql Major
@graphql-codegen/typescript-urql-graphcache Major
@graphql-codegen/urql-svelte-operations-store Major
@graphql-codegen/typescript-vue-apollo Major
@graphql-codegen/typescript-vue-apollo-smart-ops Major
@graphql-codegen/typescript-vue-urql Major
@graphql-codegen/graphql-modules-preset Major
@graphql-codegen/import-types-preset Major
@graphql-codegen/near-operation-file-preset Major
@graphql-codegen/plugin-helpers Major
@graphql-codegen/typescript-graphql-files-modules Patch
@graphql-codegen/named-operations-object Patch
@graphql-codegen/add Patch
@graphql-codegen/fragment-matcher Patch
@graphql-codegen/introspection Patch
@graphql-codegen/time Patch
@graphql-codegen/urql-introspection Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@n1ru4l n1ru4l changed the title wip wip: gql-tag preset/plugin Jul 7, 2021
@theguild-bot
Copy link
Collaborator

theguild-bot commented Jul 7, 2021

The latest changes of this PR are available as alpha in npm (based on the declared changesets):

@graphql-cli/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]
@graphql-codegen/[email protected]

@n1ru4l n1ru4l force-pushed the gql-tag-preset-plugin branch from 907374c to 5042d1e Compare July 8, 2021 06:11
@n1ru4l n1ru4l changed the title wip: gql-tag preset/plugin gql-tag preset/plugin Jul 8, 2021
@n1ru4l n1ru4l force-pushed the gql-tag-preset-plugin branch from b71b3b1 to aa81369 Compare July 8, 2021 07:57
@n1ru4l n1ru4l changed the title gql-tag preset/plugin graphql-tools-update | gql-tag preset/plugin Jul 12, 2021
@n1ru4l n1ru4l force-pushed the gql-tag-preset-plugin branch 3 times, most recently from f3a186e to 9b1c64d Compare July 12, 2021 21:57
@n1ru4l n1ru4l force-pushed the gql-tag-preset-plugin branch from 9b1c64d to f2ee2a3 Compare July 15, 2021 08:44
@n1ru4l n1ru4l force-pushed the gql-tag-preset-plugin branch from 05c3242 to 4fafda3 Compare July 29, 2021 07:39
@n1ru4l n1ru4l marked this pull request as ready for review July 29, 2021 07:54
@n1ru4l n1ru4l requested a review from dotansimha July 29, 2021 09:32
.changeset/shaggy-crews-stare.md Outdated Show resolved Hide resolved
packages/graphql-codegen-cli/src/load.ts Show resolved Hide resolved
website/docs/presets/gql-tag.md Outdated Show resolved Hide resolved
make it work

bump graphql-tools packages

add docs

make test failure reason more obvious

bump graphql-tools

update graphql-tools versions

update graphql-config

prevent folders being added to ignore list

add changeset

add changeset for gql-tag

change plugin name

chore: updating graphql-tools is a breaking change

update fixture path

fix config
@dotansimha dotansimha force-pushed the gql-tag-preset-plugin branch from 78baa14 to 2ef82eb Compare August 3, 2021 06:36
@dotansimha dotansimha changed the title graphql-tools-update | gql-tag preset/plugin graphql-tools-update | gql-tag preset/plugin | drop node 10 support Aug 3, 2021
@dotansimha dotansimha merged commit b0cb13d into master Aug 3, 2021
@dotansimha dotansimha deleted the gql-tag-preset-plugin branch August 3, 2021 07:55

This preset generates typings for your inline `gql` function usages, without having to manually specify import statements for the documents. All you need to do is import your `gql` function and run codegen in watch mode.

Huge thanks to [Maël Nison](https://github.com/arcanis), who conceptualized the foundation for this preset [over here](https://github.com/arcanis/graphql-typescript-integration).
Copy link
Contributor

@merceyz merceyz Aug 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is nice and all but the MIT license requires you to include a full copy of it.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can u send a pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants