A graphql-react integration for Next.js.
MIT License
Bot releases are visible (Hide)
Published by jaydenseric almost 5 years ago
.github/funding.yml
to display a sponsor button in GitHub.package.json
funding
field to enable npm CLI funding features.Published by jaydenseric almost 5 years ago
eslint
dev dependency now supports. This is unlikely to be a breaking change for the published package.graphql-react
peer dependency to 8.3.0 - 9
.package-lock.json
from .gitignore
and .prettierignore
as it’s disabled in .npmrc
anyway.withGraphQLApp
example code for the current Next.js API, and mark it as JSX instead of JS for syntax highlighting.Published by jaydenseric about 5 years ago
next
peer dependency to ^9.0.3
.AppTree
component available in next
v9.0.3 in the App.getInitialProps
static method context
argument, with the ssr
function in withGraphQLApp
. This allows the use of Next.js React hook based APIs such as useRouter
that previously had undefined context values in SSR (see zeit/next.js#6042).jsdoc-md
v3.1.0.no-console
comment in withGraphQLApp
.Published by jaydenseric over 5 years ago
preload
, HTTP Link
headers from GraphQL responses during SSR with the following rel
parameters are forwarded in the Next.js page response:
dns-prefetch
preconnect
prefetch
modulepreload
prerender
Published by jaydenseric over 5 years ago
Link
header parsing bugs (e.g. an error when a URL contains ,
) by replacing the filterLinkHeader
and mergeLinkHeaders
functions with http-link-header
.withGraphQLConfig
documentation.Link
rel="preload"
header forwarding behavior of withGraphQLApp
.Published by jaydenseric over 5 years ago
next
peer dependency to 7 - 9
.Link
headers with rel=preload
from GraphQL responses are now merged with the Next.js page response Link
header (if present), allowing assets to be preloaded from GraphQL queries.src/universal/decoys
directory structure for decoy server files.Published by jaydenseric over 5 years ago
package.json
by moving dev tool config to files. This also prevents editor extensions such as Prettier and ESLint from detecting config and attempting to operate when opening package files installed in node_modules
.cjs
instead of commonjs
for the @babel/preset-env
modules
option.>=
in the Browserslist node
queries.Published by jaydenseric over 5 years ago
graphql-react
v8.2.0.Published by jaydenseric over 5 years ago
graphql-react
peer dependency to ^8.0.0
, and updated the implementation for the new API.react
peer dependency to ^16.8.0
.next
peer dependency to 7 - 8
.prepublishOnly
script.graphql-react
API.Published by jaydenseric over 5 years ago
^7.0.0
.withGraphQL
to withGraphQLApp
.withGraphQLConfig
, a Next.js custom config decorator that excludes server only graphql-react/lib/ssr
imports from the client bundle.Published by jaydenseric almost 6 years ago
console.log
GraphQL preload
render errors.Published by jaydenseric almost 6 years ago
getInitialProps
implementation.Component
instead of Unknown
.cache
prop to graphqlCache
.Published by jaydenseric almost 6 years ago
Initial release.