@serwist/sw
Advanced tools
Comparing version 9.0.0-preview.4 to 9.0.0-preview.5
@@ -48,3 +48,3 @@ import { precacheAndRoute, PrecacheFallbackPlugin, cleanupOutdatedCaches, createHandlerBoundToURL } from '@serwist/precaching'; | ||
for (const entry of runtimeCachingList){ | ||
registerRoute(entry.urlPattern, entry.handler, entry.method); | ||
registerRoute(entry.matcher, entry.handler, entry.method); | ||
} | ||
@@ -51,0 +51,0 @@ } |
@@ -15,3 +15,3 @@ import type { RouteHandler, RouteMatchCallback } from "@serwist/core"; | ||
* URLs. If multiple `RuntimeCaching` routes are defined, then the first one | ||
* whose `urlPattern` matches will be the one that responds. | ||
* whose `matcher` matches will be the one that responds. | ||
* | ||
@@ -22,3 +22,3 @@ * This value directly maps to the first parameter passed to | ||
*/ | ||
urlPattern: RegExp | string | RouteMatchCallback; | ||
matcher: RegExp | string | RouteMatchCallback; | ||
/** | ||
@@ -25,0 +25,0 @@ * This determines how the runtime route will generate a response. It |
{ | ||
"name": "@serwist/sw", | ||
"version": "9.0.0-preview.4", | ||
"version": "9.0.0-preview.5", | ||
"type": "module", | ||
@@ -31,13 +31,13 @@ "description": "This module makes it easy to get started with the Serwist service worker libraries.", | ||
"dependencies": { | ||
"@serwist/background-sync": "9.0.0-preview.4", | ||
"@serwist/broadcast-update": "9.0.0-preview.4", | ||
"@serwist/cacheable-response": "9.0.0-preview.4", | ||
"@serwist/core": "9.0.0-preview.4", | ||
"@serwist/expiration": "9.0.0-preview.4", | ||
"@serwist/google-analytics": "9.0.0-preview.4", | ||
"@serwist/navigation-preload": "9.0.0-preview.4", | ||
"@serwist/precaching": "9.0.0-preview.4", | ||
"@serwist/range-requests": "9.0.0-preview.4", | ||
"@serwist/routing": "9.0.0-preview.4", | ||
"@serwist/strategies": "9.0.0-preview.4" | ||
"@serwist/background-sync": "9.0.0-preview.5", | ||
"@serwist/broadcast-update": "9.0.0-preview.5", | ||
"@serwist/cacheable-response": "9.0.0-preview.5", | ||
"@serwist/core": "9.0.0-preview.5", | ||
"@serwist/expiration": "9.0.0-preview.5", | ||
"@serwist/google-analytics": "9.0.0-preview.5", | ||
"@serwist/navigation-preload": "9.0.0-preview.5", | ||
"@serwist/precaching": "9.0.0-preview.5", | ||
"@serwist/range-requests": "9.0.0-preview.5", | ||
"@serwist/routing": "9.0.0-preview.5", | ||
"@serwist/strategies": "9.0.0-preview.5" | ||
}, | ||
@@ -47,4 +47,4 @@ "devDependencies": { | ||
"typescript": "5.4.0-dev.20240206", | ||
"@serwist/constants": "9.0.0-preview.4", | ||
"@serwist/utils": "9.0.0-preview.4" | ||
"@serwist/constants": "9.0.0-preview.5", | ||
"@serwist/utils": "9.0.0-preview.5" | ||
}, | ||
@@ -51,0 +51,0 @@ "peerDependencies": { |
@@ -25,5 +25,5 @@ import { logger } from "@serwist/core/internal"; | ||
for (const entry of runtimeCachingList) { | ||
registerRoute(entry.urlPattern, entry.handler, entry.method); | ||
registerRoute(entry.matcher, entry.handler, entry.method); | ||
} | ||
} | ||
}; |
@@ -16,3 +16,3 @@ import type { RouteHandler, RouteMatchCallback } from "@serwist/core"; | ||
* URLs. If multiple `RuntimeCaching` routes are defined, then the first one | ||
* whose `urlPattern` matches will be the one that responds. | ||
* whose `matcher` matches will be the one that responds. | ||
* | ||
@@ -23,3 +23,3 @@ * This value directly maps to the first parameter passed to | ||
*/ | ||
urlPattern: RegExp | string | RouteMatchCallback; | ||
matcher: RegExp | string | RouteMatchCallback; | ||
/** | ||
@@ -26,0 +26,0 @@ * This determines how the runtime route will generate a response. It |
Sorry, the diff of this file is not supported yet
31085
+ Added@serwist/background-sync@9.0.0-preview.5(transitive)
+ Added@serwist/broadcast-update@9.0.0-preview.5(transitive)
+ Added@serwist/cacheable-response@9.0.0-preview.5(transitive)
+ Added@serwist/core@9.0.0-preview.5(transitive)
+ Added@serwist/expiration@9.0.0-preview.5(transitive)
+ Added@serwist/google-analytics@9.0.0-preview.5(transitive)
+ Added@serwist/navigation-preload@9.0.0-preview.5(transitive)
+ Added@serwist/precaching@9.0.0-preview.5(transitive)
+ Added@serwist/range-requests@9.0.0-preview.5(transitive)
+ Added@serwist/routing@9.0.0-preview.5(transitive)
+ Added@serwist/strategies@9.0.0-preview.5(transitive)
- Removed@serwist/background-sync@9.0.0-preview.4(transitive)
- Removed@serwist/broadcast-update@9.0.0-preview.4(transitive)
- Removed@serwist/cacheable-response@9.0.0-preview.4(transitive)
- Removed@serwist/core@9.0.0-preview.4(transitive)
- Removed@serwist/expiration@9.0.0-preview.4(transitive)
- Removed@serwist/google-analytics@9.0.0-preview.4(transitive)
- Removed@serwist/navigation-preload@9.0.0-preview.4(transitive)
- Removed@serwist/precaching@9.0.0-preview.4(transitive)
- Removed@serwist/range-requests@9.0.0-preview.4(transitive)
- Removed@serwist/routing@9.0.0-preview.4(transitive)
- Removed@serwist/strategies@9.0.0-preview.4(transitive)