Skip to content

Version 9.0.0

Compare
Choose a tag to compare
@jaydenseric jaydenseric released this 27 Nov 03:46
· 255 commits to master since this release

Major

  • Updated Node.js support from v8.5+ to v8.10+, to match what the eslint dev dependency now supports. This is unlikely to be a breaking change for the published package.
  • The useGraphQL React hook loadOnMount, loadOnReload, and loadOnReset options now default to false instead of true. The loading related options are now all opt-in, which is easier to remember and simpler to configure for situations that previously required manual reversal of certain option defaults. It's also safer when working with mutations you don't want to accidentally load.

Patch

  • Updated dependencies.
  • Replaced the size-limit dev dependency with @size-limit/preset-small-lib.
  • Fixed the useGraphQL enabled option loadOnReload causing a load when the global GraphQL cache is reloaded even if there was no previously cached data to reload.
  • Tweaked the useGraphQL option loadOnReset documentation.
  • Removed package-lock.json from .gitignore and .prettierignore as it’s disabled in .npmrc anyway.
  • Removed redundant ESLint ignore comments.
  • Use GitHub Actions instead of Travis for CI.
  • Minor simplification in useGraphQL tests.
  • Documentation improvements, fixing #35:
    • Updated the project description with better phrasing that includes the bundle size.
    • Moved the readme “Apollo comparison” section to the end, and updated the “Bundle impact” subsection for the new Apollo React hooks API.
    • Added a basic example of the core API features working together to the “Examples” section, with tips commented.
    • Clarified that Opera Mini isn’t supported in the Browserslist queries and readme “Support” section.
    • Cleaner readme “API” section table of contents with “See” and “Examples” headings excluded, thanks to jsdoc-md v3.1.0.