Next Graphql React Versions Save

A graphql-react integration for Next.js.

v9.0.0

3 years ago

Major

  • Updated Node.js support to ^12.0.0 || >= 13.7.0.
  • Stopped supporting Internet Explorer.
  • Updated the graphql-react peer dependency to ^13.0.0.
  • Updated the react peer dependency to 16.14 - 17.
  • Use the new React JSX runtime.
  • Reorganized file structure. Deep import paths beginning with next-graphql-react/universal must be updated to next-graphql-react/public.
  • The withGraphQLApp higher order function has changed:
    • It’s been renamed withGraphQLReact.
    • It now automatically sets the context required for the new graphql-react v13 API.
    • It now uses async/await instead of Promise chains.
    • The React class component it returns has been refactored to a functional component using React hooks.
  • Published modules now contain JSDoc comments, which might affect TypeScript projects.

Minor

  • Allow React component displayName to be removed in production builds.

Patch

  • Updated dev dependencies.
  • Removed the redundant object-assign dependency.
  • Removed Babel and related dependencies and config.
  • Refactored experimental syntax to what is supported for the Browserslist query.
  • Restructured tests to mirror the published file structure.
  • Updated the package description.
  • Updated a Next.js docs link URL.
  • Internal JSDoc tweaks.
  • Readme edits, including:
    • Updated the “Setup” section.
    • Updated the “Support” section.

v8.0.4

3 years ago

Patch

  • Updated dependencies.
  • Removed redundant dev dependencies.
  • Stop using hard-rejection to detect unhandled Promise rejections in tests, as Node.js v15+ does this natively.
  • Tweaked the v8.0.3 changelog entry.
  • Always use regex u mode.
  • Use the Next.js JS API instead of the CLI to start Next.js in tests, fixing Next.js start detection in tests broken since Next.js v10.0.6-canary.8.
  • Asynchronously create test fixture files.
  • Fixed incorrect console output indentation following certain test failures.
  • Added tests for SSR GraphQL response Link header forwarding to the client.
  • Fixed errors that can happen during a Next.js build or SSR due to unparsable Link headers.
  • Internal JSDoc tweaks.
  • Updated GitHub Actions CI config:
    • Updated actions/checkout to v2.
    • Updated actions/setup-node to v2.
    • Don’t specify the CI environment variable as it’s set by default.

v8.0.3

3 years ago

Patch

  • Updated the next peer dependency to 9.0.3 - 10.
  • Updated the react peer dependency to 16.8 - 17.
  • Updated dependencies.
  • Moved disposable-directory to dev dependencies.
  • Also run GitHub Actions with Node.js v15.
  • Fixed a test hanging in Node.js v15.

v8.0.2

3 years ago

Patch

  • Updated dependencies.
  • Updated the graphql-react peer dependency to 11 - 12.

v8.0.1

3 years ago

Patch

  • Updated dependencies.
  • Derive fixture dependency versions from dev dependency versions.
  • No longer separately build ESM and CJS to simplify package scripts, Babel and ESLint config.
  • Use require instead of dynamic import in withGraphQLApp source, as since v7.0.0 the module is only published as CJS.
  • Removed unnecessary .js file extensions from require paths.
  • Simplified the GitHub Actions CI config with the npm install-test command.
  • Clearly documented ways to import and require the package exports.
  • Removed npm-debug.log from the .gitignore file as npm v4.2.0+ doesn’t create it in the current working directory.

v8.0.0

3 years ago

Major

  • Updated supported Node.js versions to ^10.17.0 || ^12.0.0 || >= 13.7.0.
  • Added integration tests. These use modern Node.js APIs, increasing the minimum supported Node.js version.

Patch

  • Updated dependencies.
  • Stop testing with Node.js v13.
  • Added missing file extensions to dynamic imports from Next.js.
  • Removed documentation relating to polyfilling Promise and fetch, as they are automatically polyfilled by recent versions of Next.js.
  • Updated the .editorconfig file.

v7.0.1

4 years ago

Patch

  • Corrected the package description to match the current API.
  • Updated JSDoc code examples:
    • Prettier formatting.
    • Import React in examples containing JSX.

v7.0.0

4 years ago

Major

  • Added a package exports field to support native ESM in Node.js.
  • Some source and published files are now .js (CJS) instead of .mjs (ESM), so undocumented deep imports may no longer work. This approach avoids the dual package hazard.
  • Updated Node.js support from v10+ to 10 - 12 || >= 13.7 to reflect the package exports related breaking changes.
  • Updated the graphql-react peer dependency to ^11.0.0.
  • Removed withGraphQLConfig; withGraphQLApp now uses dynamic import to only load certain dependencies in a server environment.

Patch

  • Updated dependencies.
  • Removed the @babel/plugin-proposal-object-rest-spread and babel-plugin-transform-replace-object-assign dev dependencies and simplified Babel config.
  • Improved the package prepare:prettier and test:prettier scripts.
  • Reordered the package test:eslint script args for consistency with test:prettier.
  • Configured Prettier option semi to the default, true.
  • Lint fixes for prettier v2.
  • Reorder Babel config fields.
  • Ensure GitHub Actions run on pull request.
  • Also run GitHub Actions with Node.js v14.
  • Support Next.js static HTML export, fixing #4.

v6.0.1

4 years ago

Patch

  • Updated dev dependencies.
  • Fixed a bug relating to ESM/CJS interoperability and default imports.

v6.0.0

4 years ago

Major

  • Updated Node.js support from v8.10+ to v10+.
  • Updated dev dependencies, some of which now require Node.js v10+.

Patch

  • Updated dependencies.
  • Removed the now redundant eslint-plugin-import-order-alphabetical dev dependency.
  • Stop using husky and lint-staged.
  • Use strict mode for scripts.
  • Fixed page getInitialProps not working when withGraphQLApp decorates an app that doesn’t have getInitialProps.