Releases: jaydenseric/graphql-react
Releases · jaydenseric/graphql-react
Version 1.0.1
Patch
- Updated dependencies.
- Fixed accidental distribution code Prettier ignoring.
- Replaced
avawithtapfor 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
.mjsand.jsfiles in native ESM (--experimental-modules) and CJS environments. - Updated Babel config:
- Use
babel.config.jsinstead of.babelrc.js. - Renamed the
ESMenvironment variable toBABEL_ESMto be more specific.
- Use
- Improved
package.jsonscripts:- Leveraged
npm-run-allmore for parallelism and reduced noise. - Removed linting fix scripts.
- Linting included in the
testscript. 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.
- Leveraged
- Improved ESLint config:
- Use eslint-config-env.
- Removed redundant
eslint-plugin-avadev 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
Major
- Capitalized the fetch options
Acceptheader 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
@babeldev 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:
- Use
fake-tagfor GraphQL template literals due to prettier/prettier#4360. - Use
expressinstead of Koa packages. - Use
express-graphqlinstead of Apollo packages.
- Use
- Test updates:
- Removed
apollo-upload-serveras there are no upload tests yet. - Removed
get-portas not providing a port toapp.listenhas the same effect.
- Removed
- Example updates:
- Stop using
esmdue to graphql/express-graphql#425. - Enabled GraphiQL and added a link to it on the homepage.
- Stop using
Version 1.0.0-alpha.5
Major
- Updated the
reactpeer dependency to^16.3.1. - Fixed
preloadbroken due to the React v16.3.1 context API change.
Patch
- Updated dependencies.
- Example updates:
- Valid length app manifest
short_name. - Added
<html>langattribute. - Added Twitter card meta tags.
- Valid length app manifest
Version 1.0.0-alpha.4
Minor
- Added a
fetchErrorQueryrender function argument, enabling graceful caching and handling of errors in situations such as when a globalfetchAPI is unavailable or a relative URL is used on the sever.
Patch
- Updated dependencies.
- Replaced
isomorphic-unfetchwith the more updatedcross-fetch. - Use
.prettierignoreto deferpackage.jsonformatting to npm. - Improved the example web app and deployed it to graphql-react.now.sh.
Version 1.0.0-alpha.3
Version 1.0.0-alpha.2
Major
- Removed the
Promisepolyfill; consumers can polyfill as required for optimal bundle size. Required polyfills are documented in the readme.
Minor
- Significantly reduced the bundle size to < 4 KB by simplifying Babel helpers and reusing the
object-assignReact dependency withbabel-plugin-transform-replace-object-assign.
Version 1.0.0-alpha.1
Major
- Updated Node.js support to v7.6+.
- Renamed
GraphQLProviderandGraphQLConsumertoProviderandConsumer. - No longer exporting
GraphQLQuery. - Swapped the
GraphQLQueryandQuerynames. - Removed
GraphQLMutationcomponent;GraphQLQuerycan be used for both queries and mutations. GraphQLQuerycomponentloadOnMountandloadOnResetprops now default tofalse:- Opt-in is safer for mutations.
- Removing
static defaultPropsreduces bundle size. - Nicer valueless boolean props (
<GraphQLQuery />and<GraphQLQuery loadOnReset />vs<GraphQLQuery loadOnReset={false} />and<GraphQLQuery loadOnReset={true} />.
- The
GraphQLqueryinstance method now accepts an options object. - New approach to configuring GraphQL request fetch options:
- Removed the
GraphQLconstructorrequestOptionsoption. - The
Querycomponent now has afetchOptionsOverrideprop, 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.
- Removed the
Minor
- New
preloadAPI for server side rendering, fixing #2. - The
QuerycomponentresetOnLoadprop doesn’t cause cache for the request that triggered a reset to delete, allowing simultaneous use withloadOnReset. Fixes #3. - The
GraphQLresetinstance 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-reacta 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
Initial release.