@serwist/recipes 9.1.0-preview.0 → 10.0.0-preview.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/imageCache.d.ts +2 -3
- package/dist/imageCache.d.ts.map +1 -1
- package/dist/pageCache.d.ts +2 -3
- package/dist/pageCache.d.ts.map +1 -1
- package/dist/staticResourceCache.d.ts +2 -3
- package/dist/staticResourceCache.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/imageCache.ts +3 -3
- package/src/pageCache.ts +3 -3
- package/src/staticResourceCache.ts +3 -3
package/dist/imageCache.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import type { RouteMatchCallback,
|
2
|
-
import { Serwist } from "serwist";
|
1
|
+
import type { RouteMatchCallback, Serwist, StrategyPlugin } from "serwist";
|
3
2
|
export interface ImageCacheOptions {
|
4
3
|
/**
|
5
4
|
* A {@linkcode Serwist} instance.
|
@@ -24,7 +23,7 @@ export interface ImageCacheOptions {
|
|
24
23
|
/**
|
25
24
|
* Additional plugins to use for this recipe.
|
26
25
|
*/
|
27
|
-
plugins?:
|
26
|
+
plugins?: StrategyPlugin[];
|
28
27
|
/**
|
29
28
|
* Paths to call to use to warm this cache.
|
30
29
|
*/
|
package/dist/imageCache.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"imageCache.d.ts","sourceRoot":"","sources":["../src/imageCache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,
|
1
|
+
{"version":3,"file":"imageCache.d.ts","sourceRoot":"","sources":["../src/imageCache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAItG,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,UAAU,0FAQpB,iBAAiB,KAAG,IAwBtB,CAAC"}
|
package/dist/pageCache.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
import type { RouteMatchCallback,
|
2
|
-
import { Serwist } from "serwist";
|
1
|
+
import type { RouteMatchCallback, Serwist, StrategyPlugin } from "serwist";
|
3
2
|
export interface PageCacheOptions {
|
4
3
|
/**
|
5
4
|
* A {@linkcode Serwist} instance.
|
@@ -22,7 +21,7 @@ export interface PageCacheOptions {
|
|
22
21
|
/**
|
23
22
|
* Additional plugins to use for this recipe.
|
24
23
|
*/
|
25
|
-
plugins?:
|
24
|
+
plugins?: StrategyPlugin[];
|
26
25
|
/**
|
27
26
|
* Paths to call to use to warm this cache
|
28
27
|
*/
|
package/dist/pageCache.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pageCache.d.ts","sourceRoot":"","sources":["../src/pageCache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,
|
1
|
+
{"version":3,"file":"pageCache.d.ts","sourceRoot":"","sources":["../src/pageCache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAItG,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,sFAOnB,gBAAgB,KAAG,IAoBrB,CAAC"}
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import type { RouteMatchCallback,
|
2
|
-
import { Serwist } from "serwist";
|
1
|
+
import type { RouteMatchCallback, Serwist, StrategyPlugin } from "serwist";
|
3
2
|
export interface StaticResourceOptions {
|
4
3
|
/**
|
5
4
|
* A {@linkcode Serwist} instance.
|
@@ -20,7 +19,7 @@ export interface StaticResourceOptions {
|
|
20
19
|
/**
|
21
20
|
* Additional plugins to use for this recipe.
|
22
21
|
*/
|
23
|
-
plugins?:
|
22
|
+
plugins?: StrategyPlugin[];
|
24
23
|
/**
|
25
24
|
* Paths to call to use to warm this cache.
|
26
25
|
*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"staticResourceCache.d.ts","sourceRoot":"","sources":["../src/staticResourceCache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,
|
1
|
+
{"version":3,"file":"staticResourceCache.d.ts","sourceRoot":"","sources":["../src/staticResourceCache.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAA6B,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAItG,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,+DAO7B,qBAAqB,KAAG,IAkB1B,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@serwist/recipes",
|
3
|
-
"version": "
|
3
|
+
"version": "10.0.0-preview.1",
|
4
4
|
"type": "module",
|
5
5
|
"description": "A service worker helper library to manage common request and caching patterns",
|
6
6
|
"files": [
|
@@ -33,12 +33,12 @@
|
|
33
33
|
"./package.json": "./package.json"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"serwist": "
|
36
|
+
"serwist": "10.0.0-preview.1"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"rollup": "4.
|
40
|
-
"typescript": "5.
|
41
|
-
"@serwist/configs": "
|
39
|
+
"rollup": "4.34.8",
|
40
|
+
"typescript": "5.7.3",
|
41
|
+
"@serwist/configs": "10.0.0-preview.1"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
44
|
"typescript": ">=5.0.0"
|
package/src/imageCache.ts
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
https://opensource.org/licenses/MIT.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import type { RouteMatchCallback, RouteMatchCallbackOptions,
|
10
|
-
import { CacheFirst, CacheableResponsePlugin, ExpirationPlugin
|
9
|
+
import type { RouteMatchCallback, RouteMatchCallbackOptions, Serwist, StrategyPlugin } from "serwist";
|
10
|
+
import { CacheFirst, CacheableResponsePlugin, ExpirationPlugin } from "serwist";
|
11
11
|
import { warmStrategyCache } from "./warmStrategyCache.js";
|
12
12
|
|
13
13
|
export interface ImageCacheOptions {
|
@@ -34,7 +34,7 @@ export interface ImageCacheOptions {
|
|
34
34
|
/**
|
35
35
|
* Additional plugins to use for this recipe.
|
36
36
|
*/
|
37
|
-
plugins?:
|
37
|
+
plugins?: StrategyPlugin[];
|
38
38
|
/**
|
39
39
|
* Paths to call to use to warm this cache.
|
40
40
|
*/
|
package/src/pageCache.ts
CHANGED
@@ -6,8 +6,8 @@
|
|
6
6
|
https://opensource.org/licenses/MIT.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import type { RouteMatchCallback, RouteMatchCallbackOptions,
|
10
|
-
import { CacheableResponsePlugin, NetworkFirst
|
9
|
+
import type { RouteMatchCallback, RouteMatchCallbackOptions, Serwist, StrategyPlugin } from "serwist";
|
10
|
+
import { CacheableResponsePlugin, NetworkFirst } from "serwist";
|
11
11
|
import { warmStrategyCache } from "./warmStrategyCache.js";
|
12
12
|
|
13
13
|
export interface PageCacheOptions {
|
@@ -32,7 +32,7 @@ export interface PageCacheOptions {
|
|
32
32
|
/**
|
33
33
|
* Additional plugins to use for this recipe.
|
34
34
|
*/
|
35
|
-
plugins?:
|
35
|
+
plugins?: StrategyPlugin[];
|
36
36
|
/**
|
37
37
|
* Paths to call to use to warm this cache
|
38
38
|
*/
|
@@ -6,8 +6,8 @@
|
|
6
6
|
https://opensource.org/licenses/MIT.
|
7
7
|
*/
|
8
8
|
|
9
|
-
import type { RouteMatchCallback, RouteMatchCallbackOptions,
|
10
|
-
import { CacheableResponsePlugin,
|
9
|
+
import type { RouteMatchCallback, RouteMatchCallbackOptions, Serwist, StrategyPlugin } from "serwist";
|
10
|
+
import { CacheableResponsePlugin, StaleWhileRevalidate } from "serwist";
|
11
11
|
import { warmStrategyCache } from "./warmStrategyCache.js";
|
12
12
|
|
13
13
|
export interface StaticResourceOptions {
|
@@ -30,7 +30,7 @@ export interface StaticResourceOptions {
|
|
30
30
|
/**
|
31
31
|
* Additional plugins to use for this recipe.
|
32
32
|
*/
|
33
|
-
plugins?:
|
33
|
+
plugins?: StrategyPlugin[];
|
34
34
|
/**
|
35
35
|
* Paths to call to use to warm this cache.
|
36
36
|
*/
|