@marko/runtime-tags 6.0.171 → 6.0.172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -276,11 +276,6 @@ const Generator = (function* () {})().constructor;
276
276
  const AsyncGenerator = (async function* () {})().constructor;
277
277
  patchIteratorNext(Generator.prototype);
278
278
  patchIteratorNext(AsyncGenerator.prototype);
279
- var MutationType = /* @__PURE__ */ function(MutationType) {
280
- MutationType[MutationType["call"] = 0] = "call";
281
- MutationType[MutationType["assign"] = 1] = "assign";
282
- return MutationType;
283
- }(MutationType || {});
284
279
  const REGISTRY = /* @__PURE__ */ new WeakMap();
285
280
  const KNOWN_SYMBOLS = (() => {
286
281
  const KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
@@ -534,6 +529,11 @@ var State$1 = class {
534
529
  mutated = [];
535
530
  };
536
531
  var Reference = class {
532
+ parent;
533
+ accessor;
534
+ flush;
535
+ pos;
536
+ id;
537
537
  registered = null;
538
538
  assigns = null;
539
539
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -1417,19 +1417,6 @@ let $chunk;
1417
1417
  const NOOP$2 = () => {};
1418
1418
  const K_SCOPE_ID = Symbol("Scope ID");
1419
1419
  const K_SCOPE_REFERENCED = Symbol("Scope Referenced");
1420
- var Mark = /* @__PURE__ */ function(Mark) {
1421
- Mark["Placeholder"] = "!^";
1422
- Mark["PlaceholderEnd"] = "!";
1423
- Mark["ReorderMarker"] = "#";
1424
- return Mark;
1425
- }(Mark || {});
1426
- var RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
1427
- RuntimeKey["Walk"] = ".w";
1428
- RuntimeKey["Resume"] = ".r";
1429
- RuntimeKey["Blocking"] = ".b";
1430
- RuntimeKey["Scripts"] = ".j";
1431
- return RuntimeKey;
1432
- }(RuntimeKey || {});
1433
1420
  function getChunk() {
1434
1421
  return $chunk;
1435
1422
  }
@@ -1865,6 +1852,7 @@ function tryCatch(content, catchContent) {
1865
1852
  };
1866
1853
  }
1867
1854
  var State = class {
1855
+ $global;
1868
1856
  tagId = 1;
1869
1857
  scopeId = 1;
1870
1858
  reorderId = 1;
@@ -1916,6 +1904,7 @@ var State = class {
1916
1904
  }
1917
1905
  };
1918
1906
  var Boundary = class extends AbortController {
1907
+ state;
1919
1908
  onNext = NOOP$2;
1920
1909
  count = 0;
1921
1910
  constructor(state, parent) {
@@ -1948,6 +1937,9 @@ var Boundary = class extends AbortController {
1948
1937
  }
1949
1938
  };
1950
1939
  var Chunk = class {
1940
+ boundary;
1941
+ next;
1942
+ context;
1951
1943
  html = "";
1952
1944
  scripts = "";
1953
1945
  effects = "";
@@ -274,11 +274,6 @@ const Generator = (function* () {})().constructor;
274
274
  const AsyncGenerator = (async function* () {})().constructor;
275
275
  patchIteratorNext(Generator.prototype);
276
276
  patchIteratorNext(AsyncGenerator.prototype);
277
- var MutationType = /* @__PURE__ */ function(MutationType) {
278
- MutationType[MutationType["call"] = 0] = "call";
279
- MutationType[MutationType["assign"] = 1] = "assign";
280
- return MutationType;
281
- }(MutationType || {});
282
277
  const REGISTRY = /* @__PURE__ */ new WeakMap();
283
278
  const KNOWN_SYMBOLS = (() => {
284
279
  const KNOWN_SYMBOLS = /* @__PURE__ */ new Map();
@@ -532,6 +527,11 @@ var State$1 = class {
532
527
  mutated = [];
533
528
  };
534
529
  var Reference = class {
530
+ parent;
531
+ accessor;
532
+ flush;
533
+ pos;
534
+ id;
535
535
  registered = null;
536
536
  assigns = null;
537
537
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -1415,19 +1415,6 @@ let $chunk;
1415
1415
  const NOOP$2 = () => {};
1416
1416
  const K_SCOPE_ID = Symbol("Scope ID");
1417
1417
  const K_SCOPE_REFERENCED = Symbol("Scope Referenced");
1418
- var Mark = /* @__PURE__ */ function(Mark) {
1419
- Mark["Placeholder"] = "!^";
1420
- Mark["PlaceholderEnd"] = "!";
1421
- Mark["ReorderMarker"] = "#";
1422
- return Mark;
1423
- }(Mark || {});
1424
- var RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
1425
- RuntimeKey["Walk"] = ".w";
1426
- RuntimeKey["Resume"] = ".r";
1427
- RuntimeKey["Blocking"] = ".b";
1428
- RuntimeKey["Scripts"] = ".j";
1429
- return RuntimeKey;
1430
- }(RuntimeKey || {});
1431
1418
  function getChunk() {
1432
1419
  return $chunk;
1433
1420
  }
@@ -1863,6 +1850,7 @@ function tryCatch(content, catchContent) {
1863
1850
  };
1864
1851
  }
1865
1852
  var State = class {
1853
+ $global;
1866
1854
  tagId = 1;
1867
1855
  scopeId = 1;
1868
1856
  reorderId = 1;
@@ -1914,6 +1902,7 @@ var State = class {
1914
1902
  }
1915
1903
  };
1916
1904
  var Boundary = class extends AbortController {
1905
+ state;
1917
1906
  onNext = NOOP$2;
1918
1907
  count = 0;
1919
1908
  constructor(state, parent) {
@@ -1946,6 +1935,9 @@ var Boundary = class extends AbortController {
1946
1935
  }
1947
1936
  };
1948
1937
  var Chunk = class {
1938
+ boundary;
1939
+ next;
1940
+ context;
1949
1941
  html = "";
1950
1942
  scripts = "";
1951
1943
  effects = "";
package/dist/html.js CHANGED
@@ -448,9 +448,7 @@ function forStepBy(by, index) {
448
448
  return by ? by(index) : index;
449
449
  }
450
450
  patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
451
- var MutationType = /* @__PURE__ */ function(MutationType) {
452
- return MutationType[MutationType.call = 0] = "call", MutationType[MutationType.assign = 1] = "assign", MutationType;
453
- }(MutationType || {}), State$1 = class {
451
+ var State$1 = class {
454
452
  ids = 0;
455
453
  flush = 0;
456
454
  registerInstanceId = 0;
@@ -464,6 +462,11 @@ var MutationType = /* @__PURE__ */ function(MutationType) {
464
462
  boundary = void 0;
465
463
  mutated = [];
466
464
  }, Reference = class {
465
+ parent;
466
+ accessor;
467
+ flush;
468
+ pos;
469
+ id;
467
470
  registered = null;
468
471
  assigns = null;
469
472
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -980,11 +983,6 @@ function compareRegisteredReferences(a, b) {
980
983
  }
981
984
  //#endregion
982
985
  //#region src/html/writer.ts
983
- var Mark = /* @__PURE__ */ function(Mark) {
984
- return Mark.Placeholder = "!^", Mark.PlaceholderEnd = "!", Mark.ReorderMarker = "#", Mark;
985
- }(Mark || {}), RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
986
- return RuntimeKey.Walk = ".w", RuntimeKey.Resume = ".r", RuntimeKey.Blocking = ".b", RuntimeKey.Scripts = ".j", RuntimeKey;
987
- }(RuntimeKey || {});
988
986
  function getChunk() {
989
987
  return $chunk;
990
988
  }
@@ -1253,6 +1251,7 @@ function tryCatch(content, catchContent) {
1253
1251
  };
1254
1252
  }
1255
1253
  var State = class {
1254
+ $global;
1256
1255
  tagId = 1;
1257
1256
  scopeId = 1;
1258
1257
  reorderId = 1;
@@ -1295,6 +1294,7 @@ var State = class {
1295
1294
  return "<!--" + this.commentPrefix + code + str + "-->";
1296
1295
  }
1297
1296
  }, Boundary = class extends AbortController {
1297
+ state;
1298
1298
  onNext = NOOP$2;
1299
1299
  count = 0;
1300
1300
  constructor(state, parent) {
@@ -1314,6 +1314,9 @@ var State = class {
1314
1314
  !this.signal.aborted && this.count && (this.count--, chunk?.reorderId && this.state.reorder(chunk), this.onNext());
1315
1315
  }
1316
1316
  }, Chunk = class {
1317
+ boundary;
1318
+ next;
1319
+ context;
1317
1320
  html = "";
1318
1321
  scripts = "";
1319
1322
  effects = "";
package/dist/html.mjs CHANGED
@@ -447,9 +447,7 @@ function forStepBy(by, index) {
447
447
  return by ? by(index) : index;
448
448
  }
449
449
  patchIteratorNext(Generator.prototype), patchIteratorNext(AsyncGenerator.prototype);
450
- var MutationType = /* @__PURE__ */ function(MutationType) {
451
- return MutationType[MutationType.call = 0] = "call", MutationType[MutationType.assign = 1] = "assign", MutationType;
452
- }(MutationType || {}), State$1 = class {
450
+ var State$1 = class {
453
451
  ids = 0;
454
452
  flush = 0;
455
453
  registerInstanceId = 0;
@@ -463,6 +461,11 @@ var MutationType = /* @__PURE__ */ function(MutationType) {
463
461
  boundary = void 0;
464
462
  mutated = [];
465
463
  }, Reference = class {
464
+ parent;
465
+ accessor;
466
+ flush;
467
+ pos;
468
+ id;
466
469
  registered = null;
467
470
  assigns = null;
468
471
  constructor(parent, accessor, flush, pos = null, id = null) {
@@ -979,11 +982,6 @@ function compareRegisteredReferences(a, b) {
979
982
  }
980
983
  //#endregion
981
984
  //#region src/html/writer.ts
982
- var Mark = /* @__PURE__ */ function(Mark) {
983
- return Mark.Placeholder = "!^", Mark.PlaceholderEnd = "!", Mark.ReorderMarker = "#", Mark;
984
- }(Mark || {}), RuntimeKey = /* @__PURE__ */ function(RuntimeKey) {
985
- return RuntimeKey.Walk = ".w", RuntimeKey.Resume = ".r", RuntimeKey.Blocking = ".b", RuntimeKey.Scripts = ".j", RuntimeKey;
986
- }(RuntimeKey || {});
987
985
  function getChunk() {
988
986
  return $chunk;
989
987
  }
@@ -1252,6 +1250,7 @@ function tryCatch(content, catchContent) {
1252
1250
  };
1253
1251
  }
1254
1252
  var State = class {
1253
+ $global;
1255
1254
  tagId = 1;
1256
1255
  scopeId = 1;
1257
1256
  reorderId = 1;
@@ -1294,6 +1293,7 @@ var State = class {
1294
1293
  return "<!--" + this.commentPrefix + code + str + "-->";
1295
1294
  }
1296
1295
  }, Boundary = class extends AbortController {
1296
+ state;
1297
1297
  onNext = NOOP$2;
1298
1298
  count = 0;
1299
1299
  constructor(state, parent) {
@@ -1313,6 +1313,9 @@ var State = class {
1313
1313
  !this.signal.aborted && this.count && (this.count--, chunk?.reorderId && this.state.reorder(chunk), this.onNext());
1314
1314
  }
1315
1315
  }, Chunk = class {
1316
+ boundary;
1317
+ next;
1318
+ context;
1316
1319
  html = "";
1317
1320
  scripts = "";
1318
1321
  effects = "";
@@ -779,6 +779,7 @@ function isInvokedFunction(expr) {
779
779
  //#endregion
780
780
  //#region src/translator/util/optional.ts
781
781
  var Sorted = class {
782
+ compare;
782
783
  constructor(compare) {
783
784
  this.compare = compare;
784
785
  }
@@ -5012,9 +5013,7 @@ function buildContent(body) {
5012
5013
  else body.node.body.unshift(_marko_compiler.types.expressionStatement(callRuntime("_scope_reason")));
5013
5014
  return callRuntime(serialized ? "_content_resume" : "_content", _marko_compiler.types.stringLiteral(getResumeRegisterId(bodySection, "content")), _marko_compiler.types.arrowFunctionExpression(body.node.params, _marko_compiler.types.blockStatement(body.node.body)), serialized ? getScopeIdIdentifier(getSection(getAttributeTagParent(body.parentPath))) : void 0);
5014
5015
  } else return _marko_compiler.types.callExpression(_marko_compiler.types.identifier(bodySection.name), bodySection.referencedLocalClosures ? [scopeIdentifier, _marko_compiler.types.objectExpression(toArray(bodySection.referencedLocalClosures, (ref) => {
5015
- const accessor = getScopeAccessor(ref, true);
5016
- const isShorthand = accessor === ref.name;
5017
- return _marko_compiler.types.objectProperty(toPropertyName(accessor), _marko_compiler.types.identifier(ref.name), false, isShorthand);
5016
+ return toObjectProperty(getScopeAccessor(ref, true), getDeclaredBindingExpression(ref));
5018
5017
  }))] : [scopeIdentifier]);
5019
5018
  }
5020
5019
  //#endregion
@@ -2,7 +2,7 @@ import { types as t } from "@marko/compiler";
2
2
  export declare function getTemplateContentName(): string;
3
3
  declare const _default: {
4
4
  translate: {
5
- enter(this: unknown): void;
5
+ enter(): void;
6
6
  exit(this: unknown, program: t.NodePath<t.Program>): void;
7
7
  };
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/runtime-tags",
3
- "version": "6.0.171",
3
+ "version": "6.0.172",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",
@@ -55,7 +55,7 @@
55
55
  "magic-string": "^0.30.21"
56
56
  },
57
57
  "engines": {
58
- "node": "18 || 20 || >=22"
58
+ "node": ">=22"
59
59
  },
60
60
  "exports:override": {
61
61
  ".": {