Skip to content

fix(deps): Revert axios v1 bump in #185 #207

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

Merged
merged 1 commit into from
Dec 14, 2022
Merged

fix(deps): Revert axios v1 bump in #185 #207

merged 1 commit into from
Dec 14, 2022

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