TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

New URLPattern API brings improved pattern matching to Node.js and Workers

4 pointsby rita3ko3 months ago

1 comment

jauntywundrkind3 months ago
Really good news. Being able to parse a URL really deserves to be an available capability.<p>Still, I can&#x27;t help but hear a lot of the feel about URLPattern echoing through my head. It&#x27;s super un-ideal a match for webs services, which often have many routes to match! It only passes a single URL!<p>Ideally there would be an API to register a bunch of urls, and then say, which if any does this match? That would open the door to smarter matching, to an engine that can work on all routes at once, rather than having to re-match route by route. Its how all fast routers work! <a href="https:&#x2F;&#x2F;hono.dev&#x2F;docs&#x2F;concepts&#x2F;benchmarks" rel="nofollow">https:&#x2F;&#x2F;hono.dev&#x2F;docs&#x2F;concepts&#x2F;benchmarks</a>