Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

v5.11 Release Notes

Welcome to gatsby@5.11.0 release (June 2023 #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


RFC: Adapters

We intend to add an additional type of plugin to Gatsby called Adapter. Adapters are responsible for taking the production output from Gatsby and turning it into something your deployment platform (e.g. Netlify, Vercel, Self-Hosted, etc.) understands. As part of this work we also intend to add a headers and adapter option to gatsby-config.

We want to make it easier to deploy and host Gatsby on any platform.

If you want to read all the details and try it out, head over to RFC: Adapters. We also prepared a demo project at gatsby-adapters-alpha-demo and a Codesandbox.

You’ll be able to use an adapter inside your gatsby-config like so:

As part of this RFC we also saw the need to allow setting HTTP headers for request paths which you’ll be able to do with the new headers option:

Please give RFC: Adapters a read and let us know what you think!

gatsby-source-wordpress: Support for multiple instances

Up until now you could only have one instance of gatsby-source-wordpress inside your gatsby-config. You’re now able to use as many instances as you want as long as you provide a typePrefix.

Internally, gatsby-source-wordpress uses a global store to pass information around. This store is now scoped to the typePrefix which in turn enables support for multiple instances.

In case you missed it, we also enabled typePrefix support for gatsby-source-contentful to enable multiple instances.

Notable bugfixes & improvements

  • We merged 50 renovate PRs to update dependencies across various packages. If you’re curious about the changes, you can use this GitHub search.
  • gatsby
    • Support style attribute on html & body, via PR #38098
    • Fix regression in type ownership, via PR #38235
  • gatsby-plugin-mdx: Allow modern JS syntax in MDX layout components, via PR #38126
  • gatsby-source-wordpress: Allow using SSR/DSG when using options.auth, via PR #38103
  • gatsby-transformer-screenshot: Add screenshotEndpoint option, via PR #38136

Contributors

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.