-
Notifications
You must be signed in to change notification settings - Fork 12
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
Consider using TypeScript? #35
Comments
Hello! Thank you very much for your interest! An improved readme is very welcome, though I do want to keep the "Limitations" section in focus because the examples will be very similar to regular
As per my comment there, I do still want to keep the possibility of supporting IE and other older browsers, so I would need to make two builds. That said, browser support looks pretty good. The polyfill mentioned in the pull request seems to be a lot larger than
As far as I understand ESM modules are by nature asynchronous which would not work here, and there are few enough imports that I think it does not really change much anyway.
Right now the tests are copied directly from the node-fetch test (with some changes to test cases for features that are async by nature), and I would like to keep them as similar as possible. However, the tests for node-fetch 3 do seem to be separated into multiple files, so when I upgrade that could become a possibility. I hope that all makes sense. Again, thank you for your interest. |
I think switching to esm would be good. Importing this library would not be anymore differently than loading it via a script tag. Only change needed is adding type=module |
Hello! 👋
I've used this library in some of my Web Worker projects to download things synchronously, particularly for WASM magic stuff (sync
httpGet()
is nice!). I'd be interested in contributing code to this library, but I wanted to check-in with @larsgw, the author, before I do anything so I don't end up with a dead-end fork that only I use 😜Specifically, here's some things that I'd love ❤️ to contribute:
If you'd like to keep it steady and stable as-is, that's OK too! 😊 I'm just reaching out to strike up a discussion about whether or not my PRs would be stuck in limbo 🙄
The text was updated successfully, but these errors were encountered: