A graphql-react integration for Next.js.
MIT License
Bot releases are visible (Hide)
^18.17.0 || >=20.4.0
.test-director
.AbortController
, AbortSignal
, Event
, EventTarget
, and performance
APIs available in modern Node.js and removed the dev dependencies abort-controller
and event-target-shim
.next
peer dependency to 12 - 14
, fixing #7.package.json
field repository
to conform to new npm requirements.eslint-plugin-optimal-modules
.actions/checkout
to v4.actions/setup-node
to v4.withGraphQLReact
tests:
next export
to the new Next.js static export API.startNext
.cjsDefaultImport
.Published by jaydenseric almost 2 years ago
cjsDefaultImport
to normalize the default import value from the CJS module next/app.js
that has a default
property, preserving the type for the various ways TypeScript may be configured.Published by jaydenseric almost 2 years ago
next
peer dependency to 12 - 13
.Published by jaydenseric about 2 years ago
graphql-react
peer dependency to ^20.0.0
.react-waterfall-render
dependency to v5.node:
URL scheme for Node.js builtin module imports in tests.fs
to node:fs/promises
in tests.fsPathRemove
with the function rm
from the Node.js builtin module node:fs/promises
.Published by jaydenseric about 2 years ago
graphql-react
peer dependency to ^19.0.0
.react
and react-dom
peer dependencies to ^18.0.0
.react-dom/server
imports to suit React v18.not IE > 0
from the Browserslist query..js
file extension.Published by jaydenseric over 2 years ago
^14.17.0 || ^16.0.0 || >= 18.0.0
.graphql-react
peer dependency to ^18.0.0
.jsdoc-md
dev dependency and the package docs-update
and docs-check
scripts, replacing the readme “API” section with a manually written “Exports” section.types
script.Link
header array values.React.createElement
instead of the the new React JSX runtime in tests.actions/checkout
to v3.actions/setup-node
to v3..mjs
file extension for Next.js pages in test fixtures.license.md
MIT License file.Published by jaydenseric almost 3 years ago
^12.22.0 || ^14.17.0 || >= 16.0.0
.graphql-react
peer dependency to ^16.0.0
.next
peer dependency to ^12.0.0
.files
and exports
fields../package
from the package exports
field; the full package.json
filename must be used in a require
path./public/
..mjs
files instead of CJS in .js
files, accessible via import
but not require
.React.createElement
instead of the the new React JSX runtime.graphql
dev dependency.singleQuote
to the default, false
.Published by jaydenseric over 3 years ago
next
peer dependency to 9.5 - 11
.Head.rewind()
within the function withGraphQLReact
, as it was made a noop in Next.js v9.5 and was removed in Next.js v11.eslint-config-next
dev dependency for next
v11.Published by jaydenseric over 3 years ago
graphql-react
peer dependency to 14 - 15
.disposable-directory
and install-from
dev dependencies.NEXT_TELEMETRY_DISABLED
environment variable to disable Next.js telemetry for tests.Published by jaydenseric over 3 years ago
^12.20 || >= 14.13
.graphql-react
peer dependency to ^14.0.0
.package.json
exports
field public subpath folder mapping (deprecated by Node.js) with a subpath pattern. Deep require
paths within next-graphql-react/public/
must now include the .js
file extension..mjs
files instead of CJS in .js
files.sideEffects
field.jsdoc-md
v10+ automatically generates a Prettier formatted readme.test:jsdoc
script that checks the readme API docs are up to date with the source JSDoc..js
file extension in internal require
paths.changelog.md
is no longer published.Published by jaydenseric over 3 years ago
^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.Published by jaydenseric over 3 years ago
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.Published by jaydenseric almost 4 years ago
next
peer dependency to 9.0.3 - 10
.react
peer dependency to 16.8 - 17
.disposable-directory
to dev dependencies.Published by jaydenseric about 4 years ago
graphql-react
peer dependency to 11 - 12
.Published by jaydenseric about 4 years ago
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.Published by jaydenseric over 4 years ago
^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.Published by jaydenseric over 4 years ago
Published by jaydenseric over 4 years ago
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.Published by jaydenseric over 4 years ago
Published by jaydenseric over 4 years ago
eslint-plugin-import-order-alphabetical
dev dependency.husky
and lint-staged
.getInitialProps
not working when withGraphQLApp
decorates an app that doesn’t have getInitialProps
.