graphql-react
Advanced tools
Changelog
1.0.1
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..mjs
and .js
files in native ESM (--experimental-modules
) and CJS environments.object-assign
for bundle size tests as it’s a React dependency and tighten the allowed bundle size from 4 KB to 3 KB.babel.config.js
instead of .babelrc.js
.ESM
environment variable to BABEL_ESM
to be more specific.package.json
scripts:
npm-run-all
more for parallelism and reduced noise.test
script. Travis CI will fail PR's with lint errors.cross-env
; contributors with Windows may setup and use a Bash shell.eslint-plugin-ava
dev dependency and config.Changelog
1.0.0
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.@babel
dev dependencies to match new AVA requirements.eslint-config-prettier
.fake-tag
for GraphQL template literals due to prettier/prettier#4360.express
instead of Koa packages.express-graphql
instead of Apollo packages.apollo-upload-server
as there are no upload tests yet.get-port
as not providing a port to app.listen
has the same effect.esm
due to graphql/express-graphql#425.Changelog
1.0.0-alpha.5
react
peer dependency to ^16.3.1
.preload
broken due to the React v16.3.1 context API change.short_name
.<html>
lang
attribute.Changelog
1.0.0-alpha.4
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.isomorphic-unfetch
with the more updated cross-fetch
..prettierignore
to defer package.json
formatting to npm.Changelog
1.0.0-alpha.2
Promise
polyfill; consumers can polyfill as required for optimal bundle size. Required polyfills are documented in the readme.object-assign
React dependency with babel-plugin-transform-replace-object-assign
.parserOptions
is unnecessary when using babel-eslint
.prefer-destructuring
rule.Changelog
1.0.0-alpha.1
GraphQLProvider
and GraphQLConsumer
to Provider
and Consumer
.GraphQLQuery
.GraphQLQuery
and Query
names.GraphQLMutation
component; GraphQLQuery
can be used for both queries and mutations.GraphQLQuery
component loadOnMount
and loadOnReset
props now default to false
:
static defaultProps
reduces bundle size.<GraphQLQuery />
and <GraphQLQuery loadOnReset />
vs <GraphQLQuery loadOnReset={false} />
and <GraphQLQuery loadOnReset={true} />
.GraphQL
query
instance method now accepts an options object.GraphQL
constructor requestOptions
option.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.preload
API for server side rendering, fixing #2.Query
component resetOnLoad
prop doesn’t cause cache for the request that triggered a reset to delete, allowing simultaneous use with loadOnReset
. Fixes #3.GraphQL
reset
instance method now accepts a fetch options hash to exempt a request from cache deletion.parseError
..mjs
.graphql-react
a published dependency, via #1.