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

#197 Remove axios package #200

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

nevendyulgerov
Copy link
Contributor

@nevendyulgerov nevendyulgerov commented Feb 17, 2025

Summary

I removed the axios package and refactored the places in the app where this library was utilised. In its place I used the native fetch api.

In terms of compatibility, fetch is available in all major browsers for multiple years so I don't think that this change will cause any regressions for users on "older" browsers.

The only browser that doesn't support fetch is IE11 and that browser is not supported by Next.js either - https://nextjs.org/docs/architecture/supported-browsers.

@nevendyulgerov nevendyulgerov self-assigned this Feb 17, 2025
Copy link

vercel bot commented Feb 17, 2025

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

Name Status Preview Comments Updated (UTC)
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2025 8:15am

@coveralls
Copy link

coveralls commented Feb 17, 2025

Pull Request Test Coverage Report for Build 13452631437

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 71.246%

Totals Coverage Status
Change from base Build 13447262413: 0.006%
Covered Lines: 2523
Relevant Lines: 3386

💛 - Coveralls

@nevendyulgerov nevendyulgerov changed the title #197 remove axios package #197 Remove axios package Feb 17, 2025
@nevendyulgerov nevendyulgerov linked an issue Feb 17, 2025 that may be closed by this pull request
3 tasks
@nevendyulgerov nevendyulgerov added staking Changes targeted to the Staking platform type:chore It is not a new feature or bug fix. e.g. update dependencies, change repository configurations labels Feb 17, 2025
@nevendyulgerov nevendyulgerov marked this pull request as ready for review February 20, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staking Changes targeted to the Staking platform type:chore It is not a new feature or bug fix. e.g. update dependencies, change repository configurations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove axios package and use native fetch instead
2 participants