Skip to content

Releases: jaydenseric/graphql-react

Version 6.0.1

14 Jan 09:29
Compare
Choose a tag to compare

Patch

  • Updated dev dependencies.
  • Removed the watch dev dependency and watch package script.
  • preload now properly catches render errors nested under Query components.
  • preload now supports class components that don’t call their base constructor with props, fixing #17.
  • Fixed a prop type warning in one of the tests.
  • Fixed example code typos in the readme “Usage” section.
  • Fixed incorrect graphQLErrors JSDoc type.

Version 6.0.0

28 Dec 05:05
Compare
Choose a tag to compare

Major

  • Made preload reject upon render errors instead of throwing.

Minor

  • Made Query component throw a helpful render error if the GraphQL context is missing.

Patch

  • Updated dev dependencies.
  • Improved size-limit tests:
    • Drop the CJS entrypoint; modern bundlers don’t use it and nested module imports revert resolve ESM anyway.
    • Ignore prop-types since it’s likely to already be present in a React project, and most frameworks strip it out in production bundles anyway.
    • Separately limit and test server and client bundles.

Version 5.0.0

20 Dec 01:41
Compare
Choose a tag to compare

Major

  • Updated the extract-files dependency to v5:
    • The original operation object is no longer modified when it contains files.
    • If the same file is used in multiple locations of an operation it is only uploaded once.

Patch

  • Updated dependencies.
  • Removed a redundant .prettierignore entry.
  • Added tests for the internal graphqlFetchOptions function.

Version 4.2.0

03 Dec 12:37
Compare
Choose a tag to compare

Minor

  • Added a new GraphQL constructor option logErrors (default true) and instance property, controlling if GraphQL request errors should be console logged for easy debugging.

Patch

  • Updated dependencies.
  • Refactored GraphQL static methods to separate modules.
  • Moved JSDoc type definitions into the index file.
  • Manually composed package exports instead of relying on *.
  • More consistent object snapshots in tests.

Version 4.1.0

01 Nov 03:30
Compare
Choose a tag to compare

Minor

Patch

Version 4.0.1

27 Oct 03:39
Compare
Choose a tag to compare

Patch

  • Fixed preload for production NODE_ENV, fixing #11 and #12.
  • preload now scopes context under providers.
  • Removed redundant uses of this in the internal GraphQLQuery component constructor.
  • Test the library with undefined and production NODE_ENV.

Version 4.0.0

25 Oct 06:20
Compare
Choose a tag to compare

Major

Patch

  • Updated dev dependencies.

Version 3.0.0

18 Oct 11:53
Compare
Choose a tag to compare

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.

Version 2.0.1

26 Sep 10:10
Compare
Choose a tag to compare

Patch

  • Updated dependencies.
  • Remove the GraphQLQuery component from API documentation as it used internally and is not exported.
  • Regenerated the readme API docs using the latest jsdoc-md version.
  • Added a new “Usage” readme section.
  • Fixed a link in the readme.
  • Fixed example GraphQL query typos.

Version 2.0.0

13 Aug 08:21
Compare
Choose a tag to compare

Major

  • Updated Node.js support from v7.6+ to v8.5+.

Minor

Patch

  • Updated dependencies.
  • Removed the rimraf dev dependency in favour of a native rm -rf package clean script. Leaner and faster; we only support *nix for contributing anyway.
  • Fixed new Prettier lint errors and removed the fake-tag dev dependency now that Prettier can format template literals tagged with /* GraphQL */.
  • Stopped using npm-run-all for package scripts to reduce complexity and bugs.
  • Compact package repository field.
  • Added more package tags.
  • Lint .yml files.
  • Test with graphql-api-koa instead of express-graphql.
  • Fixed test snapshot consistency between Node.js versions (see tapjs/node-tap#450).
  • Use jsdoc-md instead of documentation to generate readme API docs.
  • JSDoc fixes and improvements.
  • Readme badge changes to deal with shields.io unreliability:
    • Used the more reliable build status badge provided by Travis, configured to only track master branch.
    • Removed the licence badge. The licence can be found in package.json and rarely changes.
    • Removed the Github issues and stars badges. The readme is most viewed on Github anyway.
    • Use Badgen for the npm version badge.