@docusaurus/plugin-sitemap 4.0.0-canary-6952 → 4.0.0-canary-6956

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 CHANGED
@@ -32,9 +32,6 @@ If you still want to emit this sitemap tag, use the ${logger_1.default.code('cre
32
32
  }
33
33
  const PluginOptionSchema = utils_validation_1.Joi.object({
34
34
  // @ts-expect-error: forbidden
35
- cacheTime: utils_validation_1.Joi.forbidden().messages({
36
- 'any.unknown': 'Option `cacheTime` in sitemap config is deprecated. Please remove it.',
37
- }),
38
35
  changefreq: removedOptionSchema('changefreq'),
39
36
  priority: removedOptionSchema('priority'),
40
37
  lastmod: utils_validation_1.Joi.string()
@@ -44,9 +41,6 @@ const PluginOptionSchema = utils_validation_1.Joi.object({
44
41
  ignorePatterns: utils_validation_1.Joi.array()
45
42
  .items(utils_validation_1.Joi.string())
46
43
  .default(exports.DEFAULT_OPTIONS.ignorePatterns),
47
- trailingSlash: utils_validation_1.Joi.forbidden().messages({
48
- 'any.unknown': 'Please use the new Docusaurus global trailingSlash config instead, and the sitemaps plugin will use it.',
49
- }),
50
44
  filename: utils_validation_1.Joi.string().default(exports.DEFAULT_OPTIONS.filename),
51
45
  });
52
46
  function validateOptions({ validate, options, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-sitemap",
3
- "version": "4.0.0-canary-6952",
3
+ "version": "4.0.0-canary-6956",
4
4
  "description": "Simple sitemap generation plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -14,14 +14,14 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
- "@docusaurus/core": "4.0.0-canary-6952",
18
- "@docusaurus/fs": "4.0.0-canary-6952",
19
- "@docusaurus/glob": "4.0.0-canary-6952",
20
- "@docusaurus/logger": "4.0.0-canary-6952",
21
- "@docusaurus/types": "4.0.0-canary-6952",
22
- "@docusaurus/utils": "4.0.0-canary-6952",
23
- "@docusaurus/utils-common": "4.0.0-canary-6952",
24
- "@docusaurus/utils-validation": "4.0.0-canary-6952",
17
+ "@docusaurus/core": "4.0.0-canary-6956",
18
+ "@docusaurus/fs": "4.0.0-canary-6956",
19
+ "@docusaurus/glob": "4.0.0-canary-6956",
20
+ "@docusaurus/logger": "4.0.0-canary-6956",
21
+ "@docusaurus/types": "4.0.0-canary-6956",
22
+ "@docusaurus/utils": "4.0.0-canary-6956",
23
+ "@docusaurus/utils-common": "4.0.0-canary-6956",
24
+ "@docusaurus/utils-validation": "4.0.0-canary-6956",
25
25
  "lodash": "^4.18.1",
26
26
  "sitemap": "^9.0.1",
27
27
  "tslib": "^2.8.1"
package/src/options.ts CHANGED
@@ -79,11 +79,6 @@ If you still want to emit this sitemap tag, use the ${logger.code(
79
79
 
80
80
  const PluginOptionSchema = Joi.object<PluginOptions>({
81
81
  // @ts-expect-error: forbidden
82
- cacheTime: Joi.forbidden().messages({
83
- 'any.unknown':
84
- 'Option `cacheTime` in sitemap config is deprecated. Please remove it.',
85
- }),
86
-
87
82
  changefreq: removedOptionSchema('changefreq'),
88
83
  priority: removedOptionSchema('priority'),
89
84
 
@@ -96,10 +91,6 @@ const PluginOptionSchema = Joi.object<PluginOptions>({
96
91
  ignorePatterns: Joi.array()
97
92
  .items(Joi.string())
98
93
  .default(DEFAULT_OPTIONS.ignorePatterns),
99
- trailingSlash: Joi.forbidden().messages({
100
- 'any.unknown':
101
- 'Please use the new Docusaurus global trailingSlash config instead, and the sitemaps plugin will use it.',
102
- }),
103
94
  filename: Joi.string().default(DEFAULT_OPTIONS.filename),
104
95
  });
105
96