Skip to content

Commit 69db68d

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

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
releases:
2+
"@yarnpkg/parsers": minor

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)