Releases: gatsbyjs/gatsby
gatsby@5.16.0
What's Changed
- feat: support React 19 by @serhalp in #39306
- feat: support Node.js 24 by @serhalp in #39380 and #39398
- fix(deps): bump
body-parserto resolveqsvulnerability warning by @serhalp in #39396 - chore(docs,starters): remove misc. outdated, invalid, or misleading instructions by @serhalp in #39363
React 19
Note
🔐 As of January 26 2026, none of the React 19 security vulnerabilities affect Gatsby.
🚀 React 19 is here!
React 19 is now officially supported by Gatsby and all gatsby- packages maintained by the Gatsby team.
This is not a breaking change. You can safely upgrade to this release while staying on React 18.
All packages' peer dependencies on react and react-dom have been extended from ^18.0.0 to ^18.0.0 || ^19.0.0.
All existing stable Gatsby functionality is intended to now work with React 19.
PR: #39306
Upgrade Guide
Warning
Community plugins may not have been updated yet to support React 19, so please check their repository for the current status. All plugins managed by the Gatsby team (in the gatsbyjs/gatsby repository) have been updated.
To upgrade to React 19, first upgrade gatsby and all your dependencies that start with gatsby- to the latest version. (Check out this guide if you need help with that.)
Tip
If you use npm 7 or higher you’ll want to use the --legacy-peer-deps option. For example, if you use gatsby and gatsby-plugin-postcss:
npm install --legacy-peer-deps gatsby@latest gatsby-plugin-postcss@latestThen, follow the React 19 upgrade guide. No other changes are required.
Please note:
- Some new React 19 features may not be available yet via Gatsby.
- Notably, the new document metadata hoisting feature is disabled in Gatsby, as it conflicts with the existing Gatsby Head API
- Gatsby Partial Hydration, an experimental feature for three years now, is known to be incompatible with React 19 at this time. If you rely on this feature, do not upgrade to React 19.
New features
Gatsby now supports React 19's new root error callbacks.
Users can export onCaughtError and onUncaughtError from their gatsby-browser.js to handle errors caught by error boundaries and uncaught errors respectively:
// gatsby-browser.js
export const onCaughtError = ({ error, errorInfo }) => {
// e.g. send to an error tracking service
myErrorTracker.reportError(error, { extra: errorInfo })
}
export const onUncaughtError = ({ error, errorInfo }) => {
// e.g. send to an error tracking service
myErrorTracker.captureException(error, { extra: errorInfo })
}In development, these errors also appear in Gatsby's Fast Refresh error overlay. These callbacks are only invoked in React 19.
Node.js 24
Node.js 24 is now officially supported by Gatsby.
Notable bugfixes & improvements
gatsby,gatsby-source-drupal:- chore: remove misc. outdated, invalid, or misleading contributor instructions by @serhalp in #39363
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.15.0...gatsby@5.16.0
gatsby@5.15.0
What's Changed
- fix: support node 22 by @serhalp in #39349
- fix(gatsby): update socket.io to address vulnerable subdeps by @serhalp in #39352
Node.js 22
This release formally introduces Node.js 22 support, which is officially tested and supported going forward.
If you wish to use Node.js 22 with Gatsby, we highly recommend using the latest 22.x release, as there are known issues with some older 22.x versions that Gatsby is unable to work around at this time.
⚠️ Known Issue: gatsby develop fails with Node.js 22.7.0, 22.8.0, and 22.9.0
There is a critical bug in Node.js (nodejs/node#55145?) affecting versions 22.7.0, 22.8.0, and 22.9.0 that causes gatsby develop to fail with the error reported in #39068.
👉🏼 To avoid this, use Node.js 22.10.0 or later. (You can also use 22.6.0 or earlier.)
⚠️ Known Issue: Page loads may hang in dev with experimental DEV_SSR enabled and Node.js ≥22.14.0 (or ≥20.19.0)
This will not affect most users.
A change landed in Node.js 20.19.0 and 22.14.0 results in requests to the gatsby develop dev server to occasionally hang for 15 seconds. This can only occur if you have opted in to the experimental DEV_SSR flag.
👉🏼 To avoid this, disable the experimental DEV_SSR flag. (You can also downgrade to Node.js 22.13.1 or earlier, 20.18.3 or earlier, or 18.x.)
New Contributors
Thank you!
- @pajosieg made their first contribution in #39169
- @johnmurphy01 made their first contribution in #39324
- @shrisoundharyaa made their first contribution in #39286
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.14.6...gatsby@5.15.0
gatsby@5.14.6
2025-08-06
What's Changed
- fix: don't treat timestamps as dynamic paths (#39340) by @gatsbybot in #39341
- fix: use forked devcert to avoid pulling transitive deps from its @types/* deps (#39343) by @gatsbybot in #39345
- This fixes npm install errors/warnings with Node.js 18 that look like
error glob@11.0.3: The engine "node" is incompatible with this module. Expected version "20 || >=22". Got "18.6.0"
- This fixes npm install errors/warnings with Node.js 18 that look like
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.14.5...gatsby@5.14.6
gatsby@5.14.5
2025-06-19
What's Changed
- fix: ensure rendering engine has vendored libvips (#39317) by @gatsbybot in #39320
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.14.4...gatsby@5.14.5
gatsby@5.14.4
2025-06-06
What's Changed
- fix(deps): upgrade multer to resolve 3 security vulnerabilities (#39307) by @gatsbybot in #39308
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.14.3...gatsby@5.14.4
gatsby@5.14.3
2025-04-09
What's Changed
- fix: Align types of rootNodeMap during root node tracking (#39262) by @gatsbybot in #39270
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.14.2...gatsby@5.14.3
gatsby-source-wordpress@7.15.0
2025-04-09
What's Changed
- feat(gatsby-source-wordpress): support wp-graphql@2 (#39263) by @gatsbybot in #39269
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby-source-wordpress@7.14.0...gatsby-source-wordpress@7.15.0
gatsby@5.14.2
2025-04-07
What's Changed
- fix: pin
isNonNullType is not definedwithwebpack>=5.99.0(#39264) by @gatsbybot in #39265
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby@5.14.1...gatsby@5.14.2
gatsby-source-shopify@9.0.0
2025-01-02
What's Changed
- [possibly breaking] feat!(gatsby-source-shopify): upgrade from Shopify API version 2022-04 to 2024-04 (#39082) by @serhalp in #39082
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby-source-shopify@8.14.1...gatsby-source-shopify@9.0.0
gatsby-link@5.14.1
2024-12-20
What's Changed
Full Changelog: https://github.com/gatsbyjs/gatsby/compare/gatsby-link@5.14.0...gatsby-link@5.14.1