Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

v4.23 Release Notes

Welcome to gatsby@4.23.0 release (September 2022 #1)

Key highlights of this release:

Also check out notable bugfixes.

Bleeding Edge: Want to try new features as soon as possible? Install gatsby@next and let us know if you have any issues.

Previous release notes

Full changelog

Open RFCs

Slices API

We are adding a new API that we are calling “Slices”. By using a new <Slice /> React component in combination with a src/slices directory or createSlice API for common UI features, Gatsby will be able to build and deploy individual pieces of your site that had content changes, not entire pages.

To create a slice, simply:

  1. Create the slice by adding a slices/footer.js file, or using the createPages API action:

  2. Add a <Slice /> component on your site, providing an alias string prop, where alias is either name of the file (in our case, footer). Any additional props passed will be handed down to the underlying component.

To read more, head over to RFC: Slices API. We appreciate any feedback there.

Changes in sort and aggregation fields in Gatsby GraphQL Schema

We are proposing Breaking Changes for the next major version of Gatsby to our GraphQL API. The goal of this change is increasing performance and reducing resource usage of builds. Proposed changes impact sort and aggregation fields (group, min, max, sum, distinct).

Basic example of proposed change:



To read more, head over to RFC: Change to sort and aggregation fields API. We appreciate any feedback there.

Notable bugfixes & improvements

  • gatsby:
    • Improve webpack tree shaking of gatsby-browser-entry imports, via #36484
    • Support node: protocol in engine bundling, via #36506
    • Improve error handling during React 18’s renderToPipeableStream, via #36555
    • Inject context passed by createResolverContext action when materializing fields, via #36552
  • gatsby-source-wordpress:
    • Match full urls when replacing media item links, via #36447
    • Ensure node data replacements for post updates, via #36474
  • gatsby-plugin-sharp:
    • Upgrade svgo dependency to fix vulnerability, via #36445
  • gatsby-dev-cli:
    • Make package work with npm 8.5, via #36498
  • create-gatsby:
    • Ensure plugins are installed correctly, via #36566


A big Thank You to our community who contributed to this release 💜

Start building today on Netlify!
Edit this page on GitHub
© 2023 Gatsby, Inc.