A graphql-react integration for Next.js.
^12.0.0 || >= 13.7.0
.graphql-react
peer dependency to ^13.0.0
.react
peer dependency to 16.14 - 17
.next-graphql-react/universal
must be updated to next-graphql-react/public
.withGraphQLApp
higher order function has changed:
withGraphQLReact
.graphql-react
v13 API.async
/await
instead of Promise
chains.displayName
to be removed in production builds.object-assign
dependency.hard-rejection
to detect unhandled Promise
rejections in tests, as Node.js v15+ does this natively.u
mode.Link
header forwarding to the client.Link
headers.actions/checkout
to v2.actions/setup-node
to v2.CI
environment variable as it’s set by default.next
peer dependency to 9.0.3 - 10
.react
peer dependency to 16.8 - 17
.disposable-directory
to dev dependencies.require
instead of dynamic import
in withGraphQLApp
source, as since v7.0.0 the module is only published as CJS..js
file extensions from require
paths.npm install-test
command.import
and require
the package exports.npm-debug.log
from the .gitignore
file as npm v4.2.0+ doesn’t create it in the current working directory.^10.17.0 || ^12.0.0 || >= 13.7.0
.Promise
and fetch
, as they are automatically polyfilled by recent versions of Next.js..editorconfig
file.exports
field to support native ESM in Node.js..js
(CJS) instead of .mjs
(ESM), so undocumented deep imports may no longer work. This approach avoids the dual package hazard.10 - 12 || >= 13.7
to reflect the package exports
related breaking changes.graphql-react
peer dependency to ^11.0.0
.withGraphQLConfig
; withGraphQLApp
now uses dynamic import
to only load certain dependencies in a server environment.@babel/plugin-proposal-object-rest-spread
and babel-plugin-transform-replace-object-assign
dev dependencies and simplified Babel config.prepare:prettier
and test:prettier
scripts.test:eslint
script args for consistency with test:prettier
.semi
to the default, true
.prettier
v2.eslint-plugin-import-order-alphabetical
dev dependency.husky
and lint-staged
.getInitialProps
not working when withGraphQLApp
decorates an app that doesn’t have getInitialProps
.