graphql-react
Advanced tools
Changelog
6.0.1
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.graphQLErrors
JSDoc type.Changelog
6.0.0
preload
reject upon render errors instead of throwing.Query
component throw a helpful render error if the GraphQL context is missing.size-limit
tests:
prop-types
since it’s likely to already be present in a React project, and most frameworks strip it out in production bundles anyway.Changelog
5.0.0
extract-files
dependency to v5:
.prettierignore
entry.graphqlFetchOptions
function.Changelog
4.2.0
GraphQL
constructor option logErrors
(default true
) and instance property, controlling if GraphQL request errors should be console logged for easy debugging.GraphQL
static methods to separate modules.*
.Changelog
4.1.0
> 1%
to > 0.5%, not dead
.browserslist
field due to a sneaky @babel/preset-env
breaking change.Changelog
4.0.0
react
peer dependency to ^16.6.0
.preload
broken due to the React v16.6.0 context API change, fixing #11.Changelog
3.0.0
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.loading
parameter of Query
component render functions change when identical requests are loaded elsewhere in the app.Provider
and Consumer
component display names in React dev tools:
Context.Provider
→ GraphQLContext.Provider
Context.Consumer
→ GraphQLContext.Consumer
husky
version.module
field. By default webpack 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.Operation
type GraphQLOperation
.Changelog
2.0.1
GraphQLQuery
component from API documentation as it used internally and is not exported.jsdoc-md
version.Changelog
2.0.0
prepare
script to support installation via Git (e.g. npm install jaydenseric/graphql-react
).@babel/plugin-transform-runtime
and @babel/runtime
to make runtime helpers more DRY. Bundle size savings will manifest once more packages import the same helpers.rimraf
dev dependency in favour of a native rm -rf
package clean script. Leaner and faster; we only support *nix for contributing anyway.fake-tag
dev dependency now that Prettier can format template literals tagged with /* GraphQL */
.npm-run-all
for package scripts to reduce complexity and bugs.repository
field..yml
files.graphql-api-koa
instead of express-graphql
.jsdoc-md
instead of documentation
to generate readme API docs.master
branch.package.json
and rarely changes.