From 2e4020c2949c4099f4794b326fce64a5b776214a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 17:23:14 +0000 Subject: [PATCH 1/2] fix: update dependency read-yaml-file to v3 --- @commitlint/config-pnpm-scopes/package.json | 2 +- pnpm-lock.yaml | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/@commitlint/config-pnpm-scopes/package.json b/@commitlint/config-pnpm-scopes/package.json index 4cc3a5086a..a84c7f3ca2 100644 --- a/@commitlint/config-pnpm-scopes/package.json +++ b/@commitlint/config-pnpm-scopes/package.json @@ -41,7 +41,7 @@ }, "dependencies": { "@pnpm/read-project-manifest": "^5.0.10", - "read-yaml-file": "^2.1.0" + "read-yaml-file": "^3.0.0" }, "devDependencies": { "@commitlint/test": "workspace:^", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4e4a18b96f..b729f70ee7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -245,8 +245,8 @@ importers: specifier: ^5.0.10 version: 5.0.11 read-yaml-file: - specifier: ^2.1.0 - version: 2.1.0 + specifier: ^3.0.0 + version: 3.0.0 devDependencies: '@commitlint/test': specifier: workspace:^ @@ -4355,6 +4355,10 @@ packages: resolution: {integrity: sha512-UkRNRIwnhG+y7hpqnycCL/xbTk7+ia9VuVTC0S+zVbwd65DI9eUpRMfsWIGrCWxTU/mi+JW8cHQCrv+zfCbEPQ==} engines: {node: '>=10.13'} + read-yaml-file@3.0.0: + resolution: {integrity: sha512-7urDNDyx3oJt9NGkymzT3qudju76BoJhT6ICWclx6274zxMeSUOhyiceHscSBk4Lfbs0IYpjOjUwLkaOzrsJdQ==} + engines: {node: '>=22.13'} + read@4.1.0: resolution: {integrity: sha512-uRfX6K+f+R8OOrYScaM3ixPY4erg69f8DN6pgTvMcA9iRc8iDhwrA4m3Yu8YYKsXJgVvum+m8PkRboZwwuLzYA==} engines: {node: ^18.17.0 || >=20.5.0} @@ -4634,6 +4638,10 @@ packages: resolution: {integrity: sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==} engines: {node: '>=8'} + strip-bom@5.0.0: + resolution: {integrity: sha512-p+byADHF7SzEcVnLvc/r3uognM1hUhObuHXxJcgLCfD194XAkaLbjq3Wzb0N5G2tgIjH0dgT708Z51QxMeu60A==} + engines: {node: '>=12'} + strip-comments-strings@1.2.0: resolution: {integrity: sha512-zwF4bmnyEjZwRhaak9jUWNxc0DoeKBJ7lwSN/LEc8dQXZcUFG6auaaTQJokQWXopLdM3iTx01nQT8E4aL29DAQ==} @@ -8858,6 +8866,11 @@ snapshots: js-yaml: 4.1.1 strip-bom: 4.0.0 + read-yaml-file@3.0.0: + dependencies: + js-yaml: 4.1.1 + strip-bom: 5.0.0 + read@4.1.0: dependencies: mute-stream: 2.0.0 @@ -9158,6 +9171,8 @@ snapshots: strip-bom@4.0.0: {} + strip-bom@5.0.0: {} + strip-comments-strings@1.2.0: {} strip-final-newline@2.0.0: {} From de2f8318ecc9761d6836dd608218b6c551e4b5f6 Mon Sep 17 00:00:00 2001 From: escapedcat Date: Sun, 24 May 2026 19:53:20 +0200 Subject: [PATCH 2/2] fix(config-pnpm-scopes): adapt to read-yaml-file v3 named export read-yaml-file v3 drops the CJS default export in favour of named ESM exports; use `readYamlFile` directly instead of `.default`. Co-Authored-By: Claude Opus 4.7 (1M context) --- @commitlint/config-pnpm-scopes/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/@commitlint/config-pnpm-scopes/index.ts b/@commitlint/config-pnpm-scopes/index.ts index fbabdaf54e..b187a21872 100644 --- a/@commitlint/config-pnpm-scopes/index.ts +++ b/@commitlint/config-pnpm-scopes/index.ts @@ -1,9 +1,8 @@ import path from "node:path"; import { glob } from "node:fs/promises"; -import readYamlFileModule from "read-yaml-file"; +import { readYamlFile } from "read-yaml-file"; import { readExactProjectManifest } from "@pnpm/read-project-manifest"; -const readYamlFile = readYamlFileModule.default; export default { utils: { getProjects },