next-graphql-react

A graphql-react integration for Next.js.

MIT License

Downloads
1.4K
Stars
77
Committers
1

Bot releases are visible (Hide)

next-graphql-react - Version 5.1.0

Published by jaydenseric almost 5 years ago

Minor

  • Setup GitHub Sponsors funding:
    • Added .github/funding.yml to display a sponsor button in GitHub.
    • Added a package.json funding field to enable npm CLI funding features.

Patch

  • Updated dev dependencies.
next-graphql-react - Version 5.0.0

Published by jaydenseric almost 5 years ago

Major

  • Updated Node.js support from v8.5+ to v8.10+, to match what the eslint dev dependency now supports. This is unlikely to be a breaking change for the published package.

Patch

  • Updated dev dependencies.
  • Updated the graphql-react peer dependency to 8.3.0 - 9.
  • Clarified that Opera Mini isn’t supported in the Browserslist queries and readme “Support” section.
  • Use GitHub Actions instead of Travis for CI.
  • Removed package-lock.json from .gitignore and .prettierignore as it’s disabled in .npmrc anyway.
  • Updated the withGraphQLApp example code for the current Next.js API, and mark it as JSX instead of JS for syntax highlighting.
  • Added a readme “Examples” section.
next-graphql-react - Version 4.0.0

Published by jaydenseric about 5 years ago

Major

  • Updated the next peer dependency to ^9.0.3.
  • Use the new 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).

Patch

  • Updated dependencies.
  • Cleaner readme “API” section table of contents with “See” and “Examples” headings excluded, thanks to jsdoc-md v3.1.0.
  • Removed a now redundant ESLint disable no-console comment in withGraphQLApp.
next-graphql-react - Version 3.2.0

Published by jaydenseric over 5 years ago

Minor

  • In addition to 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

Patch

  • Updated dev dependencies.
  • Minor variable rename for clarity.
next-graphql-react - Version 3.1.1

Published by jaydenseric over 5 years ago

Patch

  • Fixed edge case HTTP Link header parsing bugs (e.g. an error when a URL contains ,) by replacing the filterLinkHeader and mergeLinkHeaders functions with http-link-header.
  • Fixed withGraphQLConfig documentation.
  • Documented the HTTP Link rel="preload" header forwarding behavior of withGraphQLApp.
next-graphql-react - Version 3.1.0

Published by jaydenseric over 5 years ago

Minor

  • Updated the next peer dependency to 7 - 9.
  • HTTP 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.

Patch

  • Updated dependencies.
  • New src/universal/decoys directory structure for decoy server files.
next-graphql-react - Version 3.0.2

Published by jaydenseric over 5 years ago

Patch

  • Updated dependencies.
  • Reduced the size of the published 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.
  • Use cjs instead of commonjs for the @babel/preset-env modules option.
  • Use >= in the Browserslist node queries.
next-graphql-react - Version 3.0.1

Published by jaydenseric over 5 years ago

Patch

  • Updated dependencies.
  • Updated examples for graphql-react v8.2.0.
next-graphql-react - Version 3.0.0

Published by jaydenseric over 5 years ago

Major

  • Updated the graphql-react peer dependency to ^8.0.0, and updated the implementation for the new API.
  • Updated the react peer dependency to ^16.8.0.

Minor

  • Updated the next peer dependency to 7 - 8.

Patch

  • Updated dev dependencies.
  • Simplified the prepublishOnly script.
  • Updated docs for the new graphql-react API.
next-graphql-react - Version 2.0.0

Published by jaydenseric over 5 years ago

Major

  • Updated the graphql-react peer dependency to ^7.0.0.
  • Renamed withGraphQL to withGraphQLApp.
  • Added withGraphQLConfig, a Next.js custom config decorator that excludes server only graphql-react/lib/ssr imports from the client bundle.

Patch

  • Updated dependencies.
  • New package description.
  • New project structure so server only and universal modules can have different Babel and Browserslist config.
next-graphql-react - Version 1.0.2

Published by jaydenseric almost 6 years ago

Patch

  • Updated dev dependencies.
  • Catch and console.log GraphQL preload render errors.
next-graphql-react - Version 1.0.1

Published by jaydenseric almost 6 years ago

Patch

  • Fixed GraphQL cache clearing on route changes.
  • Fixed incorrect getInitialProps implementation.
  • Higher-order component display name better follows React conventions:
    • Uppercase first letter.
    • Decorated component name falls back to Component instead of Unknown.
  • Renamed cache prop to graphqlCache.
  • Improved JSDoc.
next-graphql-react - Version 1.0.0

Published by jaydenseric almost 6 years ago

Initial release.