graphql-let

A webpack loader / babel-plugin / babel-plugin-macros / CLI / generated file manager of GraphQL code generator.

APACHE-2.0 License

Downloads
100.4K
Stars
453
Committers
19
graphql-let - v0.10.0

Published by piglovesyou over 4 years ago

Migration from 0.9.x to 0.10.x

The diff.

To migrate from 0.9.x or older, please do these three:

  1. Modify .gitignore: erase __generated__ and add *.graphql.d.ts (and *.graphqls.d.ts, if you use Resolver Types feature)
  2. Erase generateDir property from your .graphql-let.yml. It's not in use anymore. (Tip: The intermediate .tsxs are now generated in node_modules/graphql-let/__generated__)
  3. If you specify local files in schema in .graphql-let.yml, point to a single schema file, like lib/type-defs.graphqls. Glob pattern (**/*.graphqls) is not supported anymore.

Changes

  • fix: It writes d.ts in the same directory of corresponding .graphqls so they never conflict, fixes #82, thanks @freshollie for reporting
  • feat: You can jump from import "./a.graphql" to a.graphql.d.ts in IDE, fixes #25

This release includes a breaking change on the experimental feature.

  • Pointing schema file in .graphql-let now should a single file, because generating .graphqls.d.ts has to have a name

There're several spec changes as well.

  • Intermediate files of .tsx are written always in node_modules/graphql-let/__generated__
  • generateDir in graphql-let.yml gets obsolete
  • Let schema.graphql.d.ts have default export of DocumentNode for those who uses graphql-tag/loader after graphql-let/schema/loader
graphql-let - v0.9.6

Published by piglovesyou over 4 years ago

  • Optimize TypeScript options and it become 3x faster. Thank you for reporting #83, @aarnej
graphql-let -

Published by piglovesyou over 4 years ago

Fixes https://github.com/piglovesyou/graphql-let/issues/64. Big thanks for the issue and PR that fixed it by @deanslamajr 😄

graphql-let -

Published by piglovesyou over 4 years ago

Fixes https://github.com/piglovesyou/graphql-let/pull/67. Thank you for reporting, @lukasluecke 😄

graphql-let - v0.9.0

Published by piglovesyou over 4 years ago

Breaking change: now the @graphql-codegen/cli and @graphql-codegen/plugin-helpers are in peerDependencies. Please run the following:

yarn add --dev @graphql-codegen/cli @graphql-codegen/plugin-helpers
graphql-let - v0.8.0

Published by piglovesyou over 4 years ago

  • Resolver Types #47
graphql-let -

Published by piglovesyou over 4 years ago

Package Rankings
Top 2.22% on Npmjs.org
Top 6.67% on Proxy.golang.org
Badges
Extracted from project README
Node CI npm version downloads Babel Macro Stake to support us
Related Projects