-
-
Notifications
You must be signed in to change notification settings - Fork 229
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: make the lib isomorphic #280
Conversation
Thank you so much @alanpoulain! Linter has noticed a few things:
I would just fix those myself but that last one might need a closer eye to make sure there's nothing funny going on. |
I had a go at fixing the linting issues myself in #282 but there is a test failure too.
Can you make sure Thank you! |
be675f3
to
4081adc
Compare
Sorry I forgot to run the linter, it should not be an issue anymore! For the test failure, I was testing with Node.js 18, hence I didn't have the failure. I have updated the CI as well. I've also added a mention to use a polyfill in the README. |
4081adc
to
b996c76
Compare
b996c76
to
759e6a4
Compare
Thank you for such a speedy fix! There's one more issue popping up on Node v14 and I have seen it in a few places, not sure why...
Any chance you can smash that one too? |
That's weird, I cannot reproduce it on my machine, it seems a Windows only issue. |
@alanpoulain thank you, I'll make a fresh issue for it. Merged! |
@philsturgeon can you publish a new version? 🙏 |
Fixes #275.
In order to make this lib isomorphic (usable both in the browser and in Node.js), these changes have been made:
process
global variable directlyfetch
instead ofhttp
(Fetch API is available in Node.js as experimental and if not, can be polyfilled easily).url
(use URL API instead).