Repository navigation
Conversation
|
this would be nice for the policies implementation eventually regardless of public API status. right now it does a |
|
As I said multiple times in the spec repo, this is not a good API for Node.js as it will eventually become an hot path in most servers code. |
|
The API itself is Ok. The reg-ex based impl under the covers leaves lots of room for improvement. Given that this is a Web Platform API, I think there's good reason to provide an implementation but we definitely should put effort into optimizing the internals before it graduates from experimental |
|
The only way to use this API is by iterating over an array of them :(. I'm not convinced this is a good API for Node.js. |
|
That's true when using it as a router. There are plenty of use cases for using just a single pattern. |
|
I'm not aware of other use cases than URL routing. What are those? I would like to note that there are multiple solutions in the ecosystem that are significantly better than this API for server-side routing. Landing this in node will pass the wrong message. This is also a new API and there is no pressure right now from the ecosystem to adopt it, so I think we can wait until we can promote an extension to this API that allows to scale. |
Could Node just provide a utility in say Like the entire And isn't v8's regexp engine pretty fast already? In which case just doing something like |
Signed-off-by: James M Snell <jasnell@gmail.com>
So Chrome just announced an intent to prototype a |
|
@jasnell What was the reason for abandoning this? |
|
Lack of time to finish it. Happy to have someone take it on |
|
I can try attempting this, is only the TODOs in the code left, or are more spec features remaining to be implemented? |
The start of a URLPattern implementation. Still very much a WIP.
Fixes: #40844
Signed-off-by: James M Snell jasnell@gmail.com