Skip to content

Version 3.0.0

Compare
Choose a tag to compare
@jaydenseric jaydenseric released this 18 Oct 11:53
· 400 commits to master since this release

Major

  • The Query (and the internal GraphQLQuery) component take an operation prop instead of separate variables and query props. This makes the implementation a little more elegant, is more consistent with the GraphQL.query API and allows sending custom GraphQL operation fields.
  • New internal event system, fixing #10. Now the loading parameter of Query component render functions change when identical requests are loaded elsewhere in the app.

Minor

  • Improved Provider and Consumer component display names in React dev tools:
    • Context.ProviderGraphQLContext.Provider
    • Context.ConsumerGraphQLContext.Consumer

Patch

  • Updated dependencies.
  • Updated package scripts and config for the new husky version.
  • Removed the package module field. Webpack by default resolves extensionless paths the same way Node.js in --experimental-modules mode does; .mjs files are preferred. Tools misconfigured or unable to resolve .mjs can get confused when module points to an .mjs ESM file and they attempt to resolve named imports from .js CJS files.
  • Renamed the Operation type GraphQLOperation.
  • Use jsDelivr for the readme logo instead of RawGit as they are shutting down.