@docusaurus/core 3.10.1-canary-6642 → 3.10.1-canary-6644
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/server/plugins/plugins.js +1 -9
- package/lib/ssg/ssgExecutor.js +1 -5
- package/package.json +11 -11
|
@@ -169,15 +169,7 @@ async function reloadPlugin({ pluginIdentifier, plugins: previousPlugins, contex
|
|
|
169
169
|
plugin: previousPlugin,
|
|
170
170
|
context,
|
|
171
171
|
});
|
|
172
|
-
|
|
173
|
-
// TODO Docusaurus v4 - upgrade to Node 20, use array.with()
|
|
174
|
-
const plugins = previousPlugins.with(
|
|
175
|
-
previousPlugins.indexOf(previousPlugin),
|
|
176
|
-
plugin,
|
|
177
|
-
);
|
|
178
|
-
*/
|
|
179
|
-
const plugins = [...previousPlugins];
|
|
180
|
-
plugins[previousPlugins.indexOf(previousPlugin)] = plugin;
|
|
172
|
+
const plugins = previousPlugins.with(previousPlugins.indexOf(previousPlugin), plugin);
|
|
181
173
|
const allContentLoadedResult = await executeAllPluginsAllContentLoaded({
|
|
182
174
|
plugins,
|
|
183
175
|
context,
|
package/lib/ssg/ssgExecutor.js
CHANGED
|
@@ -51,11 +51,7 @@ function getNumberOfThreads(pathnames) {
|
|
|
51
51
|
return ssgEnv_1.SSGWorkerThreadCount;
|
|
52
52
|
}
|
|
53
53
|
// See also https://github.com/tinylibs/tinypool/pull/108
|
|
54
|
-
const cpuCount =
|
|
55
|
-
// TODO Docusaurus v4: bump node, availableParallelism() now always exists
|
|
56
|
-
typeof os_1.default.availableParallelism === 'function'
|
|
57
|
-
? os_1.default.availableParallelism()
|
|
58
|
-
: os_1.default.cpus().length;
|
|
54
|
+
const cpuCount = os_1.default.availableParallelism();
|
|
59
55
|
return inferNumberOfThreads({
|
|
60
56
|
pageCount: pathnames.length,
|
|
61
57
|
cpuCount,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "3.10.1-canary-
|
|
4
|
+
"version": "3.10.1-canary-6644",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@docusaurus/babel": "3.10.1-canary-
|
|
37
|
-
"@docusaurus/bundler": "3.10.1-canary-
|
|
38
|
-
"@docusaurus/logger": "3.10.1-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "3.10.1-canary-
|
|
40
|
-
"@docusaurus/utils": "3.10.1-canary-
|
|
41
|
-
"@docusaurus/utils-common": "3.10.1-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "3.10.1-canary-
|
|
36
|
+
"@docusaurus/babel": "3.10.1-canary-6644",
|
|
37
|
+
"@docusaurus/bundler": "3.10.1-canary-6644",
|
|
38
|
+
"@docusaurus/logger": "3.10.1-canary-6644",
|
|
39
|
+
"@docusaurus/mdx-loader": "3.10.1-canary-6644",
|
|
40
|
+
"@docusaurus/utils": "3.10.1-canary-6644",
|
|
41
|
+
"@docusaurus/utils-common": "3.10.1-canary-6644",
|
|
42
|
+
"@docusaurus/utils-validation": "3.10.1-canary-6644",
|
|
43
43
|
"boxen": "^6.2.1",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"chokidar": "^3.5.3",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"webpack-merge": "^6.0.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@docusaurus/module-type-aliases": "3.10.1-canary-
|
|
81
|
-
"@docusaurus/types": "3.10.1-canary-
|
|
80
|
+
"@docusaurus/module-type-aliases": "3.10.1-canary-6644",
|
|
81
|
+
"@docusaurus/types": "3.10.1-canary-6644",
|
|
82
82
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
83
83
|
"@types/detect-port": "^1.3.3",
|
|
84
84
|
"@types/react-dom": "^19.2.3",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"engines": {
|
|
105
105
|
"node": ">=24.14"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "d1ea72c43cafd70c1c777436f6c8e3a5d9fa0a34"
|
|
108
108
|
}
|