Skip to content

Conversation

@tyhopp
Copy link
Contributor

@tyhopp tyhopp commented Dec 12, 2022

One of the changes that were merged between gatsby-source-sanity 7.5.1 and 7.6.0 is a major version bump for axios (v0 to v1) in #185.

Was able to reproduce the behavior shown in #200 via https://github.com/taulal/gatsby-source-sanity-bug-repo and fix it by adding a resolution that pins axios to v0 again.

Briefly looked for some direction from axios about what would need to change in getDocumentStream to make it work with the new axios major, but the renovate bot diff covers too much ground and there is no migration guide yet.

For now then reverting and releasing a patch might be the best way to go about it.

I didn't find any tests that would cover this case, so please point me in that direction if I should add any. Otherwise running https://github.com/tyhopp/gatsby-source-sanity-bug-repo locally could work to verify the fix.

Fixes #200

@vercel
Copy link

vercel bot commented Dec 12, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
gatsby-source-sanity ✅ Ready (Inspect) Visit Preview Dec 12, 2022 at 7:10AM (UTC)

@snorrees
Copy link

Thanks!

@snorrees snorrees merged commit 820c7b2 into sanity-io:main Dec 14, 2022
@github-actions
Copy link
Contributor

🎉 This PR is included in version 7.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ERROR #11321 PLUGIN After update to 7.6.0

2 participants