Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ jobs:
name: smoke-node${{ matrix.node-version }}
strategy:
matrix:
node-version: [12, 14, 16, 18, 20, 22, 24, 25-nightly]
node-version: [12, 14, 16, 18, 20, 22, 24, 26, 27-nightly]
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -294,4 +294,5 @@ jobs:
- name: tsx
run: npm run test:smoke:tsx
- name: ts-node
if: matrix.ts != 'rc' # ts7 dropped default "./" export point
run: npm run test:smoke:ts-node
8 changes: 4 additions & 4 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"README.md",
"LICENSE"
],
"limit": "129.32 kB",
"limit": "129.46 kB",
"brotli": false,
"gzip": false
},
Expand All @@ -33,7 +33,7 @@
"build/globals.js",
"build/deno.js"
],
"limit": "881.42 kB",
"limit": "881.85 kB",
"brotli": false,
"gzip": false
},
Expand All @@ -47,7 +47,7 @@
{
"name": "vendor",
"path": "build/vendor-*.{cjs,d.ts}",
"limit": "835.39 kB",
"limit": "835.65 kB",
"brotli": false,
"gzip": false
},
Expand All @@ -66,7 +66,7 @@
"README.md",
"LICENSE"
],
"limit": "944.17 kB",
"limit": "944.60 kB",
"brotli": false,
"gzip": false
}
Expand Down
2 changes: 1 addition & 1 deletion build/3rd-party-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ [email protected]
git+https://github.com/npm/node-which.git
ISC

yaml@2.8.4
yaml@2.9.0
Eemeli Aro <[email protected]>
github:eemeli/yaml
ISC
Expand Down
15 changes: 12 additions & 3 deletions build/esblib.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,20 @@ var __pow = Math.pow;
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));

var __commonJS = (cb, mod) => function __require() {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
try {
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
} catch (e) {
throw mod = 0, e;
}
};

var __esm = (fn, res) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
var __esm = (fn, res, err) => function __init() {
if (err) throw err[0];
try {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
} catch (e) {
throw err = [e], e;
}
};

var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
Expand Down
2 changes: 1 addition & 1 deletion build/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ var versions = {
minimist: "1.2.8",
ps: "1.2.1",
which: "7.0.0",
yaml: "2.8.4"
yaml: "2.9.0"
};

// src/goods.ts
Expand Down
75 changes: 47 additions & 28 deletions build/vendor-extra.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18788,8 +18788,10 @@ ${cb}` : comment;
}
}
if (afterDoc) {
Array.prototype.push.apply(doc.errors, this.errors);
Array.prototype.push.apply(doc.warnings, this.warnings);
for (let i = 0; i < this.errors.length; ++i)
doc.errors.push(this.errors[i]);
for (let i = 0; i < this.warnings.length; ++i)
doc.warnings.push(this.warnings[i]);
} else {
doc.errors = this.errors;
doc.warnings = this.warnings;
Expand Down Expand Up @@ -19488,7 +19490,7 @@ var Lexer = class {
const n4 = (yield* __yieldStar(this.pushCount(1))) + (yield* __yieldStar(this.pushSpaces(true)));
this.indentNext = this.indentValue + 1;
this.indentValue += n4;
return yield* __yieldStar(this.parseBlockStart());
return "block-start";
}
return "doc";
}
Expand Down Expand Up @@ -19787,28 +19789,38 @@ var Lexer = class {
return 0;
}
*pushIndicators() {
switch (this.charAt(0)) {
case "!":
return (yield* __yieldStar(this.pushTag())) + (yield* __yieldStar(this.pushSpaces(true))) + (yield* __yieldStar(this.pushIndicators()));
case "&":
return (yield* __yieldStar(this.pushUntil(isNotAnchorChar))) + (yield* __yieldStar(this.pushSpaces(true))) + (yield* __yieldStar(this.pushIndicators()));
case "-":
// this is an error
case "?":
// this is an error outside flow collections
case ":": {
const inFlow = this.flowLevel > 0;
const ch1 = this.charAt(1);
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
if (!inFlow)
this.indentNext = this.indentValue + 1;
else if (this.flowKey)
this.flowKey = false;
return (yield* __yieldStar(this.pushCount(1))) + (yield* __yieldStar(this.pushSpaces(true))) + (yield* __yieldStar(this.pushIndicators()));
}
}
let n4 = 0;
loop: while (true) {
switch (this.charAt(0)) {
case "!":
n4 += yield* __yieldStar(this.pushTag());
n4 += yield* __yieldStar(this.pushSpaces(true));
continue loop;
case "&":
n4 += yield* __yieldStar(this.pushUntil(isNotAnchorChar));
n4 += yield* __yieldStar(this.pushSpaces(true));
continue loop;
case "-":
// this is an error
case "?":
// this is an error outside flow collections
case ":": {
const inFlow = this.flowLevel > 0;
const ch1 = this.charAt(1);
if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
if (!inFlow)
this.indentNext = this.indentValue + 1;
else if (this.flowKey)
this.flowKey = false;
n4 += yield* __yieldStar(this.pushCount(1));
n4 += yield* __yieldStar(this.pushSpaces(true));
continue loop;
}
}
}
break loop;
}
return 0;
return n4;
}
*pushTag() {
if (this.charAt(1) === "<") {
Expand Down Expand Up @@ -19954,6 +19966,13 @@ function getFirstKeyStartProps(prev) {
}
return prev.splice(i, prev.length);
}
function arrayPushArray(target, source) {
if (source.length < 1e5)
Array.prototype.push.apply(target, source);
else
for (let i = 0; i < source.length; ++i)
target.push(source[i]);
}
function fixFlowSeqItems(fc) {
if (fc.start.type === "flow-seq-start") {
for (const it of fc.items) {
Expand All @@ -19963,11 +19982,11 @@ function fixFlowSeqItems(fc) {
delete it.key;
if (isFlowToken(it.value)) {
if (it.value.end)
Array.prototype.push.apply(it.value.end, it.sep);
arrayPushArray(it.value.end, it.sep);
else
it.value.end = it.sep;
} else
Array.prototype.push.apply(it.start, it.sep);
arrayPushArray(it.start, it.sep);
delete it.sep;
}
}
Expand Down Expand Up @@ -20321,7 +20340,7 @@ var Parser = class {
const prev = map2.items[map2.items.length - 2];
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
if (Array.isArray(end)) {
Array.prototype.push.apply(end, it.start);
arrayPushArray(end, it.start);
end.push(this.sourceToken);
map2.items.pop();
return;
Expand Down Expand Up @@ -20510,7 +20529,7 @@ var Parser = class {
const prev = seq2.items[seq2.items.length - 2];
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
if (Array.isArray(end)) {
Array.prototype.push.apply(end, it.start);
arrayPushArray(end, it.start);
end.push(this.sourceToken);
seq2.items.pop();
return;
Expand Down
Loading
Loading