Skip to content

feat: use undici to replace axios#2508

Merged
Keith-CY merged 3 commits intonervosnetwork:developfrom
yanguoyu:fix-updater-axios
Oct 21, 2022
Merged

feat: use undici to replace axios#2508
Keith-CY merged 3 commits intonervosnetwork:developfrom
yanguoyu:fix-updater-axios

Conversation

@yanguoyu
Copy link
Contributor

@yanguoyu yanguoyu commented Oct 18, 2022

undici is created by Node.js org. Using it in Node.js is better.

1. change tsconfig because the index.js in axios is ESM. @zerollup/ts-transform-paths will change axios to ../../node_module/axios, it will require axios/index.js, then it will throw exception in Node.js with ESM.
@yanguoyu
Copy link
Contributor Author

This PR may affect multi sign and restart ckb indexer monitor, need to test for these functions.

@yanguoyu yanguoyu changed the title feat: update axios to 1.1.3 feat: use undici to replace axios Oct 19, 2022
@yanguoyu yanguoyu marked this pull request as ready for review October 19, 2022 07:20
@Cedar67
Copy link
Contributor

Cedar67 commented Oct 19, 2022

Unit test error.

@yanguoyu
Copy link
Contributor Author

Unit test error.

Fixed

@Cedar67
Copy link
Contributor

Cedar67 commented Oct 21, 2022

This PR may affect multi sign and restart ckb indexer monitor, need to test for these functions.

Both of these functions have been verified.

@Keith-CY Keith-CY merged commit 6f445ab into nervosnetwork:develop Oct 21, 2022
@yanguoyu yanguoyu deleted the fix-updater-axios branch October 21, 2022 05:50
@Keith-CY Keith-CY mentioned this pull request Dec 26, 2022
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.

4 participants