gatsby
5.16.1 · 10 Feb 2026MIT311.8k / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgrade- 5.x5.16.1Safe from 5.9.1Latest line
- 4.x and older4.25.916 open advisories, worst moderate · last release May 2024, no longer updatedTo 5.16.1
Latest releases
All 1351 releases- 5.x · latest line
5.16.1
10 Feb 2026Fix various regressions with Gatsby Head API, such as
<title>not updatingdocument.title
5.16.0
26 Jan 2026- security
gatsby, gatsby-source-drupal: fix(deps): bump
body-parserto resolveqsvulnerability warning Support React 19
Support Node.js 24
What's Changed
Support React 19
Support Node.js 24
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
reactandreact-domhave been extended from^18.0.0to^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
gatsbyand all your dependencies that start withgatsby-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-depsoption. For example, if you usegatsbyandgatsby-plugin-postcss:npm install --legacy-peer-deps gatsby@latest gatsby-plugin-postcss@latest
Then, 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
onCaughtErrorandonUncaughtErrorfrom theirgatsby-browser.jsto 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
- security
gatsby, gatsby-source-drupal: fix(deps): bump
body-parserto resolveqsvulnerability warning
5.15.0
27 Aug 2025Support node 22
gatsby: Update socket.io to address vulnerable subdeps
What's Changed
Support node 22
gatsby: Update socket.io to address vulnerable subdeps
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 developfails with Node.js 22.7.0, 22.8.0, and 22.9.0There is a critical bug in Node.js (#55145?) affecting versions 22.7.0, 22.8.0, and 22.9.0 that causes
gatsby developto 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_SSRenabled 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 developdev server to occasionally hang for 15 seconds. This can only occur if you have opted in to the experimentalDEV_SSRflag.👉🏼 To avoid this, disable the experimental
DEV_SSRflag. (You can also downgrade to Node.js 22.13.1 or earlier, 20.18.3 or earlier, or 18.x.)
Dependency tracking · free for 3 projects
Know when your own dependencies move
This page watches gatsby. inlinr reads your package.json and keeps the same watch on every dependency you declare, then tells you only what needs you.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 4 Nov 2026. Releases and advisories last read 4 Nov 2026.