v4.20 Release Notes
Welcome to gatsby@4.20.0
release (August 2022 #1)
Key highlights of this release:
- RFC for changes in
sort
and aggregation fields in Gatsby GraphQL Schema - Release Candidate for gatsby-plugin-mdx v4 - Support for MDX v2 and more!
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.
RFC for 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:
Current:
Proposed:
To read more, head over to RFC: Change to sort and aggregation fields API. We appreciate any feedback there.
Release Candidate for gatsby-plugin-mdx
v4
In case you missed it: We’re working on a new major version of gatsby-plugin-mdx
to support MDX v2, improve build & frontend performance, and simplify the API.
You can now try out a release candidate version, head to the MDX v2 RFC to learn more.
Notable bugfixes & improvements
gatsby
- Preserve relative order of
<head>
meta tags, via PR #36158 - Fixed
--host
and--https
options forgatsby develop
, via PR #36186 and PR #36248 - Improved ContentSync mapping to also check Static Queries and type connections, via PR #36132
- Allow
export { default }
syntax to export page template, via PR #29553 - Fixed
pathPrefix
handling for DSG/SSR ingatsby serve
, via PR #36231 - Improved performance of sorting, filtering and aggregation on fields with custom resolvers, via PR #36253
- Preserve relative order of
gatsby-plugin-sass
- Added support for
additionalData
option, via PR #36086
- Added support for
gatsby-plugin-sharp
- Ensure min 1px height for
BLURRED
placeholder, via PR #35914
- Ensure min 1px height for
gatsby-plugin-utils
- fixed
IMAGE_CDN
andFILE_CDN
handling for urls requiring encoding, via PR #36179
- fixed
gatsby-source-wordpress
- Added option to disable automatic use of
gatsby-plugin-catch-link
through settingcatchLinks: false
ingatsby-source-wordpress
plugin options, via PR #36141
- Added option to disable automatic use of
gatsby-source-drupal
- Added support for translated content in Content Sync, via PR #35514
Contributors
A big Thank You to our community who contributed to this release 💜
- bytrangle: chore(docs): Instruct to install v2 of
unist-util-visit
in remark tutorial PR #36221 - laneparton: fix(gatsby-plugin-sass): Add support for additionalData option PR #36086
- edlucas: chore(docs): Clarify note in “local font” how-to PR #36224
- Shubhdeep12: chore(docs): Typo fix in debugging-html-builds PR #36228
- RajputUsman: chore(docs): Update to Basic Hardware and Software Requirements PR #36153
- chrispecoraro: chore(docs): Typo in 4.19 release notes PR #36176
- tordans: chore(docs): Add section about
navigate(-1)
PR #36184 - yanneves: fix(gatsby): Allow
export { default }
named exports in page templates PR #29553 - openscript: chore(docs): Add dependency for TypeScript testing PR #36050
- ThomasVandenhede: fix(gatsby-plugin-sharp): Ensure min 1px height for
BLURRED
placeholder PR #35914 - Hunta88: Grammar typo fixed PR #36219
- billybrown-iii: chore(docs): fix outdated link PR #36145
- dan-mba: chore(docs): Add
react-helmet
note in Gatsby Head reference PR #36216 - Auspicus: fix(gatsby-source-drupal): Add langcode to manifest ID PR #35514
- merceyz: fix: add missing dependencies PR #36230
- axe312ger: chore(gatsby-source-contentful): migrate to latest Contentful SDK PR #35501