@serwist/vite 9.0.0-preview.20 → 9.0.0-preview.24
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/index.js +1 -1
- package/dist/index.worker.d.ts +1 -1
- package/dist/index.worker.d.ts.map +1 -1
- package/dist/index.worker.js +2 -2
- package/package.json +12 -12
- package/src/index.worker.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { validationErrorMap, SerwistConfigError } from '@serwist/build/schema';
|
|
|
7
7
|
import { normalizePath } from 'vite';
|
|
8
8
|
import process from 'node:process';
|
|
9
9
|
|
|
10
|
-
var version = "9.0.0-preview.
|
|
10
|
+
var version = "9.0.0-preview.24";
|
|
11
11
|
|
|
12
12
|
const logSerwistResult = (buildResult, viteOptions)=>{
|
|
13
13
|
const { logLevel = "info" } = viteOptions;
|
package/dist/index.worker.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.worker.d.ts","sourceRoot":"","sources":["../src/index.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.worker.d.ts","sourceRoot":"","sources":["../src/index.worker.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAI9C;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,cAAc,EA8GpC,CAAC"}
|
package/dist/index.worker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ExpirationPlugin } from '
|
|
2
|
-
import { CacheFirst, StaleWhileRevalidate, NetworkFirst } from '
|
|
1
|
+
import { ExpirationPlugin } from 'serwist/plugins';
|
|
2
|
+
import { CacheFirst, StaleWhileRevalidate, NetworkFirst } from 'serwist/strategies';
|
|
3
3
|
|
|
4
4
|
const defaultCache = import.meta.env.DEV ? [] : [
|
|
5
5
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@serwist/vite",
|
|
3
|
-
"version": "9.0.0-preview.
|
|
3
|
+
"version": "9.0.0-preview.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A module that integrates Serwist into your Vite application.",
|
|
6
6
|
"files": [
|
|
@@ -69,21 +69,21 @@
|
|
|
69
69
|
"./package.json": "./package.json"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"glob": "10.3.
|
|
72
|
+
"glob": "10.3.12",
|
|
73
73
|
"kolorist": "1.8.0",
|
|
74
74
|
"zod": "3.22.4",
|
|
75
|
-
"@serwist/build": "9.0.0-preview.
|
|
76
|
-
"
|
|
77
|
-
"@serwist/window": "9.0.0-preview.
|
|
75
|
+
"@serwist/build": "9.0.0-preview.24",
|
|
76
|
+
"serwist": "9.0.0-preview.24",
|
|
77
|
+
"@serwist/window": "9.0.0-preview.24"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@types/node": "20.
|
|
81
|
-
"rollup": "4.
|
|
82
|
-
"typescript": "5.5.0-dev.
|
|
83
|
-
"vite": "5.2.
|
|
84
|
-
"@serwist/constants": "9.0.0-preview.
|
|
85
|
-
"
|
|
86
|
-
"@serwist/utils": "9.0.0-preview.
|
|
80
|
+
"@types/node": "20.12.4",
|
|
81
|
+
"rollup": "4.14.0",
|
|
82
|
+
"typescript": "5.5.0-dev.20240404",
|
|
83
|
+
"vite": "5.2.8",
|
|
84
|
+
"@serwist/constants": "9.0.0-preview.24",
|
|
85
|
+
"serwist": "9.0.0-preview.24",
|
|
86
|
+
"@serwist/utils": "9.0.0-preview.24"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"typescript": ">=5.0.0",
|
package/src/index.worker.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RuntimeCaching } from "
|
|
2
|
-
import { ExpirationPlugin } from "
|
|
3
|
-
import { CacheFirst, NetworkFirst, StaleWhileRevalidate } from "
|
|
1
|
+
import type { RuntimeCaching } from "serwist";
|
|
2
|
+
import { ExpirationPlugin } from "serwist/plugins";
|
|
3
|
+
import { CacheFirst, NetworkFirst, StaleWhileRevalidate } from "serwist/strategies";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The default, recommended list of caching strategies for applications
|