@docusaurus/core 3.7.0-canary-6223 → 3.7.0-canary-6225

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.
@@ -50,11 +50,15 @@ function getNumberOfThreads(pathnames) {
50
50
  if (typeof ssgEnv_1.SSGWorkerThreadCount !== 'undefined') {
51
51
  return ssgEnv_1.SSGWorkerThreadCount;
52
52
  }
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;
53
59
  return inferNumberOfThreads({
54
60
  pageCount: pathnames.length,
55
- // TODO use "physical CPUs" instead of "logical CPUs" (like Tinypool does)
56
- // See also https://github.com/tinylibs/tinypool/pull/108
57
- cpuCount: os_1.default.cpus().length,
61
+ cpuCount,
58
62
  // These are "magic value" that we should refine based on user feedback
59
63
  // Local tests show that it's not worth spawning new workers for few pages
60
64
  minPagesPerCpu: 100,
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.7.0-canary-6223",
4
+ "version": "3.7.0-canary-6225",
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.7.0-canary-6223",
37
- "@docusaurus/bundler": "3.7.0-canary-6223",
38
- "@docusaurus/logger": "3.7.0-canary-6223",
39
- "@docusaurus/mdx-loader": "3.7.0-canary-6223",
40
- "@docusaurus/utils": "3.7.0-canary-6223",
41
- "@docusaurus/utils-common": "3.7.0-canary-6223",
42
- "@docusaurus/utils-validation": "3.7.0-canary-6223",
36
+ "@docusaurus/babel": "3.7.0-canary-6225",
37
+ "@docusaurus/bundler": "3.7.0-canary-6225",
38
+ "@docusaurus/logger": "3.7.0-canary-6225",
39
+ "@docusaurus/mdx-loader": "3.7.0-canary-6225",
40
+ "@docusaurus/utils": "3.7.0-canary-6225",
41
+ "@docusaurus/utils-common": "3.7.0-canary-6225",
42
+ "@docusaurus/utils-validation": "3.7.0-canary-6225",
43
43
  "boxen": "^6.2.1",
44
44
  "chalk": "^4.1.2",
45
45
  "chokidar": "^3.5.3",
@@ -78,8 +78,8 @@
78
78
  "webpack-merge": "^6.0.1"
79
79
  },
80
80
  "devDependencies": {
81
- "@docusaurus/module-type-aliases": "3.7.0-canary-6223",
82
- "@docusaurus/types": "3.7.0-canary-6223",
81
+ "@docusaurus/module-type-aliases": "3.7.0-canary-6225",
82
+ "@docusaurus/types": "3.7.0-canary-6225",
83
83
  "@total-typescript/shoehorn": "^0.1.2",
84
84
  "@types/detect-port": "^1.3.3",
85
85
  "@types/react-dom": "^18.2.7",
@@ -99,5 +99,5 @@
99
99
  "engines": {
100
100
  "node": ">=18.0"
101
101
  },
102
- "gitHead": "aa1e344c591e9a480057e0c5d7815bae4d6d1dbd"
102
+ "gitHead": "c3a5b4e8b6cf4191075483d668e969d910eb9fc9"
103
103
  }