@docusaurus/plugin-sitemap 4.0.0-canary-7002 → 4.0.0-canary-7027
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/createSitemapItem.js +1 -1
- package/lib/options.js +1 -1
- package/lib/types.d.ts +3 -3
- package/package.json +11 -11
- package/src/createSitemapItem.ts +1 -1
- package/src/options.ts +1 -1
- package/src/types.ts +3 -3
package/lib/createSitemapItem.js
CHANGED
|
@@ -33,7 +33,7 @@ async function readVcsLastUpdatedAt(sourceFilePath, vcs) {
|
|
|
33
33
|
async function getRouteLastUpdatedAt(route, vcs) {
|
|
34
34
|
// Important to bail-out early here
|
|
35
35
|
// This can lead to duplicated VCS calls and performance problems
|
|
36
|
-
// See https://github.com/
|
|
36
|
+
// See https://github.com/meta/docusaurus/pull/11211
|
|
37
37
|
if (route.metadata?.lastUpdatedAt === null) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
package/lib/options.js
CHANGED
|
@@ -21,7 +21,7 @@ exports.DEFAULT_OPTIONS = {
|
|
|
21
21
|
// Removed in Docusaurus v4: Google ignores <changefreq> and <priority>,
|
|
22
22
|
// and the same value for all routes does not make sense anyway
|
|
23
23
|
// Users can still emit them per-route with createSitemapItems()
|
|
24
|
-
// See also https://github.com/
|
|
24
|
+
// See also https://github.com/meta/docusaurus/issues/2604
|
|
25
25
|
function removedOptionSchema(option) {
|
|
26
26
|
return utils_validation_1.Joi.any()
|
|
27
27
|
.forbidden()
|
package/lib/types.d.ts
CHANGED
|
@@ -26,14 +26,14 @@ export type SitemapItem = {
|
|
|
26
26
|
* - YYYY-MM-DD
|
|
27
27
|
*
|
|
28
28
|
* Note: as of 2024, Google uses this value for crawling priority.
|
|
29
|
-
* See also https://github.com/
|
|
29
|
+
* See also https://github.com/meta/docusaurus/issues/2604
|
|
30
30
|
*/
|
|
31
31
|
lastmod?: string | null;
|
|
32
32
|
/**
|
|
33
33
|
* One of the specified enum values
|
|
34
34
|
*
|
|
35
35
|
* Note: as of 2024, Google ignores this value.
|
|
36
|
-
* See also https://github.com/
|
|
36
|
+
* See also https://github.com/meta/docusaurus/issues/2604
|
|
37
37
|
*/
|
|
38
38
|
changefreq?: ChangeFreq | null;
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ export type SitemapItem = {
|
|
|
42
42
|
* The default priority of a page is 0.5.
|
|
43
43
|
*
|
|
44
44
|
* Note: as of 2024, Google ignores this value.
|
|
45
|
-
* See also https://github.com/
|
|
45
|
+
* See also https://github.com/meta/docusaurus/issues/2604
|
|
46
46
|
*/
|
|
47
47
|
priority?: number | null;
|
|
48
48
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/plugin-sitemap",
|
|
3
|
-
"version": "4.0.0-canary-
|
|
3
|
+
"version": "4.0.0-canary-7027",
|
|
4
4
|
"description": "Simple sitemap generation plugin for Docusaurus.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -9,19 +9,19 @@
|
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/meta/docusaurus.git",
|
|
13
13
|
"directory": "packages/docusaurus-plugin-sitemap"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@docusaurus/core": "4.0.0-canary-
|
|
18
|
-
"@docusaurus/fs": "4.0.0-canary-
|
|
19
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
20
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
21
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
22
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
23
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
24
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
17
|
+
"@docusaurus/core": "4.0.0-canary-7027",
|
|
18
|
+
"@docusaurus/fs": "4.0.0-canary-7027",
|
|
19
|
+
"@docusaurus/glob": "4.0.0-canary-7027",
|
|
20
|
+
"@docusaurus/logger": "4.0.0-canary-7027",
|
|
21
|
+
"@docusaurus/types": "4.0.0-canary-7027",
|
|
22
|
+
"@docusaurus/utils": "4.0.0-canary-7027",
|
|
23
|
+
"@docusaurus/utils-common": "4.0.0-canary-7027",
|
|
24
|
+
"@docusaurus/utils-validation": "4.0.0-canary-7027",
|
|
25
25
|
"lodash": "^4.18.1",
|
|
26
26
|
"sitemap": "^9.0.1",
|
|
27
27
|
"tslib": "^2.8.1"
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"react-dom": "^19.3.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|
|
37
|
-
"node": ">=
|
|
37
|
+
"node": ">=26.13"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc",
|
package/src/createSitemapItem.ts
CHANGED
|
@@ -43,7 +43,7 @@ async function getRouteLastUpdatedAt(
|
|
|
43
43
|
): Promise<number | null | undefined> {
|
|
44
44
|
// Important to bail-out early here
|
|
45
45
|
// This can lead to duplicated VCS calls and performance problems
|
|
46
|
-
// See https://github.com/
|
|
46
|
+
// See https://github.com/meta/docusaurus/pull/11211
|
|
47
47
|
if (route.metadata?.lastUpdatedAt === null) {
|
|
48
48
|
return null;
|
|
49
49
|
}
|
package/src/options.ts
CHANGED
|
@@ -61,7 +61,7 @@ export const DEFAULT_OPTIONS: PluginOptions = {
|
|
|
61
61
|
// Removed in Docusaurus v4: Google ignores <changefreq> and <priority>,
|
|
62
62
|
// and the same value for all routes does not make sense anyway
|
|
63
63
|
// Users can still emit them per-route with createSitemapItems()
|
|
64
|
-
// See also https://github.com/
|
|
64
|
+
// See also https://github.com/meta/docusaurus/issues/2604
|
|
65
65
|
function removedOptionSchema(option: 'changefreq' | 'priority') {
|
|
66
66
|
return Joi.any()
|
|
67
67
|
.forbidden()
|
package/src/types.ts
CHANGED
|
@@ -45,7 +45,7 @@ export type SitemapItem = {
|
|
|
45
45
|
* - YYYY-MM-DD
|
|
46
46
|
*
|
|
47
47
|
* Note: as of 2024, Google uses this value for crawling priority.
|
|
48
|
-
* See also https://github.com/
|
|
48
|
+
* See also https://github.com/meta/docusaurus/issues/2604
|
|
49
49
|
*/
|
|
50
50
|
lastmod?: string | null;
|
|
51
51
|
|
|
@@ -53,7 +53,7 @@ export type SitemapItem = {
|
|
|
53
53
|
* One of the specified enum values
|
|
54
54
|
*
|
|
55
55
|
* Note: as of 2024, Google ignores this value.
|
|
56
|
-
* See also https://github.com/
|
|
56
|
+
* See also https://github.com/meta/docusaurus/issues/2604
|
|
57
57
|
*/
|
|
58
58
|
changefreq?: ChangeFreq | null;
|
|
59
59
|
|
|
@@ -63,7 +63,7 @@ export type SitemapItem = {
|
|
|
63
63
|
* The default priority of a page is 0.5.
|
|
64
64
|
*
|
|
65
65
|
* Note: as of 2024, Google ignores this value.
|
|
66
|
-
* See also https://github.com/
|
|
66
|
+
* See also https://github.com/meta/docusaurus/issues/2604
|
|
67
67
|
*/
|
|
68
68
|
priority?: number | null;
|
|
69
69
|
};
|