@docusaurus/core 4.0.0-canary-6943 → 4.0.0-canary-6945

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.
@@ -258,8 +258,6 @@ function splitBrokenLinks(brokenLinks) {
258
258
  function reportBrokenLinks({ brokenLinks, onBrokenLinks, onBrokenAnchors, }) {
259
259
  // We need to split the broken links reporting in 2 for better granularity
260
260
  // This is because we need to report broken path/anchors independently
261
- // For v3.x retro-compatibility, we can't throw by default for broken anchors
262
- // TODO Docusaurus v4: make onBrokenAnchors throw by default?
263
261
  const { brokenPaths, brokenAnchors } = splitBrokenLinks(brokenLinks);
264
262
  const pathErrorMessage = createBrokenPathsMessage(brokenPaths);
265
263
  if (pathErrorMessage) {
@@ -79,7 +79,7 @@ exports.DEFAULT_CONFIG = {
79
79
  vcs: (0, utils_1.getVcsPreset)('default'),
80
80
  future: exports.DEFAULT_FUTURE_CONFIG,
81
81
  onBrokenLinks: 'throw',
82
- onBrokenAnchors: 'warn', // TODO Docusaurus v4: change to throw
82
+ onBrokenAnchors: 'throw',
83
83
  onDuplicateRoutes: 'warn',
84
84
  plugins: [],
85
85
  themes: [],
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": "4.0.0-canary-6943",
4
+ "version": "4.0.0-canary-6945",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -27,15 +27,15 @@
27
27
  "url": "https://github.com/facebook/docusaurus/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@docusaurus/babel": "4.0.0-canary-6943",
31
- "@docusaurus/bundler": "4.0.0-canary-6943",
32
- "@docusaurus/fs": "4.0.0-canary-6943",
33
- "@docusaurus/glob": "4.0.0-canary-6943",
34
- "@docusaurus/logger": "4.0.0-canary-6943",
35
- "@docusaurus/mdx-loader": "4.0.0-canary-6943",
36
- "@docusaurus/utils": "4.0.0-canary-6943",
37
- "@docusaurus/utils-common": "4.0.0-canary-6943",
38
- "@docusaurus/utils-validation": "4.0.0-canary-6943",
30
+ "@docusaurus/babel": "4.0.0-canary-6945",
31
+ "@docusaurus/bundler": "4.0.0-canary-6945",
32
+ "@docusaurus/fs": "4.0.0-canary-6945",
33
+ "@docusaurus/glob": "4.0.0-canary-6945",
34
+ "@docusaurus/logger": "4.0.0-canary-6945",
35
+ "@docusaurus/mdx-loader": "4.0.0-canary-6945",
36
+ "@docusaurus/utils": "4.0.0-canary-6945",
37
+ "@docusaurus/utils-common": "4.0.0-canary-6945",
38
+ "@docusaurus/utils-validation": "4.0.0-canary-6945",
39
39
  "@rspack/core": "^2.2.3",
40
40
  "@rspack/dev-server": "^2.2.1",
41
41
  "boxen": "^9.0.0",
@@ -68,8 +68,8 @@
68
68
  "webpack-merge": "^6.0.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@docusaurus/module-type-aliases": "4.0.0-canary-6943",
72
- "@docusaurus/types": "4.0.0-canary-6943",
71
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6945",
72
+ "@docusaurus/types": "4.0.0-canary-6945",
73
73
  "@total-typescript/shoehorn": "^0.1.2",
74
74
  "@types/escape-html": "^1.0.4",
75
75
  "@types/history": "^4.7.11",