Skip to content

Commit 8fbdb7d

Browse files
committed
chore(deps): update all dependencies
Refresh package-lock and update every dependency to its latest compatible version. No npm overrides: production dependencies carry no known vulnerabilities (`npm run audit`, i.e. `npm audit --omit=dev`, is clean). The advisories bare `npm audit` still reports are confined to dev-only tooling (mocha, changesets) whose transitive fixes live in majors newer than those tools allow; they never ship — see agent-feedback/dx.md. - Babel toolchain -> 7.29.7 (regenerated the patch-package patches). - mocha 11.7.6 (patch regenerated), rolldown 1.1.4, prettier 3.9.4, js-beautify 2, minimatch 10, htmljs-parser 5.12.1, @luxass/strip-json-comments 2, @types/node 26, and the eslint/cspell/ typescript-eslint toolchain to latest. - Regenerated bundle snapshots for rolldown 1.1.4's more aggressive minifier and reformatted sources for prettier 3.9.4. - Added an `audit` script (`npm audit --omit=dev`) and the missing cspell terms. Held back as dedicated migrations (see agent-feedback/dx.md): Babel 8 (breaks the compiler's babel-7 lib patches) and chai 6 (ESM-only vs 379 CommonJS require sites). Full test suite, build, and lint all pass.
1 parent 2f400f4 commit 8fbdb7d

1,495 files changed

Lines changed: 6959 additions & 9046 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@marko/compiler": patch
3+
"marko": patch
4+
---
5+
6+
Update dependencies to their latest compatible versions.

