@lvce-editor/cache-worker 0.1.2 → 0.2.0
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/README.md +5 -3
- package/cacheWorkerMain.js +670 -301
- package/index.js +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,13 +36,15 @@ The worker registers the commands in `src/parts/CommandMap/CommandMap.js`. `Resp
|
|
|
36
36
|
|
|
37
37
|
This repository uses npm workspaces and a root `package-lock.json`.
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
Run `npm run dev` to build the worker assets and start the development test server.
|
|
40
|
+
|
|
41
|
+
The cross-browser suite checks Cache Storage and OPFS through worker RPC in Chromium, Firefox, and WebKit. IndexedDB file-handle restoration is covered in Firefox; Chromium checks general structured-clone persistence. WebKit runs in CI as advisory coverage because some e2e tests may not pass there yet.
|
|
40
42
|
|
|
41
43
|
```sh
|
|
42
44
|
npm ci
|
|
43
45
|
npm test
|
|
44
46
|
npm run build
|
|
45
|
-
npm run e2e
|
|
47
|
+
npm run e2e -- --browser=webkit
|
|
46
48
|
```
|
|
47
49
|
|
|
48
|
-
The browser suite runs against Chromium and
|
|
50
|
+
The browser suite runs against Chromium, Firefox, and WebKit. Install them with `npx playwright install --with-deps chromium firefox webkit`.
|