Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

chore(deps): upgrade to Gatsby v4 #549

Merged
merged 9 commits into from
Nov 17, 2021
Merged

chore(deps): upgrade to Gatsby v4 #549

merged 9 commits into from
Nov 17, 2021

Conversation

robinmetral
Copy link
Contributor

@robinmetral robinmetral commented Nov 9, 2021

Upgrades to Gatsby v4.

If your site is still on Gatsby v3, please continue using v2.1.2 until you've migrated.

Closes #537
Closes #536

@robinmetral robinmetral changed the title Upgrade to Gatsby v4 chore(deps): upgrade to Gatsby v4 Nov 10, 2021
Robin Métral added 6 commits November 17, 2021 12:09
BREAKING: requires Gatsby ^4.0.1
gatsby ^4.0.1 should only be a peer dependency
This commit alsp improves types and error reporting
Gatsby dropped support for Node <14 in v4 so we're doing the same.

This commit switches to the recommended tsconfig from @tsconfig/node14 and addresses TS issues.
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
"scripts": {
"develop": "gatsby develop",
"build": "gatsby build",
"build": "gatsby build --verbose",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is sensible to keep for the example site since it helps with debugging any issue in the CI when the e2e tests are running on it

package.json Outdated
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"gatsby": "^3.14.3",
"gatsby": "^4.0.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be a devDependency because the interfaces we need to type the Gatsby Node APIs are coming from the gatsby package 😕

@robinmetral robinmetral merged commit 640ae01 into main Nov 17, 2021
@robinmetral robinmetral deleted the gatsby-v4 branch November 17, 2021 15:56
@robinmetral
Copy link
Contributor Author

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for Gatsby v4
1 participant