My upgrade from Gatsby v4 to v5

As soon as v5 was released, I tried upgrading but quickly put it on the shelf as I use node-canvas to draw the open graph images. And back in November, node-canvas did not have Node v18 support!

But now it does, and the upgrade was pretty swift for me 🥳

I ran the gatsby-codemods to fix GraphQL schema: Changes to sort and aggregation fields.

npx gatsby-codemods@latest sort-and-aggr-graphql .

Then I also had to refactor from nodeModel.runQuery to nodeModel.getAllNodes in my "find related content" resolver inspired by How to Create List of Related Content in Gatsby.JS.


All the best,
Queen Raae


PS: Skipping tomorrow as it's the Pirate Princess's birthday.

Interested in more daily treasures like this one?
Sent directly to your inbox?