.sizes.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
{
88
"name": "*",
99
"total": {
10-
"min": 25867,
11-
"brotli": 9506
10+
"min": 25866,
11+
"brotli": 9518
1212
}
1313
},
1414
{
@@ -18,12 +18,12 @@
1818
"brotli": 119
1919
},
2020
"runtime": {
21-
"min": 3938,
22-
"brotli": 1744
21+
"min": 3912,
22+
"brotli": 1727
2323
},
2424
"total": {
25-
"min": 4099,
26-
"brotli": 1863
25+
"min": 4073,
26+
"brotli": 1846
2727
}
2828
},
2929
{
@@ -48,12 +48,12 @@
4848
"brotli": 365
4949
},
5050
"runtime": {
51-
"min": 6480,
52-
"brotli": 2845
51+
"min": 6453,
52+
"brotli": 2833
5353
},
5454
"total": {
55-
"min": 7126,
56-
"brotli": 3210
55+
"min": 7099,
56+
"brotli": 3198
5757
}
5858
},
5959
{

.sizes/comments.csr/entry.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// size: 646 (min) 365 (brotli)
22
//#region packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/tags/comments.marko
33
const $template$1 = "<ul></ul>";
4-
const $if_content__comment_comments = /* @__PURE__ */ _if_closure(
4+
const $if_content__comment_comments = /*@__PURE__*/ _if_closure(
55
4,
66
0,
77
($scope) => $input_comments$1($scope.a, $scope._.i),
@@ -10,17 +10,17 @@ const $if_content__setup = ($scope) => {
1010
$if_content__comment_comments._($scope);
1111
$if_content__id._($scope);
1212
};
13-
const $if_content__id = /* @__PURE__ */ _if_closure(4, 0, ($scope) =>
13+
const $if_content__id = /*@__PURE__*/ _if_closure(4, 0, ($scope) =>
1414
$input_path$1($scope.a, $scope._.l),
1515
);
16-
const $for_content__id = /* @__PURE__ */ _const(11, ($scope) => {
16+
const $for_content__id = /*@__PURE__*/ _const(11, ($scope) => {
1717
_attr($scope.a, "id", $scope.l);
1818
$if_content__id($scope);
1919
});
20-
const $for_content__input_path = /* @__PURE__ */ _for_closure(0, ($scope) =>
20+
const $for_content__input_path = /*@__PURE__*/ _for_closure(0, ($scope) =>
2121
$for_content__id($scope, `${$scope._.e || "c"}-${$scope.M}`),
2222
);
23-
const $for_content__open = /* @__PURE__ */ _let(12, ($scope) => {
23+
const $for_content__open = /*@__PURE__*/ _let(12, ($scope) => {
2424
_attr($scope.a, "hidden", !$scope.m);
2525
_text($scope.d, $scope.m ? "[-]" : "[+]");
2626
});
@@ -36,21 +36,21 @@ const $for_content__setup = ($scope) => {
3636
};
3737
const $for_content__comment_text = ($scope, comment_text) =>
3838
_text($scope.b, comment_text);
39-
const $for_content__if = /* @__PURE__ */ _if(
39+
const $for_content__if = /*@__PURE__*/ _if(
4040
4,
4141
$template$1,
42-
/* @__PURE__ */ ((_w0) => `/${_w0}&`)(" b"),
42+
/*@__PURE__*/ ((_w0) => `/${_w0}&`)(" b"),
4343
$if_content__setup,
4444
);
45-
const $for_content__comment_comments = /* @__PURE__ */ _const(8, ($scope) => {
45+
const $for_content__comment_comments = /*@__PURE__*/ _const(8, ($scope) => {
4646
$for_content__if($scope, $scope.i ? 0 : 1);
4747
$if_content__comment_comments($scope);
4848
});
4949
const $for_content__$params = ($scope, $params2) => {
5050
$for_content__comment_text($scope, $params2[0]?.text);
5151
$for_content__comment_comments($scope, $params2[0]?.comments);
5252
};
53-
const $for = /* @__PURE__ */ _for_of(
53+
const $for = /*@__PURE__*/ _for_of(
5454
0,
5555
"<li><span> </span><button> </button><!></li>",
5656
" E l D l%l",
@@ -59,11 +59,11 @@ const $for = /* @__PURE__ */ _for_of(
5959
);
6060
const $input_comments$1 = ($scope, input_comments) =>
6161
$for($scope, [input_comments]);
62-
const $input_path$1 = /* @__PURE__ */ _const(4, $for_content__input_path);
62+
const $input_path$1 = /*@__PURE__*/ _const(4, $for_content__input_path);
6363
//#endregion
6464
//#region packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/template.marko
6565
const $template = $template$1;
66-
const $walks = /* @__PURE__ */ ((_w0) => `/${_w0}&`)(" b");
66+
const $walks = /*@__PURE__*/ ((_w0) => `/${_w0}&`)(" b");
6767
const $setup = () => {};
6868
const $input_comments = ($scope, input_comments) =>
6969
$input_comments$1($scope.a, input_comments);

.sizes/comments.csr/runtime.js

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
// size: 6480 (min) 2845 (brotli)
1+
// size: 6453 (min) 2833 (brotli)
22
//#region packages/runtime-tags/dist/dom.mjs
33
let decodeAccessor = (num) =>
44
(num + (num < 26 ? 10 : num < 962 ? 334 : 11998)).toString(36),
55
delegate = (type, handler) =>
66
(handler[type] ||= (document.addEventListener(type, handler, !0), 1)),
77
parsers = {},
88
nextScopeId = 1e6,
9-
collectingScopes,
109
destroyNestedScopes = function destroyNestedScopes(scope) {
1110
((scope.H = 0),
1211
scope.D?.forEach(destroyNestedScopes),
@@ -21,7 +20,7 @@ let decodeAccessor = (num) =>
2120
currentMultiplier,
2221
storedMultiplier = 0,
2322
currentScopeIndex = 0;
24-
for (; currentWalkIndex < walkCodes.length; )
23+
for (; currentWalkIndex < walkCodes.length;)
2524
if (
2625
((value = walkCodes.charCodeAt(currentWalkIndex++)),
2726
(currentMultiplier = storedMultiplier),
@@ -50,13 +49,13 @@ let decodeAccessor = (num) =>
5049
value === 48 &&
5150
(scope[decodeAccessor(currentScopeIndex++)] = skipScope()));
5251
else if (value < 92)
53-
for (value = 20 * currentMultiplier + value - 67; value--; )
52+
for (value = 20 * currentMultiplier + value - 67; value--;)
5453
walker.nextNode();
5554
else if (value < 107)
56-
for (value = 10 * currentMultiplier + value - 97; value--; )
55+
for (value = 10 * currentMultiplier + value - 97; value--;)
5756
walker.nextSibling();
5857
else if (value < 117) {
59-
for (value = 10 * currentMultiplier + value - 107; value--; )
58+
for (value = 10 * currentMultiplier + value - 107; value--;)
6059
walker.parentNode();
6160
walker.nextSibling();
6261
} else storedMultiplier = currentMultiplier * 10 + value - 117;
@@ -75,7 +74,7 @@ let decodeAccessor = (num) =>
7574
pendingRenders = [],
7675
scopeKeyOffset = 1e3,
7776
runEffects = (effects) => {
78-
for (let i = 0; i < effects.length; ) effects[i++](effects[i++]);
77+
for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
7978
},
8079
runRender = (render) => render.c(render.b, render.d),
8180
catchEnabled,
@@ -105,7 +104,7 @@ function _on(element, type, handler) {
105104
}
106105
function handleDelegated(ev) {
107106
let target = !rendering && ev.target;
108-
for (; target; )
107+
for (; target;)
109108
(target["$" + ev.type]?.(ev, target),
110109
(target = ev.bubbles && !ev.cancelBubble && target.parentNode));
111110
}
@@ -114,13 +113,12 @@ function parseHTML(html, ns) {
114113
return ((parser.innerHTML = html), parser.content || parser);
115114
}
116115
function createScope($global, closestBranch) {
117-
let scope = {
116+
return {
118117
L: nextScopeId++,
119118
H: runId,
120119
F: closestBranch,
121120
$: $global,
122121
};
123-
return (collectingScopes?.push(scope), scope);
124122
}
125123
function skipScope() {
126124
return nextScopeId++;
@@ -306,7 +304,7 @@ function normalizeAttrValue(value) {
306304
}
307305
function removeChildNodes(startNode, endNode) {
308306
let stop = endNode.nextSibling;
309-
for (; startNode !== stop; ) {
307+
for (; startNode !== stop;) {
310308
let next = startNode.nextSibling;
311309
(startNode.remove(), (startNode = next));
312310
}
@@ -318,7 +316,7 @@ function toInsertNode(startNode, endNode) {
318316
if (startNode === endNode) return startNode;
319317
let parent = new DocumentFragment(),
320318
stop = endNode.nextSibling;
321-
for (; startNode !== stop; ) {
319+
for (; startNode !== stop;) {
322320
let next = startNode.nextSibling;
323321
(parent.appendChild(startNode), (startNode = next));
324322
}
@@ -329,7 +327,7 @@ function _if(nodeAccessor, ...branchesArgs) {
329327
let branchAccessor = "D" + nodeAccessor,
330328
branches = [],
331329
i = 0;
332-
for (; i < branchesArgs.length; )
330+
for (; i < branchesArgs.length;)
333331
branches.push(
334332
_content("", branchesArgs[i++], branchesArgs[i++], branchesArgs[i++])(),
335333
);
@@ -475,24 +473,24 @@ function loop(forEach) {
475473
hi,
476474
mid;
477475
for (let i = start; i <= oldEnd; i++) oldPos.set(oldScopes[i], i);
478-
for (let i = diffLen; i--; )
476+
for (let i = diffLen; i--;)
479477
sources[i] = oldPos.get(newScopes[start + i]) ?? -1;
480478
for (let i = 0; i < diffLen; i++)
481479
if (~sources[i])
482480
if (tail < 0 || sources[tails[tail]] < sources[i])
483481
(~tail && (pred[i] = tails[tail]), (tails[++tail] = i));
484482
else {
485-
for (lo = 0, hi = tail; lo < hi; )
483+
for (lo = 0, hi = tail; lo < hi;)
486484
((mid = ((lo + hi) / 2) | 0),
487485
sources[tails[mid]] < sources[i]
488486
? (lo = mid + 1)
489487
: (hi = mid));
490488
sources[i] < sources[tails[lo]] &&
491489
(lo > 0 && (pred[i] = tails[lo - 1]), (tails[lo] = i));
492490
}
493-
for (hi = tails[tail], lo = tail + 1; lo-- > 0; )
491+
for (hi = tails[tail], lo = tail + 1; lo-- > 0;)
494492
((tails[lo] = hi), (hi = pred[hi]));
495-
for (let i = diffLen; i--; )
493+
for (let i = diffLen; i--;)
496494
(~tail && i === tails[tail]
497495
? tail--
498496
: insertBranchBefore(
@@ -526,7 +524,7 @@ function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) {
526524
}
527525
function queuePendingRender(render) {
528526
let i = pendingRenders.push(render) - 1;
529-
for (; i; ) {
527+
for (; i;) {
530528
let parentIndex = (i - 1) >> 1,
531529
parent = pendingRenders[parentIndex];
532530
if (render.a - parent.a >= 0) break;
@@ -562,14 +560,14 @@ function prepareEffects(fn) {
562560
return preparedEffects;
563561
}
564562
function runRenders() {
565-
for (; pendingRenders.length; ) {
563+
for (; pendingRenders.length;) {
566564
let render = pendingRenders[0],
567565
item = pendingRenders.pop();
568566
if (render !== item) {
569567
let i = 0,
570568
mid = pendingRenders.length >> 1,
571569
key = (pendingRenders[0] = item).a;
572-
for (; i < mid; ) {
570+
for (; i < mid;) {
573571
let bestChild = (i << 1) + 1,
574572
right = bestChild + 1;
575573
if (

.sizes/comments.ssr/entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// size: 115 (min) 101 (brotli)
22
//#region packages/runtime-tags/src/__tests__/fixtures/basic-inert-collapsible-tree/tags/comments.marko
3-
const $for_content__open = /* @__PURE__ */ _let(12, ($scope) => {
3+
const $for_content__open = /*@__PURE__*/ _let(12, ($scope) => {
44
_attr($scope.a, "hidden", !$scope.m);
55
_text($scope.d, $scope.m ? "[-]" : "[+]");
66
});

.sizes/comments.ssr/runtime.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let decodeAccessor = (num) =>
1515
pendingRenders = [],
1616
scopeKeyOffset = 1e3,
1717
runEffects = (effects) => {
18-
for (let i = 0; i < effects.length; ) effects[i++](effects[i++]);
18+
for (let i = 0; i < effects.length;) effects[i++](effects[i++]);
1919
},
2020
runRender = (render) => render.c(render.b, render.d),
2121
catchEnabled;
@@ -28,7 +28,7 @@ function _on(element, type, handler) {
2828
}
2929
function handleDelegated(ev) {
3030
let target = !rendering && ev.target;
31-
for (; target; )
31+
for (; target;)
3232
(target["$" + ev.type]?.(ev, target),
3333
(target = ev.bubbles && !ev.cancelBubble && target.parentNode));
3434
}
@@ -125,10 +125,7 @@ function init(runtimeId = "M") {
125125
for (; i < resumes.length; i++) {
126126
let serialized = resumes[i];
127127
if (typeof serialized == "string")
128-
for (
129-
lastTokenIndex = 0, visitText = serialized;
130-
nextToken();
131-
)
128+
for (lastTokenIndex = 0, visitText = serialized; nextToken();)
132129
/\D/.test(lastToken)
133130
? (lastEffect = registeredValues[lastToken])
134131
: effects.push(lastEffect, getScope(lastToken));
@@ -232,7 +229,7 @@ function queueRender(scope, signal, signalKey, value, scopeKey = scope.L) {
232229
}
233230
function queuePendingRender(render) {
234231
let i = pendingRenders.push(render) - 1;
235-
for (; i; ) {
232+
for (; i;) {
236233
let parentIndex = (i - 1) >> 1,
237234
parent = pendingRenders[parentIndex];
238235
if (render.a - parent.a >= 0) break;
@@ -253,14 +250,14 @@ function run() {
253250
runEffects(effects);
254251
}
255252
function runRenders() {
256-
for (; pendingRenders.length; ) {
253+
for (; pendingRenders.length;) {
257254
let render = pendingRenders[0],
258255
item = pendingRenders.pop();
259256
if (render !== item) {
260257
let i = 0,
261258
mid = pendingRenders.length >> 1,
262259
key = (pendingRenders[0] = item).a;
263-
for (; i < mid; ) {
260+
for (; i < mid;) {
264261
let bestChild = (i << 1) + 1,
265262
right = bestChild + 1;
266263
if (

.sizes/counter.csr/entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//#region packages/runtime-tags/src/__tests__/fixtures/basic-counter/template.marko
33
const $template = "<div><button> </button></div>";
44
const $walks = "D D m";
5-
const $clickCount = /* @__PURE__ */ _let(2, ($scope) =>
5+
const $clickCount = /*@__PURE__*/ _let(2, ($scope) =>
66
_text($scope.b, $scope.c),
77
);
88
const $setup__script = _script("a0", ($scope) =>

0 commit comments

Comments
 (0)