#urlpattern
“URLPattern” Is Now Baseline Newly Available, by @developers@chromium.social:

https://web.dev/blog/baseline-urlpattern

#urls #apis #javascript #webplatform #browsers
URLPattern is now Baseline Newly available  |  Blog  |  web.dev
URLPattern became Baseline Newly available as of September 15, 2025.
web.dev
November 8, 2025 at 2:30 PM
URLPattern 👨‍🍳🤌❤️
November 4, 2025 at 2:01 PM
Is there any support for URLPattern types in Typescript yet... I see nothing in Typescript docs, but it's baseline supported now...

web.dev/blog/baselin...
URLPattern is now Baseline Newly available  |  Blog  |  web.dev
URLPattern became Baseline Newly available as of September 15, 2025.
web.dev
October 25, 2025 at 9:23 PM
The `URLPattern` specification seems cool, but it looks like it can only match a URL to derive parameters, and not go the other way by substituting parameters to derive a URL. I must be missing something because this feels like a glaring omission.
January 28, 2025 at 11:23 PM
If you think about it, I have literally spent a year of my life implementing URL, URLSearchParams and URLPattern. I guess that's enough URL algorithms for a lifetime.
January 31, 2025 at 1:11 AM
Node.js, Cloudflare Workers, Denoなどサポートされている `URLPattern` APIについて。
WHATWGで定義されているAPIだが、WinterTC Minimum Common APIにも含まれている "New URLPattern API brings improved pattern matching to Node.js and Cloudflare Workers" https://blog.cloudflare.com/improving-web-standards-urlpattern/ #nodejs
March 27, 2025 at 2:03 PM
URLPattern is about to land in all browsers! 🎉

The only problem is it's slow to match URLs against a large set of patterns by linearly scanning.

So I just made url-pattern-list: a utility that parses patterns into a efficient prefix-tree for 2-30x faster matching! 😲

www.npmjs.com/package/url-...
url-pattern-list
Efficiently match URLs against a collection of URL patterns. Latest version: 0.5.0, last published: 12 minutes ago. Start using url-pattern-list in your project by running `npm i url-pattern-list`. Th...
www.npmjs.com
August 13, 2025 at 10:23 PM
Introducing Mentoss: The fetch mocker, a new mocking library for global fetch() calls.

🚧 Routing with URLPattern
🔍 Easier debugging with helpful error messages
🕸️ Browser request support (relative URLs, CORS)

Read more:

humanwhocodes.com/blog/2025/01...
Introducing Mentoss: The fetch mocker - Human Who Codes
A new approach to mocking global fetch() calls that works in both browsers and server-side runtimes.
humanwhocodes.com
January 27, 2025 at 6:58 PM
URLPattern is available in Node.js v23.8.0, finally, a way to implement route matching natively in JavaScript.

developer.mozilla.org/en-US/docs/...
nodejs.org/en/blog/rel...
April 1, 2025 at 11:45 AM
シンプルなコードで、URLの解析やデータ抽出が可能になるURLPattern APIめっちゃ良いな👀

URLPattern is now Baseline Newly available  |  Blog  |  web.dev
https://web.dev/blog/baseline-urlpattern
web.dev
Guidance to build modern web experiences that work in every browser.
web.dev
October 26, 2025 at 8:54 AM
I love the URLPattern API (check it out on MDN)

Routes only need to export a string with the desired url params. The route function will then have them in the ctx

I also set up a thing for middleware. Individual routes have full control over the order

#javascript #buildinpublic #backend #webdev
December 6, 2024 at 11:33 AM
URLPattern makes mapping routes to handlers in an API server so easy and clean. Not on Safari yet, but can see it being used for complex client-side routing
November 9, 2024 at 11:19 AM
The hot-off-the-press URLPattern (developer.mozilla.org/en-US/docs/...) solves this perfectly btw
October 1, 2025 at 9:59 AM
I’ve been a little bit inactive for the past couple of days. Because of URLPattern.
December 18, 2024 at 3:26 AM
I'm proud to announce the next major release of Ada: v3. It includes a lot of fixes, improvements and new features including URLPattern. @lemire.bsky.social

github.com/ada-url/ada/...
Release v3.0.0 · ada-url/ada
Please read our announcement for Ada's next major release: v3.0.0 What's Changed migrate to c++20 by @anonrig in #726 update doxygen-awesome-css to v2.3.3 by @anonrig in #731 update github workflo...
github.com
January 30, 2025 at 7:31 PM
Though URLPattern got some critic, it is still super useful in build tools and visual builders.

This one is another great addition I'd use instead of custom code.
May 29, 2025 at 8:58 AM
Indeed! Thinking whether I should ditch URLPattern in favor of RoutePattern in MSW 3.0. The library looks extremely promising.
October 11, 2025 at 8:46 PM
URLPattern is in the whatwg standards body. See participate.whatwg.org for basic details on participation. Essentially anyone can contribute you just need implementor interest to actually be able to land a change (unless it's editorial or a spec only fix).
Participation — WHATWG
participate.whatwg.org
December 7, 2024 at 1:37 PM
I finally have some time today to improve URLPattern performance as I promised to @nodeland.dev github.com/ada-url/ada/...
improve urlpattern::match() performance by anonrig · Pull Request #879 · ada-url/ada
Improves the performance of both happy path and bad path, and reduces unnecessary string copies. PS: We need benchmarks for URLPattern, but the change is not controversial.
github.com
February 15, 2025 at 5:32 PM
✨ Other exciting releases this week:

@biomejs.dev v2.0 beta - with plugins, and linting++
@valibot.dev v1.0 - a 1kB schema library
@trpc.io v11 - with streaming responses & React Server Components
URLPattern API in @nodejs.org - for improved pattern matching

Which one are you most excited about?
March 26, 2025 at 6:01 AM
I wish #django's `urlpatterns` were callables rather than declared like they are. Something like this would make it a lot easier to test cases where your URLs change based on environment variables etc.:

```
# urls.py

def get_urlpatterns() -> Iterable[URLPattern]:
...
```
April 9, 2025 at 12:41 PM
Blink: Intent to Prototype: generate() Method of URLPattern API
Blink: Intent to Prototype: generate() Method of URLPattern API
Blink: Intent to Prototype: generate() Method of URLPattern API
groups.google.com
May 29, 2025 at 2:18 AM
Not sure.

I do backtracking in this impl and have the opportunity to do some ReDoS mitigation. At the very least I can limit the total amount of backtracking allowed per match, but I'd like to match what native URLPattern does.

I need to learn a lot more about this though!
August 13, 2025 at 10:51 PM
Another inconsistency between URLPattern and URL spec, for those who are interested in learning github.com/whatwg/urlpa...
Spec and WPT inconsistencies · Issue #239 · whatwg/urlpattern
What is the issue with the URL Pattern Standard? There is a web-platform test that is even implemented by Chrome that is not covered with the URLPattern spec. new URLPattern({ "protocol": "http", "...
github.com
December 24, 2024 at 12:48 AM
Urlpattern spec has it’s problems
February 6, 2025 at 2:56 AM