From: Julien Déramond Date: Thu, 25 Jun 2026 18:12:03 +0000 (+0200) Subject: Bump js-yaml from 4.2.0 to 5.1.0 (#42555) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=026080511ffb2e524798b332864c62c6a5602385;p=thirdparty%2Fbootstrap.git Bump js-yaml from 4.2.0 to 5.1.0 (#42555) --- diff --git a/package-lock.json b/package-lock.json index 2890702311..5290c881da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,7 +60,7 @@ "image-size": "^2.0.2", "ip": "^2.0.1", "jasmine": "^6.3.0", - "js-yaml": "^4.2.0", + "js-yaml": "^5.1.0", "karma": "^6.4.4", "karma-browserstack-launcher": "1.4.0", "karma-chrome-launcher": "^3.2.0", @@ -148,6 +148,29 @@ "unified": "^11.0.5" } }, + "node_modules/@astrojs/internal-helpers/node_modules/js-yaml": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", + "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@astrojs/language-server": { "version": "2.16.9", "resolved": "https://registry.npmjs.org/@astrojs/language-server/-/language-server-2.16.9.tgz", @@ -7276,6 +7299,29 @@ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" } }, + "node_modules/astro/node_modules/js-yaml": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", + "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/astro/node_modules/semver": { "version": "7.7.4", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", @@ -8400,6 +8446,29 @@ } } }, + "node_modules/cosmiconfig/node_modules/js-yaml": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", + "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/puzrin" + }, + { + "type": "github", + "url": "https://github.com/sponsors/nodeca" + } + ], + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/cross-env": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/cross-env/-/cross-env-10.1.0.tgz", @@ -12808,9 +12877,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", - "integrity": "sha512-ePWsvanv0DWuDRsW8dnt+R4jQ31SCRCQ7hhNcPXZPsoBZiemuZNYGf7adZdqX2D86j6rvKp3RpCxVTSb8WQlOw==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-5.1.0.tgz", + "integrity": "sha512-s8VA5jkR8f22S3NAXmhKPFqGUduqZGlsufabVOgN14iTdw/RXcym7bKkbwjxLK9Yw2lEvvmJjFp119+KPeo8Kg==", "dev": true, "funding": [ { @@ -12827,7 +12896,7 @@ "argparse": "^2.0.1" }, "bin": { - "js-yaml": "bin/js-yaml.js" + "js-yaml": "bin/js-yaml.mjs" } }, "node_modules/jsdoc-type-pratt-parser": { diff --git a/package.json b/package.json index c4f25b1180..15603b01b9 100644 --- a/package.json +++ b/package.json @@ -164,7 +164,7 @@ "image-size": "^2.0.2", "ip": "^2.0.1", "jasmine": "^6.3.0", - "js-yaml": "^4.2.0", + "js-yaml": "^5.1.0", "karma": "^6.4.4", "karma-browserstack-launcher": "1.4.0", "karma-chrome-launcher": "^3.2.0", diff --git a/site/src/libs/config.ts b/site/src/libs/config.ts index 869e8b2559..15ae1411e9 100644 --- a/site/src/libs/config.ts +++ b/site/src/libs/config.ts @@ -1,5 +1,5 @@ import fs from 'node:fs' -import yaml from 'js-yaml' +import { load as yamlLoad } from 'js-yaml' import { z } from 'zod' import { zPrefixedVersionSemver, zVersionMajorMinor, zVersionSemver } from './validation' @@ -62,7 +62,7 @@ export function getConfig(): Config { try { // Load the config from the `config.yml` file. - const rawConfig = yaml.load(fs.readFileSync('./config.yml', 'utf8')) + const rawConfig = yamlLoad(fs.readFileSync('./config.yml', 'utf8')) // Parse the config using the config schema to validate its content and get back a fully typed config object. config = configSchema.parse(rawConfig) diff --git a/site/src/libs/data.ts b/site/src/libs/data.ts index 4a9d0f0b3e..d091ced8d5 100644 --- a/site/src/libs/data.ts +++ b/site/src/libs/data.ts @@ -1,5 +1,5 @@ import fs from 'node:fs' -import yaml from 'js-yaml' +import { load as yamlLoad } from 'js-yaml' import { z } from 'zod' import { zLanguageCode, zPxSizeOrEmpty, zVersionMajorMinor, zVersionSemver } from './validation' import { capitalizeFirstLetter } from './utils' @@ -136,7 +136,7 @@ export function getData(type: TType): z.infer<(typeof da try { // Load the data from the yml file. - const rawData = yaml.load(fs.readFileSync(dataPath, 'utf8')) + const rawData = yamlLoad(fs.readFileSync(dataPath, 'utf8')) // Parse the data using the data schema to validate its content and get back a fully typed data object. const parsedData = dataDefinitions[type].parse(rawData) as z.infer<(typeof dataDefinitions)[TType]>