Skip to content

Commit 3e68669

Browse files
committed
feat: bump js-yaml to v4
1 parent 666aa3a commit 3e68669

File tree

5 files changed

+42
-7
lines changed

5 files changed

+42
-7
lines changed

.pnp.cjs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.yarn/versions/20f8e43c.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
releases:
2+
"@yarnpkg/builder": patch
3+
"@yarnpkg/cli": patch
4+
"@yarnpkg/core": patch
5+
"@yarnpkg/doctor": patch
6+
"@yarnpkg/extensions": patch
7+
"@yarnpkg/nm": patch
8+
"@yarnpkg/parsers": minor
9+
"@yarnpkg/plugin-compat": patch
10+
"@yarnpkg/plugin-constraints": patch
11+
"@yarnpkg/plugin-dlx": patch
12+
"@yarnpkg/plugin-essentials": patch
13+
"@yarnpkg/plugin-exec": patch
14+
"@yarnpkg/plugin-file": patch
15+
"@yarnpkg/plugin-git": patch
16+
"@yarnpkg/plugin-github": patch
17+
"@yarnpkg/plugin-http": patch
18+
"@yarnpkg/plugin-init": patch
19+
"@yarnpkg/plugin-interactive-tools": patch
20+
"@yarnpkg/plugin-jsr": patch
21+
"@yarnpkg/plugin-link": patch
22+
"@yarnpkg/plugin-nm": patch
23+
"@yarnpkg/plugin-npm": patch
24+
"@yarnpkg/plugin-npm-cli": patch
25+
"@yarnpkg/plugin-pack": patch
26+
"@yarnpkg/plugin-patch": patch
27+
"@yarnpkg/plugin-pnp": patch
28+
"@yarnpkg/plugin-pnpm": patch
29+
"@yarnpkg/plugin-stage": patch
30+
"@yarnpkg/plugin-typescript": patch
31+
"@yarnpkg/plugin-version": patch
32+
"@yarnpkg/plugin-workspace-tools": patch
33+
"@yarnpkg/pnpify": patch
34+
"@yarnpkg/sdks": patch
35+
"@yarnpkg/shell": patch

packages/yarnpkg-parsers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"./package.json": "./package.json"
99
},
1010
"dependencies": {
11-
"js-yaml": "^3.10.0",
11+
"js-yaml": "^4.1.0",
1212
"tslib": "^2.4.0"
1313
},
1414
"devDependencies": {

packages/yarnpkg-parsers/sources/syml.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {safeLoad, FAILSAFE_SCHEMA} from 'js-yaml';
1+
import {load, FAILSAFE_SCHEMA} from 'js-yaml';
22

3-
import {parse} from './grammars/syml';
3+
import {parse} from './grammars/syml';
44

55
const simpleStringPattern = /^(?![-?:,\][{}#&*!|>'"%@` \t\r\n]).([ \t]*(?![,\][{}:# \t\r\n]).)*$/;
66

@@ -139,7 +139,7 @@ function parseViaJsYaml(source: string) {
139139
if (LEGACY_REGEXP.test(source))
140140
return parseViaPeg(source);
141141

142-
const value = safeLoad(source, {
142+
const value = load(source, {
143143
schema: FAILSAFE_SCHEMA,
144144
json: true,
145145
});

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5923,7 +5923,7 @@ __metadata:
59235923
resolution: "@yarnpkg/parsers@workspace:packages/yarnpkg-parsers"
59245924
dependencies:
59255925
"@types/js-yaml": "npm:^3.11.1"
5926-
js-yaml: "npm:^3.10.0"
5926+
js-yaml: "npm:^4.1.0"
59275927
pegjs: "npm:^0.10.0"
59285928
tslib: "npm:^2.4.0"
59295929
languageName: unknown
@@ -13956,7 +13956,7 @@ __metadata:
1395613956
languageName: node
1395713957
linkType: hard
1395813958

13959-
"js-yaml@npm:^3.10.0, js-yaml@npm:^3.13.1":
13959+
"js-yaml@npm:^3.13.1":
1396013960
version: 3.14.1
1396113961
resolution: "js-yaml@npm:3.14.1"
1396213962
dependencies:

0 commit comments

Comments
 (0)