Skip to content
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

feat(imports): deprecate axios #2542

Merged
merged 4 commits into from
Oct 7, 2020
Merged

feat(imports): deprecate axios #2542

merged 4 commits into from
Oct 7, 2020

Conversation

straker
Copy link
Contributor

@straker straker commented Oct 6, 2020

Deprecate our use of axios for a single request, which when we can remove it will reduce our minified and gzipped file size by 5 kB. This will also help our transfer to Rollup as axios caused some issues when trying to use the node resolve rollup plugin.

Part of #2357

Reviewer checks

Required fields, to be filled out by PR reviewer(s)

  • Follows the commit message policy, appropriate for next version
  • Code is reviewed for security

@straker straker requested a review from a team as a code owner October 6, 2020 18:36
Copy link
Member

@stephenmathieson stephenmathieson left a comment

Choose a reason for hiding this comment

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

LGTM!

I always thought axios was overkill here, and figured replacing it with unfetch would be an easy performance win. Using the native XMLHttpRequest makes sense too tho :)

While I'm hugely on-board with this change, I think it's best to wait for review from @WilcoFiers or @dylanb, as it involves changing the API.

@straker straker merged commit 82d43a0 into develop Oct 7, 2020
@straker straker deleted the no-axios branch October 7, 2020 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants