@docusaurus/core 3.9.2-canary-6540 → 3.9.2-canary-6554

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.
@@ -4,11 +4,4 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
- declare global {
8
- interface NodeModule {
9
- hot?: {
10
- accept: () => void;
11
- };
12
- }
13
- }
14
7
  export {};
@@ -5,9 +5,6 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  declare global {
8
- const __webpack_require__: {
9
- gca: (name: string) => string;
10
- };
11
8
  interface Navigator {
12
9
  connection?: {
13
10
  effectiveType: string;
@@ -5,9 +5,4 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  import Loadable from 'react-loadable';
8
- declare global {
9
- interface NodeRequire {
10
- resolveWeak: (name: string) => number;
11
- }
12
- }
13
8
  export default function ComponentCreator(path: string, hash: string): ReturnType<typeof Loadable>;
@@ -430,24 +430,6 @@ function postProcessDocusaurusConfig(config) {
430
430
  config.future.faster[key] = fasterDefault;
431
431
  }
432
432
  }
433
- // Docusaurus Faster doesn't fully support Yarn PnP :s
434
- // Until we support Rspack + PnP, we simply revert to Webpack with a warning
435
- // See https://github.com/facebook/docusaurus/issues/10787
436
- if (process.versions.pnp) {
437
- if (config.future.faster.rspackBundler) {
438
- logger_1.default.warn(`Docusaurus Faster doesn't fully support the Yarn PnP linker yet.
439
- We recommend to use Yarn node-linker instead.
440
- Docusaurus will still attempt to build your app with Webpack (instead of Rspack) and use slower minimizers.
441
- See also https://github.com/facebook/docusaurus/issues/10787`);
442
- config.future.faster.rspackBundler = false;
443
- config.future.faster.rspackPersistentCache = false;
444
- // This also won't work due to Webpack libs using peerDependencies :s
445
- // This could eventually work if the deps are added at the site level
446
- // TODO Docusaurus v4 clean this up
447
- config.future.faster.lightningCssMinimizer = false;
448
- config.future.faster.swcJsMinimizer = false;
449
- }
450
- }
451
433
  if (config.onBrokenMarkdownLinks) {
452
434
  logger_1.default.warn `The code=${'siteConfig.onBrokenMarkdownLinks'} config option is deprecated and will be removed in Docusaurus v4.
453
435
  Please migrate and move this option to code=${'siteConfig.markdown.hooks.onBrokenMarkdownLinks'} instead.`;
@@ -52,9 +52,7 @@ function getDefaultCalendar(localeStr) {
52
52
  // Not well-supported but server code can infer a calendar from the locale
53
53
  // See https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getCalendars
54
54
  // See https://caniuse.com/mdn-javascript_builtins_intl_locale_getcalendars
55
- const calendars =
56
- // @ts-expect-error: new std method (Bun/JSC/WebKit)
57
- locale.getCalendars?.() ??
55
+ const calendars = locale.getCalendars?.() ??
58
56
  // @ts-expect-error: non-std attribute (V8/Chromium/Node)
59
57
  locale.calendars;
60
58
  if (calendars instanceof Array && calendars[0]) {
@@ -70,7 +68,7 @@ function getDefaultDirection(localeStr) {
70
68
  // TODO Docusaurus v4: remove the fallback to locale.textInfo
71
69
  // @ts-expect-error: The TC39 proposal was updated
72
70
  const textInto = locale.getTextInfo?.() ?? locale.textInfo;
73
- return textInto.direction;
71
+ return textInto.direction ?? 'ltr';
74
72
  }
75
73
  function getDefaultLocaleConfig(locale) {
76
74
  try {
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.9.2-canary-6540",
4
+ "version": "3.9.2-canary-6554",
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.9.2-canary-6540",
37
- "@docusaurus/bundler": "3.9.2-canary-6540",
38
- "@docusaurus/logger": "3.9.2-canary-6540",
39
- "@docusaurus/mdx-loader": "3.9.2-canary-6540",
40
- "@docusaurus/utils": "3.9.2-canary-6540",
41
- "@docusaurus/utils-common": "3.9.2-canary-6540",
42
- "@docusaurus/utils-validation": "3.9.2-canary-6540",
36
+ "@docusaurus/babel": "3.9.2-canary-6554",
37
+ "@docusaurus/bundler": "3.9.2-canary-6554",
38
+ "@docusaurus/logger": "3.9.2-canary-6554",
39
+ "@docusaurus/mdx-loader": "3.9.2-canary-6554",
40
+ "@docusaurus/utils": "3.9.2-canary-6554",
41
+ "@docusaurus/utils-common": "3.9.2-canary-6554",
42
+ "@docusaurus/utils-validation": "3.9.2-canary-6554",
43
43
  "boxen": "^6.2.1",
44
44
  "chalk": "^4.1.2",
45
45
  "chokidar": "^3.5.3",
@@ -62,12 +62,12 @@
62
62
  "prompts": "^2.4.2",
63
63
  "react-helmet-async": "npm:@slorber/react-helmet-async@1.3.0",
64
64
  "react-loadable": "npm:@docusaurus/react-loadable@6.0.0",
65
- "react-loadable-ssr-addon-v5-slorber": "^1.0.1",
65
+ "react-loadable-ssr-addon-v5-slorber": "^1.0.3",
66
66
  "react-router": "^5.3.4",
67
67
  "react-router-config": "^5.1.1",
68
68
  "react-router-dom": "^5.3.4",
69
69
  "semver": "^7.5.4",
70
- "serve-handler": "^6.1.6",
70
+ "serve-handler": "^6.1.7",
71
71
  "tinypool": "^1.0.2",
72
72
  "tslib": "^2.6.0",
73
73
  "update-notifier": "^6.0.2",
@@ -77,8 +77,8 @@
77
77
  "webpack-merge": "^6.0.1"
78
78
  },
79
79
  "devDependencies": {
80
- "@docusaurus/module-type-aliases": "3.9.2-canary-6540",
81
- "@docusaurus/types": "3.9.2-canary-6540",
80
+ "@docusaurus/module-type-aliases": "3.9.2-canary-6554",
81
+ "@docusaurus/types": "3.9.2-canary-6554",
82
82
  "@total-typescript/shoehorn": "^0.1.2",
83
83
  "@types/detect-port": "^1.3.3",
84
84
  "@types/react-dom": "^19.2.3",
@@ -86,6 +86,7 @@
86
86
  "@types/serve-handler": "^6.1.4",
87
87
  "@types/update-notifier": "^6.0.4",
88
88
  "@types/webpack-bundle-analyzer": "^4.7.0",
89
+ "@types/webpack-env": "^1.18.8",
89
90
  "tmp-promise": "^3.0.3",
90
91
  "tree-node-cli": "^1.6.0"
91
92
  },
@@ -103,5 +104,5 @@
103
104
  "engines": {
104
105
  "node": ">=20.0"
105
106
  },
106
- "gitHead": "ea9c92d1468cd3e809c8b920253e16893d36d410"
107
+ "gitHead": "b51031650f63e2c3aa6bcc432f48175750bba2f2"
107
108
  }