In https://github.com/w3c/ServiceWorker/pull/1701, the ServiceWorker static routing API uses the match algorithm to match the request URL. However, the original match algorithm accepts a URLPatternInput object, and it does not accept a URL struct. To allow the ServiceWorker static routing API to use the match algorithm, we need to make the match algorithm to accept the URL struct.
In https://github.com/w3c/ServiceWorker/pull/1701, the ServiceWorker static routing API uses the match algorithm to match the request URL. However, the original match algorithm accepts a URLPatternInput object, and it does not accept a URL struct. To allow the ServiceWorker static routing API to use the match algorithm, we need to make the match algorithm to accept the URL struct.
Fixes: https://github.com/whatwg/urlpattern/issues/218.
(See WHATWG Working Mode: Changes for more details.)
Preview | Diff