Open vamsaya opened 1 year ago
URLPattern is designed to be slow, so we aren't going to support this officially unless it becomes a web standard (WICG != W3C). You can use JS polyfills until then
is it not a web standard ? link
URLPattern is designed to be slow, so we aren't going to support this officially unless it becomes a web standard (WICG != W3C). You can use JS polyfills until then
Please reconsider this. Make it an optional import and allow us to opt into using it if we are willing to accept the performance hit.
I would like to make http server with bun. Here: https://bun.sh/guides/http/server only trivial path matching is demonstrated.
I need match segments, for example /foo/{bar}/baz
I don't want use regexp because they are too complex for simple segment matching.
Bun does not implement URLPattern
Then what is bun proposal for that?
What is the problem this feature would solve?
https://developer.mozilla.org/en-US/docs/Web/API/URLPattern
What is the feature you are proposing to solve the problem?
Although this is an experimental function, it is undoubtedly very practical for bun routing, and deno has already implemented it, so we can't live without it.
What alternatives have you considered?
No response
Routing with regexp is painful and should be abandoned
What is the problem this feature would solve?
https://developer.mozilla.org/en-US/docs/Web/API/URLPattern
What is the feature you are proposing to solve the problem?
Although this is an experimental function, it is undoubtedly very practical for bun routing, and deno has already implemented it, so we can't live without it.
What alternatives have you considered?
No response
Routing with regexp is painful and should be abandoned
It is great feature for web but not so for server-side
What is the problem this feature would solve?
https://developer.mozilla.org/en-US/docs/Web/API/URLPattern
What is the feature you are proposing to solve the problem?
Although this is an experimental function, it is undoubtedly very practical for bun routing, and deno has already implemented it, so we can't live without it.
What alternatives have you considered?
No response