-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support browser #21
Comments
Thanks for reporting! Our first focus was to improve the cold start of Fastify applications. Supporting browsers would be amazing too! Would you like to send a PR? |
We made this tool to be usable in the browser too but we did not manage to create a browser test stack yet. If you're willing to help on this task that would be great |
It's a bit unfortunate that the performance of parse will drop a lot if URL.domainToASCII is replaced (this function is actually implemented in C)😅 |
Will it be replaced directly by the compiler tool? |
For automated browser tests we would need e.g. saucelabs or browserstack and run the tests with karma. saucelabs costs atleast 149 $/month. |
Checkout the setup we have for readable-stream: https://github.com/nodejs/readable-stream It uses playwright and github actions |
can't we just build a webpage and run it and use Cypress to test the different cases? |
sure thing! |
I kind of dont like cypress anymore. Its too big for what it has to do. If it would be my package, I would
|
@Uzlopak this module is deliberately different from the URL global as it fulfill a different niche requirement. |
Then we need to add an external punycode library or incorporate a fast punycode implementation, to run in the browser |
Sure, allowing this to run in the browser is a lot of work. I don't have a need for it but I would be happy to review a PR. |
For reference, ajv tried using this library, but since this library relies on So if anyone wants to collaborate with them or suggest a good path of action, then that would probably be welcome |
Hi there! I'm helping out with AJV and I'd be happy to collaborate. We'd be very happy to switch AJV to fast-uri if we can figure out these issues. While it did seem that the issues were mostly related to breaking browser builds, there was one issue that claimed to be a regression ajv-validator/ajv#2447. But one step at a time, first step is browser compatibility. |
Hey, I think we can easily make this happen #73 could cause some issues in terms of 100% compatibility, but I don't think it's a huge problem, and like you said, one step at a time ;) I'll take a look at this |
After #83, https://cdn.jsdelivr.net/npm/fast-uri/+esm seems to work for me in the browser |
But I guess we need a proper dist for the web |
The typical usage is bundled & running in a browser env. So we need a playwright job that verifies this. |
Prerequisites
🚀 Feature Proposal
Are there plans to support browsers? It looks like it can be done with just any compiler tool.
Motivation
No response
Example
No response
The text was updated successfully, but these errors were encountered: