Skip to content

WIP Replace request with teeny-request - #302

Closed
XhmikosR wants to merge 1 commit into
nickmerwin:masterfrom
XhmikosR:teeny-request
Closed

WIP Replace request with teeny-request#302
XhmikosR wants to merge 1 commit into
nickmerwin:masterfrom
XhmikosR:teeny-request

Conversation

@XhmikosR

@XhmikosR XhmikosR commented May 3, 2020

Copy link
Copy Markdown
Contributor

Draft because I could use some help with tests

@nickmerwin if you have any suggestions how to fix the tests to stub teeny-request since it doesn't expose a post function let me know 🙂

Size comparison:

Screenshot_2020-05-03 Package Phobia

This is an alternative to #275 with a package that has very close API to request. I'm not sure if v6.0.3 works with Node.js 6.x, but we'll know for sure after we fix the tests.

If merged fixes #204 and closes #275.

@mykola-mokhnach

Copy link
Copy Markdown

https://www.npmjs.com/package/axios could also be a good replacement

@XhmikosR

XhmikosR commented May 4, 2020

Copy link
Copy Markdown
Contributor Author

I'm trying to keep using callbacks and not promises.

@mykola-mokhnach

Copy link
Copy Markdown

I'm trying to keep using callbacks and not promises.

Any particular reason for that? I thought everything is now moving to promises for good

@XhmikosR

XhmikosR commented May 4, 2020

Copy link
Copy Markdown
Contributor Author

The whole codebase is using callbacks, I'm not going to change that myself 😛

@XhmikosR XhmikosR closed this Dec 11, 2020
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.

Replace request lib?

2 participants