Releases: jaydenseric/next-graphql-react
Releases · jaydenseric/next-graphql-react
Version 9.0.0
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 to16.14 - 17
. - Use the new React JSX runtime.
- Reorganized file structure. Deep import paths beginning with
next-graphql-react/universal
must be updated tonext-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 ofPromise
chains. - The React class component it returns has been refactored to a functional component using React hooks.
- It’s been renamed
- 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.
Version 8.0.4
Patch
- Updated dependencies.
- Removed redundant dev dependencies.
- Stop using
hard-rejection
to detect unhandledPromise
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.
- Updated
Version 8.0.3
Patch
- Updated the
next
peer dependency to9.0.3 - 10
. - Updated the
react
peer dependency to16.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.
Version 8.0.2
Patch
- Updated dependencies.
- Updated the
graphql-react
peer dependency to11 - 12
.
Version 8.0.1
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 dynamicimport
inwithGraphQLApp
source, as since v7.0.0 the module is only published as CJS. - Removed unnecessary
.js
file extensions fromrequire
paths. - Simplified the GitHub Actions CI config with the
npm install-test
command. - Clearly documented ways to
import
andrequire
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.
Version 8.0.0
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
andfetch
, as they are automatically polyfilled by recent versions of Next.js. - Updated the
.editorconfig
file.
Version 7.0.1
Patch
- Corrected the package description to match the current API.
- Updated JSDoc code examples:
- Prettier formatting.
- Import React in examples containing JSX.
Version 7.0.0
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 packageexports
related breaking changes. - Updated the
graphql-react
peer dependency to^11.0.0
. - Removed
withGraphQLConfig
;withGraphQLApp
now uses dynamicimport
to only load certain dependencies in a server environment.
Patch
- Updated dependencies.
- Removed the
@babel/plugin-proposal-object-rest-spread
andbabel-plugin-transform-replace-object-assign
dev dependencies and simplified Babel config. - Improved the package
prepare:prettier
andtest:prettier
scripts. - Reordered the package
test:eslint
script args for consistency withtest: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.
Version 6.0.1
Patch
- Updated dev dependencies.
- Fixed a bug relating to ESM/CJS interoperability and default imports.
Version 6.0.0
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
andlint-staged
. - Use strict mode for scripts.
- Fixed page
getInitialProps
not working whenwithGraphQLApp
decorates an app that doesn’t havegetInitialProps
.