proposals icon indicating copy to clipboard operation
proposals copied to clipboard

URLPattern

Open wanderview opened this issue 5 years ago • 4 comments

Introduction

Service workers scopes currently use a very simplistic URL matching mechanism. We have heard from a number of sites that scopes could benefit from a more expressive pattern syntax. In addition, web developers often need to match URLs in order to implement routing systems.

This proposal introduces a URL matching primitive that can be used both directly in javascript and in web platform APIs like service workers.

Read the complete Explainer.

This proposal has been reviewed by the TAG.

There is also a detailed design doc that goes into greater API and chromium implementation details.

This proposal was discussed at TPAC 2019 and a virtual call around TPAC 2020.

The group decided at the latest meeting URLPattern should be spec'd under WICG to start. I'd like to move the explainer repo to WICG and rename it to urlpattern. Eventually the service worker bits will move out to the service worker WG repo.

Feedback (Choose One)

I welcome feedback in this thread, but encourage you to file bugs against the Explainer.

wanderview avatar Oct 09 '20 20:10 wanderview

LinkedIn is very interested in being able to handle routing across different JS environments using the same built in primitives.

asakusuma avatar Oct 09 '20 21:10 asakusuma

Sounds like we have enough support to move over the repo!

yoavweiss avatar Oct 12 '20 08:10 yoavweiss

The repo has been moved to:

https://github.com/wicg/urlpattern

Thanks @yoavweiss!

Not sure if this issue stays open or should be closed.

wanderview avatar Oct 12 '20 15:10 wanderview

Added a label indicating the repo was adopted. I think we can leave it open, use labels to keep track of progress until it's migrated to a WG.

yoavweiss avatar Oct 13 '20 12:10 yoavweiss