github-actions
released this
07 Jun 20:07
·
635 commits
to main
since this release
Major Changes
#599 1785dcf
Thanks @LekoArts!
Breaking Changes
- Using
lessBabel
option forgatsby-plugin-mdx
- Updating
react-spring
from v8 to v9 - Updating
theme-ui
from v0.3 to v0.9 and thus alsoemotion
from v10 to v11 - Removed
@emotion/styled
- Updating all Gatsby related packages to latest
- Migrated from
gatsby-image
togatsby-plugin-image
- Removed
gatsby-plugin-typescript
&gatsby-plugin-emotion
Migrating
- The
lessBabel
option might break your setup in some edge cases. If it doesn't work, turn on themdx
option and choose your own config forgatsby-plugin-mdx
- You can find the migration guide for
react-spring
here: https://react-spring.io/changelog#v900 - The changelog/migration guide for
theme-ui
is here: https://theme-ui.com/migrating and foremotion
here: https://emotion.sh/docs/emotion-11 - If you still want to use
@emotion/styled
you'll need to install it separately now - Gatsby v3 migration guide: https://www.gatsbyjs.com/docs/reference/release-notes/migrating-from-v2-to-v3/
- The theme itself is completely migrated to the new image plugin, but if you shadowed components and relied on the old structure, you'll need to migrate to
gatsby-plugin-image
: https://www.gatsbyjs.com/docs/reference/release-notes/image-migration-guide/ - The TypeScript plugin isn't necessary anymore with Gatsby v3 -- if you want to continue to use
@emotion/styled
you'll need to addgatsby-plugin-emotion
yourself
Improvements
- You can use the
sharp
theme option to be able to configuregatsby-plugin-sharp
on your own (helpful for defaults forgatsby-plugin-image
) - Performance improvements from
react-spring
andtheme-ui
upgrades - Eagerly load the first image in the grid (better lighthouse score)
- Update header/navigation for better mobile view
Updates to Starter
If you only cloned the starter (https://github.com/LekoArts/gatsby-starter-portfolio-emma) and didn't change anything else this section will be more relevant to you.
- Conditionally add
gatsby-plugin-google-analytics
- Add
FAST_DEV
flag - Update to all latest Gatsby (+ plugins) versions
Patch Changes
- Updated dependencies [
1785dcf
]:- @lekoarts/[email protected]