@docusaurus/plugin-content-docs 3.10.0 → 3.10.1-canary-6593

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.
@@ -131,7 +131,7 @@ Available doc IDs:
131
131
  return undefined;
132
132
  }
133
133
  const id = link
134
- ? findDocByLocalId(link.id)?.id ?? getDoc(link.id).id
134
+ ? (findDocByLocalId(link.id)?.id ?? getDoc(link.id).id)
135
135
  : findConventionalCategoryDocLink()?.id;
136
136
  if (!id) {
137
137
  return undefined;
@@ -93,7 +93,7 @@ async function readVersionNames(siteDir, options) {
93
93
  if (!versionFileContent && options.disableVersioning) {
94
94
  throw new Error(`Docs: using "disableVersioning: true" option on a non-versioned site does not make sense.`);
95
95
  }
96
- const versions = options.disableVersioning ? [] : versionFileContent ?? [];
96
+ const versions = options.disableVersioning ? [] : (versionFileContent ?? []);
97
97
  // We add the current version at the beginning, unless:
98
98
  // - user don't want to; or
99
99
  // - it's already been explicitly added to versions.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "3.10.0",
3
+ "version": "3.10.1-canary-6593",
4
4
  "description": "Docs plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,
@@ -35,24 +35,24 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@docusaurus/core": "3.10.0",
39
- "@docusaurus/logger": "3.10.0",
40
- "@docusaurus/mdx-loader": "3.10.0",
41
- "@docusaurus/module-type-aliases": "3.10.0",
42
- "@docusaurus/theme-common": "3.10.0",
43
- "@docusaurus/types": "3.10.0",
44
- "@docusaurus/utils": "3.10.0",
45
- "@docusaurus/utils-common": "3.10.0",
46
- "@docusaurus/utils-validation": "3.10.0",
38
+ "@docusaurus/core": "3.10.1-canary-6593",
39
+ "@docusaurus/logger": "3.10.1-canary-6593",
40
+ "@docusaurus/mdx-loader": "3.10.1-canary-6593",
41
+ "@docusaurus/module-type-aliases": "3.10.1-canary-6593",
42
+ "@docusaurus/theme-common": "3.10.1-canary-6593",
43
+ "@docusaurus/types": "3.10.1-canary-6593",
44
+ "@docusaurus/utils": "3.10.1-canary-6593",
45
+ "@docusaurus/utils-common": "3.10.1-canary-6593",
46
+ "@docusaurus/utils-validation": "3.10.1-canary-6593",
47
47
  "@types/react-router-config": "^5.0.7",
48
48
  "combine-promises": "^1.1.0",
49
- "fs-extra": "^11.1.1",
49
+ "fs-extra": "^11.2.0",
50
50
  "js-yaml": "^4.1.0",
51
51
  "lodash": "^4.17.21",
52
52
  "schema-dts": "^1.1.2",
53
53
  "tslib": "^2.6.0",
54
54
  "utility-types": "^3.10.0",
55
- "webpack": "^5.88.1"
55
+ "webpack": "^5.106.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/js-yaml": "^4.0.5",
@@ -61,11 +61,11 @@
61
61
  "picomatch": "^2.3.1"
62
62
  },
63
63
  "peerDependencies": {
64
- "react": "^18.0.0 || ^19.0.0",
65
- "react-dom": "^18.0.0 || ^19.0.0"
64
+ "react": "^19.2.5",
65
+ "react-dom": "^19.2.5"
66
66
  },
67
67
  "engines": {
68
- "node": ">=20.0"
68
+ "node": ">=24.14"
69
69
  },
70
- "gitHead": "0d98888a7645a5fb1330c905b75faf868f829f5c"
70
+ "gitHead": "958bdad4e51b2df8d29749d8a6455f39ff85a348"
71
71
  }
@@ -206,7 +206,7 @@ Available doc IDs:
206
206
  return undefined;
207
207
  }
208
208
  const id = link
209
- ? findDocByLocalId(link.id)?.id ?? getDoc(link.id).id
209
+ ? (findDocByLocalId(link.id)?.id ?? getDoc(link.id).id)
210
210
  : findConventionalCategoryDocLink()?.id;
211
211
  if (!id) {
212
212
  return undefined;
@@ -145,7 +145,7 @@ export async function readVersionNames(
145
145
  );
146
146
  }
147
147
 
148
- const versions = options.disableVersioning ? [] : versionFileContent ?? [];
148
+ const versions = options.disableVersioning ? [] : (versionFileContent ?? []);
149
149
 
150
150
  // We add the current version at the beginning, unless:
151
151
  // - user don't want to; or