@vuepress/plugin-pwa 2.0.0-rc.43 → 2.0.0-rc.44
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/lib/node/options.d.ts +2 -2
- package/package.json +5 -5
package/lib/node/options.d.ts
CHANGED
|
@@ -129,14 +129,14 @@ export interface PwaPluginOptions {
|
|
|
129
129
|
/**
|
|
130
130
|
* Update logic
|
|
131
131
|
*
|
|
132
|
-
* - `"
|
|
132
|
+
* - `"disable"`: Do nothing even when new service worker is available. After new service work succeeds installing and starts waiting, it will control page and provide new content in next visit.
|
|
133
133
|
* - `"available"`: Only display update popup when the new service worker is available
|
|
134
134
|
* - `"hint"`: Display a hint to let user choose to refresh immediately. This is helpful when you want users to see new docs immediately.
|
|
135
135
|
* - `"force"`: unregister current service worker immediately then refresh to get new content. **This may affect visiting experiences**!
|
|
136
136
|
*
|
|
137
137
|
* 更新逻辑
|
|
138
138
|
*
|
|
139
|
-
* - `"
|
|
139
|
+
* - `"disable"`: 即使有新的 service worker 也不做任何事情,新的 service work 开始等待后,会在用户下次访问时接管页面,让用户获得新内容。
|
|
140
140
|
* - `"available"`: 仅当新的 service worker 可用时才显示更新弹出窗口
|
|
141
141
|
* - `"hint"`: 显示更新内容可用提示,并允许用户立即刷新。当新的 SW 成功注册后,将转为更新内容就绪弹窗。当你希望用户立即查看新文档时,这很有帮助。
|
|
142
142
|
* - `"force"`: 立即注销当前 Service Worker 然后刷新以获取新内容。**这可能会影响访问体验**!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/plugin-pwa",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.44",
|
|
4
4
|
"description": "VuePress plugin - progressive web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-plugin",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"lib"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
40
|
-
"@vueuse/core": "^11.0
|
|
39
|
+
"@vuepress/helper": "2.0.0-rc.44",
|
|
40
|
+
"@vueuse/core": "^11.1.0",
|
|
41
41
|
"mitt": "^3.0.1",
|
|
42
42
|
"register-service-worker": "^1.7.2",
|
|
43
|
-
"vue": "^3.5.
|
|
43
|
+
"vue": "^3.5.6",
|
|
44
44
|
"workbox-build": "^7.1.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "e450489799bbfbdd015ec52255576144185eb64f"
|
|
53
53
|
}
|