Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING: v3 #112

Merged
merged 26 commits into from
Apr 20, 2021
Merged

BREAKING: v3 #112

merged 26 commits into from
Apr 20, 2021

Conversation

LekoArts
Copy link
Contributor

@LekoArts LekoArts commented Apr 13, 2021

Major update for all themes!

This PR updates all themes to the latest and greatest of each respective package. So support for latest version of Gatsby (v3) and i18n libraries.

Breaking Changes

Before upgrading to the new versions you'll want to update your core gatsby version to v3 (+ all plugins) as well: Migrating from v2 to v3 documentation

  • Requires Gatsby v3
  • Requires React 17
  • Requires Node >=12.13.0
  • All Gatsby related plugins/packages were updated a major, too

Please look at the starters folder for working examples with the new setup!

gatsby-theme-blog / gatsby-theme-blog-core / gatsby-theme-blog-darkmode

  • gatsby-image was replaced with gatsby-plugin-image
  • The mdx option from gatsby-theme-blog was removed (use mdxOtherwiseConfigured instead)
  • Updated Theme UI to 0.7 Theme UI's migration guide

gatsby-theme-notes

  • Removed gatsby-plugin-compile-es6-packages (not needed anymore)
  • The mdx option from gatsby-theme-blog was removed (use mdxOtherwiseConfigured instead)
  • Updated Theme UI to 0.7 Theme UI's migration guide

gatsby-theme-ui-preset

  • Removed all dependencies (theme-ui needs to be installed to have the preset working)

gatsby-theme-i18n

  • Made gatsby-plugin-react-helmet and react-helmet peerDependencies. You'll need to install them yourself now

gatsby-theme-i18n-lingui

  • Updated to lingui v3
  • Installing @lingui/core is now required, too

Non-Breaking Improvements

  • Replaced import React from 'react' with import * as React from 'react'
  • Replaced anonymous default exports with named default exports
  • Added TS types to gatsby-theme-i18n
  • Improved READMEs

Fixes #106

@LekoArts LekoArts mentioned this pull request Apr 13, 2021
@LekoArts
Copy link
Contributor Author

Published canary version to try out:

 - gatsby-theme-blog-core@gatsby-v3
 - gatsby-theme-blog-darkmode@gatsby-v3
 - gatsby-theme-blog@gatsby-v3
 - gatsby-theme-i18n-lingui@gatsby-v3
 - gatsby-theme-i18n-react-i18next@gatsby-v3
 - gatsby-theme-i18n-react-intl@gatsby-v3
 - gatsby-theme-i18n@gatsby-v3
 - gatsby-theme-notes@gatsby-v3
 - gatsby-theme-ui-preset@gatsby-v3

@LekoArts LekoArts marked this pull request as ready for review April 20, 2021 09:19
@LekoArts LekoArts merged commit 692499e into master Apr 20, 2021
@LekoArts LekoArts deleted the v3 branch April 20, 2021 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Gatsby v3
1 participant