Upgrade Gatsby 3->5, React 17->19, and all plugin dependencies - #11
Merged
Conversation
Bumps every gatsby-* plugin, react, react-dom, react-bootstrap, bootstrap,
prismjs, sass, and the typeface-* packages to their current latest majors,
and prettier 2->3.
Fixes needed for the upgrade:
- gatsby-plugin-feed v5 now requires a `title` on each feed entry
- Deprecated `sort: { fields: [...], order }` GraphQL syntax replaced with
the new nested field syntax across gatsby-node.js, gatsby-config.js, and
src/pages/index.js
- Reformatted with prettier 3 (mostly trailing-comma changes)
Verified locally (Node 22): npm ci, gatsby build, gatsby serve smoke test
(index/rss/post/tag routes all 200), and gatsby develop all succeed.
gatsby-plugin-categories/tags stay pinned at 2.3.7 (no newer release
exists) but build fine against Gatsby 5 in practice.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0112G95j6F54axcBJwRLEpHg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gatsby-plugin-feedv5 needs atitleon the feed entry; deprecatedsort: { fields, order }GraphQL syntax replaced with the new nested syntax ingatsby-node.js,gatsby-config.js,src/pages/index.jsTest plan
npm ciclean install (Node 22)gatsby buildsucceeds, generates all expected pages (index, posts, category, tag, 404, using-typescript)gatsby servesmoke test: index/rss/post/tag routes all return 200, Bio component (StaticImage + useStaticQuery) rendersgatsby developstarts cleanlymake lint/make testpass