Skip to content

Releases: jaydenseric/graphql-react

Version 1.0.1

23 May 03:00
Compare
Choose a tag to compare

Patch

  • Updated dependencies.
  • Fixed accidental distribution code Prettier ignoring.
  • Replaced ava with tap for testing. Tests don't require a special CLI, no longer transpile on the fly, are faster and AVA no longer dictates the Babel version.
  • Tests run against the actual dist .mjs and .js files in native ESM (--experimental-modules) and CJS environments.
  • Updated Babel config:
    • Use babel.config.js instead of .babelrc.js.
    • Renamed the ESM environment variable to BABEL_ESM to be more specific.
  • Improved package.json scripts:
    • Leveraged npm-run-all more for parallelism and reduced noise.
    • Removed linting fix scripts.
    • Linting included in the test script. Travis CI will fail PR's with lint errors.
    • Custom watch script.
    • No longer use cross-env; contributors with Windows may setup and use a Bash shell.
  • Improved ESLint config:
    • Use eslint-config-env.
    • Removed redundant eslint-plugin-ava dev dependency and config.
    • Undo overriding ESLint ignoring dotfiles by default as there are none now.
  • Moved the example project to a separate repo.
  • Better readme logo alt text.

Version 1.0.0

02 May 11:13
Compare
Choose a tag to compare

Major

  • Capitalized the fetch options Accept header for display consistency in tools such as the Chrome network inspector and to better support case-sensitive systems, even though HTTP headers are supposed to be case-insensitive.

Patch

  • Updated dependencies.
  • Pinned @babel dev dependencies to match new AVA requirements.
  • Use eslint-config-prettier.
  • Readme example link goes to the example project directory instead of the readme file.
  • Test and example updates:
  • Test updates:
    • Removed apollo-upload-server as there are no upload tests yet.
    • Removed get-port as not providing a port to app.listen has the same effect.
  • Example updates:

Version 1.0.0-alpha.5

04 Apr 01:52
Compare
Choose a tag to compare
Version 1.0.0-alpha.5 Pre-release
Pre-release

Major

Patch

  • Updated dependencies.
  • Example updates:
    • Valid length app manifest short_name.
    • Added <html> lang attribute.
    • Added Twitter card meta tags.

Version 1.0.0-alpha.4

28 Mar 00:03
Compare
Choose a tag to compare
Version 1.0.0-alpha.4 Pre-release
Pre-release

Minor

  • Added a fetchError Query render function argument, enabling graceful caching and handling of errors in situations such as when a global fetch API is unavailable or a relative URL is used on the sever.

Patch

Version 1.0.0-alpha.3

21 Mar 01:49
Compare
Choose a tag to compare
Version 1.0.0-alpha.3 Pre-release
Pre-release

Minor

  • Support the legacy React context API, fixing #7.

Patch

Version 1.0.0-alpha.2

20 Mar 00:22
Compare
Choose a tag to compare
Version 1.0.0-alpha.2 Pre-release
Pre-release

Major

  • Removed the Promise polyfill; consumers can polyfill as required for optimal bundle size. Required polyfills are documented in the readme.

Minor

Version 1.0.0-alpha.1

13 Mar 15:30
Compare
Choose a tag to compare
Version 1.0.0-alpha.1 Pre-release
Pre-release

Major

  • Updated Node.js support to v7.6+.
  • Renamed GraphQLProvider and GraphQLConsumer to Provider and Consumer.
  • No longer exporting GraphQLQuery.
  • Swapped the GraphQLQuery and Query names.
  • Removed GraphQLMutation component; GraphQLQuery can be used for both queries and mutations.
  • GraphQLQuery component loadOnMount and loadOnReset props now default to false:
    • Opt-in is safer for mutations.
    • Removing static defaultProps reduces bundle size.
    • Nicer valueless boolean props (<GraphQLQuery /> and <GraphQLQuery loadOnReset /> vs <GraphQLQuery loadOnReset={false} /> and <GraphQLQuery loadOnReset={true} />.
  • The GraphQL query instance method now accepts an options object.
  • New approach to configuring GraphQL request fetch options:
    • Removed the GraphQL constructor requestOptions option.
    • The Query component now has a fetchOptionsOverride prop, allowing components to easily query any GraphQL API. Consumers may export an override function tailored for each API in one place to make things DRY.
    • The Next.js example app has been updated to demo the new API using the external GraphQL Pokémon API.

Minor

  • New preload API for server side rendering, fixing #2.
  • The Query component resetOnLoad prop doesn’t cause cache for the request that triggered a reset to delete, allowing simultaneous use with loadOnReset. Fixes #3.
  • The GraphQL reset instance method now accepts a fetch options hash to exempt a request from cache deletion.

Patch

  • Updated dependencies.
  • Fetch errors when a request could not be sent at all (e.g. a relative URL can’t be used for server side rendering) are uncaught instead of incorrectly cached as a parseError.
  • Simplified the JSDoc script, now that Documentation.js handles .mjs.
  • Prevent lib or example updates from triggering tests in watch mode.
  • Fixed the example setup script and made graphql-react a published dependency, via #1.
  • Commented GraphQL template literals for editor syntax highlighting.
  • Configured Travis and added a build status readme badge.
  • Improved API documentation.

Version 0.1.0

23 Feb 05:56
Compare
Choose a tag to compare
Version 0.1.0 Pre-release
Pre-release

Initial release.