@pwa-platform/sw-runtime 0.2.3 → 0.2.5
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 +1 -1
- package/package.json +7 -5
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ const worker = injectWorkerConfig(workerTemplate, platformConfig);
|
|
|
69
69
|
|
|
70
70
|
`SKIP_WAITING_MESSAGE` 是页面确认更新时发送的唯一接管消息。`isSkipWaitingMessage()`、`isOfflineWriteMessage()`、`isRuntimeCacheServedMessage()` 等守卫只接受闭合的纯数据对象,避免调用不可信 accessor。
|
|
71
71
|
|
|
72
|
-
`checkPushPayload()`/`checkPushPayloadText()`/`validatePushPayload()` 只验证 payload 契约;它们不代表 `@pwa-platform/push` 已公开。当前正式版(0.2.
|
|
72
|
+
`checkPushPayload()`/`checkPushPayloadText()`/`validatePushPayload()` 只验证 payload 契约;它们不代表 `@pwa-platform/push` 已公开。当前正式版(0.2.5)的公开接入面不包含 Push 订阅与后端发送服务。
|
|
73
73
|
|
|
74
74
|
## 安全边界
|
|
75
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pwa-platform/sw-runtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"description": "Service worker and recovery runtime for PWA Platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"dist"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@pwa-platform/contracts": "0.2.
|
|
42
|
-
"@pwa-platform/engine-workbox": "0.2.
|
|
41
|
+
"@pwa-platform/contracts": "0.2.5",
|
|
42
|
+
"@pwa-platform/engine-workbox": "0.2.5"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@playwright/test": "1.63.0",
|
|
46
46
|
"@types/node": "24.13.4",
|
|
47
47
|
"vite": "8.3.0",
|
|
48
|
-
"@pwa-platform/
|
|
49
|
-
"@pwa-platform/
|
|
48
|
+
"@pwa-platform/browser-test-harness": "0.0.0",
|
|
49
|
+
"@pwa-platform/core": "0.2.5"
|
|
50
50
|
},
|
|
51
51
|
"engines": {
|
|
52
52
|
"node": ">=22.0.0"
|
|
@@ -61,6 +61,8 @@
|
|
|
61
61
|
"test": "vitest run",
|
|
62
62
|
"test:browser": "playwright test",
|
|
63
63
|
"test:browser:engines": "playwright install webkit firefox && playwright test --config playwright.engines.config.ts",
|
|
64
|
+
"test:browser:real": "playwright test --config playwright.real.config.ts",
|
|
65
|
+
"test:browser:android": "playwright test --config playwright.android.config.ts",
|
|
64
66
|
"typecheck": "tsc --noEmit --project tsconfig.json && tsc --noEmit --project tsconfig.worker.json && tsc --noEmit --project tsconfig.browser.json"
|
|
65
67
|
}
|
|
66
68
|
}
|