Skip to content

Commit d24bef7

Browse files
authored
chore(deps): update yaml to v2.9.0 (#1491)
* chore(deps): update yaml to v2.9.0 * ci: add nodejs 26 to test matrix * test: temporary disable ts-node smoke for ts rc stream
1 parent 6a62a4b commit d24bef7

12 files changed

Lines changed: 378 additions & 361 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ jobs:
214214
name: smoke-node${{ matrix.node-version }}
215215
strategy:
216216
matrix:
217-
node-version: [12, 14, 16, 18, 20, 22, 24, 25-nightly]
217+
node-version: [12, 14, 16, 18, 20, 22, 24, 26, 27-nightly]
218218
steps:
219219
- uses: actions/checkout@v6
220220
with:
@@ -294,4 +294,5 @@ jobs:
294294
- name: tsx
295295
run: npm run test:smoke:tsx
296296
- name: ts-node
297+
if: matrix.ts != 'rc' # ts7 dropped default "./" export point
297298
run: npm run test:smoke:ts-node

.size-limit.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"README.md",
2020
"LICENSE"
2121
],
22-
"limit": "129.32 kB",
22+
"limit": "129.46 kB",
2323
"brotli": false,
2424
"gzip": false
2525
},
@@ -33,7 +33,7 @@
3333
"build/globals.js",
3434
"build/deno.js"
3535
],
36-
"limit": "881.42 kB",
36+
"limit": "881.85 kB",
3737
"brotli": false,
3838
"gzip": false
3939
},
@@ -47,7 +47,7 @@
4747
{
4848
"name": "vendor",
4949
"path": "build/vendor-*.{cjs,d.ts}",
50-
"limit": "835.39 kB",
50+
"limit": "835.65 kB",
5151
"brotli": false,
5252
"gzip": false
5353
},
@@ -66,7 +66,7 @@
6666
"README.md",
6767
"LICENSE"
6868
],
69-
"limit": "944.17 kB",
69+
"limit": "944.60 kB",
7070
"brotli": false,
7171
"gzip": false
7272
}

build/3rd-party-licenses

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ which@7.0.0
140140
git+https://github.com/npm/node-which.git
141141
ISC
142142

143-
yaml@2.8.4
143+
yaml@2.9.0
144144
Eemeli Aro <eemeli@gmail.com>
145145
github:eemeli/yaml
146146
ISC

build/esblib.cjs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,20 @@ var __pow = Math.pow;
140140
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
141141

142142
var __commonJS = (cb, mod) => function __require() {
143-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
143+
try {
144+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
145+
} catch (e) {
146+
throw mod = 0, e;
147+
}
144148
};
145149

146-
var __esm = (fn, res) => function __init() {
147-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
150+
var __esm = (fn, res, err) => function __init() {
151+
if (err) throw err[0];
152+
try {
153+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
154+
} catch (e) {
155+
throw err = [e], e;
156+
}
148157
};
149158

150159
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);

build/index.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var versions = {
6565
minimist: "1.2.8",
6666
ps: "1.2.1",
6767
which: "7.0.0",
68-
yaml: "2.8.4"
68+
yaml: "2.9.0"
6969
};
7070

7171
// src/goods.ts

build/vendor-extra.cjs

Lines changed: 47 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18788,8 +18788,10 @@ ${cb}` : comment;
1878818788
}
1878918789
}
1879018790
if (afterDoc) {
18791-
Array.prototype.push.apply(doc.errors, this.errors);
18792-
Array.prototype.push.apply(doc.warnings, this.warnings);
18791+
for (let i = 0; i < this.errors.length; ++i)
18792+
doc.errors.push(this.errors[i]);
18793+
for (let i = 0; i < this.warnings.length; ++i)
18794+
doc.warnings.push(this.warnings[i]);
1879318795
} else {
1879418796
doc.errors = this.errors;
1879518797
doc.warnings = this.warnings;
@@ -19488,7 +19490,7 @@ var Lexer = class {
1948819490
const n4 = (yield* __yieldStar(this.pushCount(1))) + (yield* __yieldStar(this.pushSpaces(true)));
1948919491
this.indentNext = this.indentValue + 1;
1949019492
this.indentValue += n4;
19491-
return yield* __yieldStar(this.parseBlockStart());
19493+
return "block-start";
1949219494
}
1949319495
return "doc";
1949419496
}
@@ -19787,28 +19789,38 @@ var Lexer = class {
1978719789
return 0;
1978819790
}
1978919791
*pushIndicators() {
19790-
switch (this.charAt(0)) {
19791-
case "!":
19792-
return (yield* __yieldStar(this.pushTag())) + (yield* __yieldStar(this.pushSpaces(true))) + (yield* __yieldStar(this.pushIndicators()));
19793-
case "&":
19794-
return (yield* __yieldStar(this.pushUntil(isNotAnchorChar))) + (yield* __yieldStar(this.pushSpaces(true))) + (yield* __yieldStar(this.pushIndicators()));
19795-
case "-":
19796-
// this is an error
19797-
case "?":
19798-
// this is an error outside flow collections
19799-
case ":": {
19800-
const inFlow = this.flowLevel > 0;
19801-
const ch1 = this.charAt(1);
19802-
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
19803-
if (!inFlow)
19804-
this.indentNext = this.indentValue + 1;
19805-
else if (this.flowKey)
19806-
this.flowKey = false;
19807-
return (yield* __yieldStar(this.pushCount(1))) + (yield* __yieldStar(this.pushSpaces(true))) + (yield* __yieldStar(this.pushIndicators()));
19808-
}
19809-
}
19792+
let n4 = 0;
19793+
loop: while (true) {
19794+
switch (this.charAt(0)) {
19795+
case "!":
19796+
n4 += yield* __yieldStar(this.pushTag());
19797+
n4 += yield* __yieldStar(this.pushSpaces(true));
19798+
continue loop;
19799+
case "&":
19800+
n4 += yield* __yieldStar(this.pushUntil(isNotAnchorChar));
19801+
n4 += yield* __yieldStar(this.pushSpaces(true));
19802+
continue loop;
19803+
case "-":
19804+
// this is an error
19805+
case "?":
19806+
// this is an error outside flow collections
19807+
case ":": {
19808+
const inFlow = this.flowLevel > 0;
19809+
const ch1 = this.charAt(1);
19810+
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
19811+
if (!inFlow)
19812+
this.indentNext = this.indentValue + 1;
19813+
else if (this.flowKey)
19814+
this.flowKey = false;
19815+
n4 += yield* __yieldStar(this.pushCount(1));
19816+
n4 += yield* __yieldStar(this.pushSpaces(true));
19817+
continue loop;
19818+
}
19819+
}
19820+
}
19821+
break loop;
1981019822
}
19811-
return 0;
19823+
return n4;
1981219824
}
1981319825
*pushTag() {
1981419826
if (this.charAt(1) === "<") {
@@ -19954,6 +19966,13 @@ function getFirstKeyStartProps(prev) {
1995419966
}
1995519967
return prev.splice(i, prev.length);
1995619968
}
19969+
function arrayPushArray(target, source) {
19970+
if (source.length < 1e5)
19971+
Array.prototype.push.apply(target, source);
19972+
else
19973+
for (let i = 0; i < source.length; ++i)
19974+
target.push(source[i]);
19975+
}
1995719976
function fixFlowSeqItems(fc) {
1995819977
if (fc.start.type === "flow-seq-start") {
1995919978
for (const it of fc.items) {
@@ -19963,11 +19982,11 @@ function fixFlowSeqItems(fc) {
1996319982
delete it.key;
1996419983
if (isFlowToken(it.value)) {
1996519984
if (it.value.end)
19966-
Array.prototype.push.apply(it.value.end, it.sep);
19985+
arrayPushArray(it.value.end, it.sep);
1996719986
else
1996819987
it.value.end = it.sep;
1996919988
} else
19970-
Array.prototype.push.apply(it.start, it.sep);
19989+
arrayPushArray(it.start, it.sep);
1997119990
delete it.sep;
1997219991
}
1997319992
}
@@ -20321,7 +20340,7 @@ var Parser = class {
2032120340
const prev = map2.items[map2.items.length - 2];
2032220341
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
2032320342
if (Array.isArray(end)) {
20324-
Array.prototype.push.apply(end, it.start);
20343+
arrayPushArray(end, it.start);
2032520344
end.push(this.sourceToken);
2032620345
map2.items.pop();
2032720346
return;
@@ -20510,7 +20529,7 @@ var Parser = class {
2051020529
const prev = seq2.items[seq2.items.length - 2];
2051120530
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
2051220531
if (Array.isArray(end)) {
20513-
Array.prototype.push.apply(end, it.start);
20532+
arrayPushArray(end, it.start);
2051420533
end.push(this.sourceToken);
2051520534
seq2.items.pop();
2051620535
return;

0 commit comments

Comments
 (0)