@docusaurus/plugin-content-docs 4.0.0-canary-6817 → 4.0.0-canary-6820

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.
@@ -16,7 +16,7 @@ const path_1 = tslib_1.__importDefault(require("path"));
16
16
  const lodash_1 = tslib_1.__importDefault(require("lodash"));
17
17
  const logger_1 = tslib_1.__importDefault(require("@docusaurus/logger"));
18
18
  const utils_1 = require("@docusaurus/utils");
19
- const js_yaml_1 = tslib_1.__importDefault(require("js-yaml"));
19
+ const Yaml = tslib_1.__importStar(require("js-yaml"));
20
20
  const combine_promises_1 = tslib_1.__importDefault(require("combine-promises"));
21
21
  const validation_1 = require("./validation");
22
22
  const normalization_1 = require("./normalization");
@@ -49,7 +49,7 @@ async function readCategoriesMetadata(contentPath) {
49
49
  }
50
50
  const content = await fs_extra_1.default.readFile(path_1.default.join(contentPath, filePath), 'utf-8');
51
51
  try {
52
- return (0, validation_1.validateCategoryMetadataFile)(js_yaml_1.default.load(content));
52
+ return (0, validation_1.validateCategoryMetadataFile)(Yaml.load(content));
53
53
  }
54
54
  catch (err) {
55
55
  logger_1.default.error `The docs sidebar category metadata file path=${filePath} looks invalid!`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "4.0.0-canary-6817",
3
+ "version": "4.0.0-canary-6820",
4
4
  "description": "Docs plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,
@@ -35,19 +35,19 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@docusaurus/core": "4.0.0-canary-6817",
39
- "@docusaurus/logger": "4.0.0-canary-6817",
40
- "@docusaurus/mdx-loader": "4.0.0-canary-6817",
41
- "@docusaurus/module-type-aliases": "4.0.0-canary-6817",
42
- "@docusaurus/theme-common": "4.0.0-canary-6817",
43
- "@docusaurus/types": "4.0.0-canary-6817",
44
- "@docusaurus/utils": "4.0.0-canary-6817",
45
- "@docusaurus/utils-common": "4.0.0-canary-6817",
46
- "@docusaurus/utils-validation": "4.0.0-canary-6817",
38
+ "@docusaurus/core": "4.0.0-canary-6820",
39
+ "@docusaurus/logger": "4.0.0-canary-6820",
40
+ "@docusaurus/mdx-loader": "4.0.0-canary-6820",
41
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6820",
42
+ "@docusaurus/theme-common": "4.0.0-canary-6820",
43
+ "@docusaurus/types": "4.0.0-canary-6820",
44
+ "@docusaurus/utils": "4.0.0-canary-6820",
45
+ "@docusaurus/utils-common": "4.0.0-canary-6820",
46
+ "@docusaurus/utils-validation": "4.0.0-canary-6820",
47
47
  "@types/react-router-config": "^5.0.11",
48
48
  "combine-promises": "^1.2.0",
49
49
  "fs-extra": "^11.4.0",
50
- "js-yaml": "^4.3.2",
50
+ "js-yaml": "^5.4.1",
51
51
  "lodash": "^4.18.1",
52
52
  "schema-dts": "^1.1.5",
53
53
  "tslib": "^2.8.1",
@@ -55,7 +55,6 @@
55
55
  "webpack": "^5.111.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/js-yaml": "^4.0.9",
59
58
  "@types/picomatch": "^2.3.4",
60
59
  "commander": "^5.1.0",
61
60
  "picomatch": "^2.3.2"
@@ -65,7 +64,7 @@
65
64
  "react-dom": "^19.3.0"
66
65
  },
67
66
  "engines": {
68
- "node": ">=24.14"
67
+ "node": ">=26.9"
69
68
  },
70
- "gitHead": "38c20529ba3a20243f31ce7a56764e969bf9ba7b"
69
+ "gitHead": "548b203e01abc1df60907285520e3b000a9af3eb"
71
70
  }
@@ -10,7 +10,7 @@ import path from 'path';
10
10
  import _ from 'lodash';
11
11
  import logger from '@docusaurus/logger';
12
12
  import {loadFreshModule, Globby} from '@docusaurus/utils';
13
- import Yaml from 'js-yaml';
13
+ import * as Yaml from 'js-yaml';
14
14
  import combinePromises from 'combine-promises';
15
15
  import {validateSidebars, validateCategoryMetadataFile} from './validation';
16
16
  import {normalizeSidebars} from './normalization';