@docusaurus/plugin-pwa 4.0.0-canary-6953 → 4.0.0-canary-6958
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/options.js +0 -4
- package/package.json +10 -10
- package/src/options.ts +0 -5
package/lib/options.js
CHANGED
|
@@ -35,10 +35,6 @@ const optionsSchema = utils_validation_1.Joi.object({
|
|
|
35
35
|
swRegister: utils_validation_1.Joi.alternatives()
|
|
36
36
|
.try(utils_validation_1.Joi.string(), utils_validation_1.Joi.bool().valid(false))
|
|
37
37
|
.default(DEFAULT_OPTIONS.swRegister),
|
|
38
|
-
// @ts-expect-error: forbidden
|
|
39
|
-
reloadPopup: utils_validation_1.Joi.any().forbidden().messages({
|
|
40
|
-
'any.unknown': 'The reloadPopup option is removed in favor of swizzling. See https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-pwa#customizing-reload-popup for how to customize the reload popup using swizzling.',
|
|
41
|
-
}),
|
|
42
38
|
});
|
|
43
39
|
function validateOptions({ validate, options, }) {
|
|
44
40
|
return validate(optionsSchema, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-pwa",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-6958",
|
|
4
4
|
"description": "Docusaurus Plugin to add PWA support.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/plugin-pwa.d.ts",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
18
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
19
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
20
|
-
"@docusaurus/theme-common": "4.0.0-canary-
|
|
21
|
-
"@docusaurus/theme-translations": "4.0.0-canary-
|
|
22
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
23
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
24
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
17
|
+
"@docusaurus/bundler": "4.0.0-canary-6958",
|
|
18
|
+
"@docusaurus/core": "4.0.0-canary-6958",
|
|
19
|
+
"@docusaurus/logger": "4.0.0-canary-6958",
|
|
20
|
+
"@docusaurus/theme-common": "4.0.0-canary-6958",
|
|
21
|
+
"@docusaurus/theme-translations": "4.0.0-canary-6958",
|
|
22
|
+
"@docusaurus/types": "4.0.0-canary-6958",
|
|
23
|
+
"@docusaurus/utils": "4.0.0-canary-6958",
|
|
24
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6958",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
26
26
|
"tslib": "^2.8.1",
|
|
27
27
|
"webpack": "^5.111.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"workbox-window": "^7.4.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
33
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6958",
|
|
34
34
|
"@types/react-dom": "^19.3.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
package/src/options.ts
CHANGED
|
@@ -48,11 +48,6 @@ const optionsSchema = Joi.object<PluginOptions>({
|
|
|
48
48
|
swRegister: Joi.alternatives()
|
|
49
49
|
.try(Joi.string(), Joi.bool().valid(false))
|
|
50
50
|
.default(DEFAULT_OPTIONS.swRegister),
|
|
51
|
-
// @ts-expect-error: forbidden
|
|
52
|
-
reloadPopup: Joi.any().forbidden().messages({
|
|
53
|
-
'any.unknown':
|
|
54
|
-
'The reloadPopup option is removed in favor of swizzling. See https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-pwa#customizing-reload-popup for how to customize the reload popup using swizzling.',
|
|
55
|
-
}),
|
|
56
51
|
});
|
|
57
52
|
|
|
58
53
|
export function validateOptions({
|