Webinar

“Digging into Gatsby 5’s Slice API” Register now

v4.24 Release Notes

Welcome to gatsby@4.24.0 release (September 2022 #2)

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


Gatsby 5 Alpha

You probably noticed that in the last couple of releases we mostly focused on bug fixes, smaller improvements, and pointing to our RFCs rather than shipping big new features. There’s a simple reason for that: We’re working hard on Gatsby 5! And we’re super excited to share that you can try the Gatsby 5 Alpha today 🎉

For the Alpha the big new feature you’ll be able to test out is Partial Hydration. With Partial Hydration you gain the ability to mark specific parts of your site/application as “interactive”, while the rest of your site is static by default. This will result in shipping less JavaScript to your users and improved Lighthouse scores. For a quick preview of these great features, you can watch the showcase on YouTube

Please take part in the Gatsby 5 Umbrella Discussion, try it out, and let us know what works and doesn’t work. If Discord is more your jam, you can also join the gatsby-5 Discord channel.

Updating File System Routes on data changes

When creating routes using the File System Route API they were correctly created on initial run with gatsby develop. However, on subsequent changes to the underlying sourced data (e.g. Markdown files have their slug field changed) those changes weren’t reflected in the routes. A restart of gatsby develop was necessary.

In PR #36623 we fixed this behavior and any node changes (either by changing local files or through webhook updates) will be reflected in your routes.

Notable bugfixes & improvements

  • gatsby-plugin-mdx: Fix the React is not defined error, via PR #36595
  • gatsby-remark-copy-linked-files: Add absolutePath to dir function, via PR #36213
  • gatsby & gatsby-plugin-mdx: Fix “Multiple root query” error when using a name for your MDX template, via PR #36525
  • gatsby-parcel-config: The underlying Parcel config (used for compiling gatsby-config.ts and gatsby-node.ts files) was changed to only handle JavaScript/TypeScript. This aligns the behavior with current Node.js capabilities of gatsby-config.js/gatsby-node.js (e.g. you can’t just import YAML files), via PR #36583
  • gatsby: Source maps are available for gatsby-config.ts/gatsby-node.ts files, via PR #36450

Contributors

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

Edit this page on GitHub
© 2022 Gatsby, Inc.