diff --git a/community/generate.ts b/community/generate.ts index 1b81913..401a33b 100644 --- a/community/generate.ts +++ b/community/generate.ts @@ -1,9 +1,9 @@ import { readFile, writeFile } from "node:fs/promises"; -import yaml from "js-yaml"; +import { load } from "js-yaml"; import { resourceListSchema } from "./types.ts"; function toModuleString(data: string): string { - const resourceList = resourceListSchema.parse(yaml.load(data)); + const resourceList = resourceListSchema.parse(load(data)); return `// This file is auto-generated. Do not edit directly. import type { ResourceList } from "./types.ts"; diff --git a/package.json b/package.json index 619d01b..c9fd51f 100644 --- a/package.json +++ b/package.json @@ -47,10 +47,9 @@ "@docusaurus/module-type-aliases": "3.10.1", "@docusaurus/theme-classic": "3.10.1", "@docusaurus/types": "3.10.1", - "@types/js-yaml": "4.0.9", "@types/node": "24.13.2", "@types/react": "19.2.17", - "js-yaml": "4.3.0", + "js-yaml": "5.2.0", "lefthook": "2.1.9", "prettier": "3.9.4", "typescript": "7.0.1-rc", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 05546ab..aab6448 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -50,9 +50,6 @@ importers: '@docusaurus/types': specifier: 3.10.1 version: 3.10.1(@swc/core@1.15.40)(postcss@8.5.15)(react-dom@19.2.7(react@19.2.7))(react@19.2.7) - '@types/js-yaml': - specifier: 4.0.9 - version: 4.0.9 '@types/node': specifier: 24.13.2 version: 24.13.2 @@ -60,8 +57,8 @@ importers: specifier: 19.2.17 version: 19.2.17 js-yaml: - specifier: 4.3.0 - version: 4.3.0 + specifier: 5.2.0 + version: 5.2.0 lefthook: specifier: 2.1.9 version: 2.1.9 @@ -1992,9 +1989,6 @@ packages: '@types/istanbul-reports@3.0.4': resolution: {integrity: sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==} - '@types/js-yaml@4.0.9': - resolution: {integrity: sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==} - '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -2013,9 +2007,6 @@ packages: '@types/node@17.0.45': resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==} - '@types/node@24.12.4': - resolution: {integrity: sha512-GUUEShf+PBCGW2KaXwcIt3Yk+e3pkKwWKb9GSyM9WQVE+ep2jzmHdGsHzu4wgcZy5fN9FBdVzjpBQsYlpfpgLA==} - '@types/node@24.13.2': resolution: {integrity: sha512-fRa09kZTgu8o71KFcDjUFuc7F+dEbZYZmkI0mg5YBTRs0yMKjYHsq/c0urDKeDb+D5qVgXOdFcuu+DZPKOITwA==} @@ -3680,6 +3671,10 @@ packages: resolution: {integrity: sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==} hasBin: true + js-yaml@5.2.0: + resolution: {integrity: sha512-YeLUMlvR4Ou1B119LIaM0r65JvbOBooJDc9yEu0dClb/uSC5P4FrLU8OCCz/HXWvtPoIrR0dRzABTjo1sTN9Bw==} + hasBin: true + jsesc@3.1.0: resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==} engines: {node: '>=6'} @@ -5579,9 +5574,6 @@ packages: engines: {node: '>=16.20.0'} hasBin: true - undici-types@7.16.0: - resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - undici-types@7.18.2: resolution: {integrity: sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w==} @@ -8912,8 +8904,6 @@ snapshots: dependencies: '@types/istanbul-lib-report': 3.0.3 - '@types/js-yaml@4.0.9': {} - '@types/json-schema@7.0.15': {} '@types/mdast@4.0.4': @@ -8928,10 +8918,6 @@ snapshots: '@types/node@17.0.45': {} - '@types/node@24.12.4': - dependencies: - undici-types: 7.16.0 - '@types/node@24.13.2': dependencies: undici-types: 7.18.2 @@ -10663,7 +10649,7 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 24.12.4 + '@types/node': 24.13.2 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -10695,6 +10681,10 @@ snapshots: dependencies: argparse: 2.0.1 + js-yaml@5.2.0: + dependencies: + argparse: 2.0.1 + jsesc@3.1.0: {} json-buffer@3.0.1: {} @@ -12864,8 +12854,6 @@ snapshots: '@typescript/typescript-win32-arm64': 7.0.1-rc '@typescript/typescript-win32-x64': 7.0.1-rc - undici-types@7.16.0: {} - undici-types@7.18.2: {} unicode-canonical-property-names-ecmascript@2.0.1: {}