@marko/runtime-tags 6.0.112 → 6.0.113

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  <div align="center">
2
2
 
3
- # [<img alt="Marko" src="https://raw.githubusercontent.com/marko-js/website-next/refs/heads/main/public/logo.svg" width="250">](https://markojs.com/)
3
+ # [<img alt="Marko" src="https://raw.githubusercontent.com/marko-js/website/refs/heads/main/public/assets/logo.svg" width="250">](https://markojs.com/)
4
4
 
5
5
  **A declarative, HTML-based language that makes building web apps fun 🔥**
6
6
 
package/dist/debug/dom.js CHANGED
@@ -511,6 +511,7 @@ function getDebugKey(index, node) {
511
511
  // src/dom/resume.ts
512
512
  var registeredValues = {};
513
513
  var branchesEnabled;
514
+ var isInit;
514
515
  function enableBranches() {
515
516
  branchesEnabled = 1;
516
517
  }
@@ -620,7 +621,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
620
621
  );
621
622
  render.w = (effects = []) => {
622
623
  try {
623
- walk2();
624
+ isInit || walk2();
624
625
  isResuming = 1;
625
626
  for (const serialized of resumes = render.r || []) {
626
627
  if (typeof serialized === "string") {
@@ -667,7 +668,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
667
668
  }
668
669
  runEffects(effects);
669
670
  } finally {
670
- isResuming = visits.length = resumes.length = 0;
671
+ isInit = isResuming = visits.length = resumes.length = 0;
671
672
  }
672
673
  };
673
674
  return render;
@@ -677,6 +678,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
677
678
  if (renders) {
678
679
  initRuntime(renders);
679
680
  for (const renderId in renders) {
681
+ isInit = 1;
680
682
  resumeRender(renderId).w();
681
683
  }
682
684
  } else {
@@ -408,6 +408,7 @@ function getDebugKey(index, node) {
408
408
  // src/dom/resume.ts
409
409
  var registeredValues = {};
410
410
  var branchesEnabled;
411
+ var isInit;
411
412
  function enableBranches() {
412
413
  branchesEnabled = 1;
413
414
  }
@@ -517,7 +518,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
517
518
  );
518
519
  render.w = (effects = []) => {
519
520
  try {
520
- walk2();
521
+ isInit || walk2();
521
522
  isResuming = 1;
522
523
  for (const serialized of resumes = render.r || []) {
523
524
  if (typeof serialized === "string") {
@@ -564,7 +565,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
564
565
  }
565
566
  runEffects(effects);
566
567
  } finally {
567
- isResuming = visits.length = resumes.length = 0;
568
+ isInit = isResuming = visits.length = resumes.length = 0;
568
569
  }
569
570
  };
570
571
  return render;
@@ -574,6 +575,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
574
575
  if (renders) {
575
576
  initRuntime(renders);
576
577
  for (const renderId in renders) {
578
+ isInit = 1;
577
579
  resumeRender(renderId).w();
578
580
  }
579
581
  } else {
package/dist/dom.js CHANGED
@@ -332,7 +332,7 @@ function walkInternal(currentWalkIndex, walkCodes, scope) {
332
332
  }
333
333
 
334
334
  // src/dom/resume.ts
335
- var registeredValues = {}, branchesEnabled;
335
+ var registeredValues = {}, branchesEnabled, isInit;
336
336
  function enableBranches() {
337
337
  branchesEnabled = 1;
338
338
  }
@@ -377,7 +377,7 @@ function init(runtimeId = "M") {
377
377
  );
378
378
  return render.w = (effects = []) => {
379
379
  try {
380
- walk2(), isResuming = 1;
380
+ isInit || walk2(), isResuming = 1;
381
381
  for (let serialized of resumes = render.r || [])
382
382
  if (typeof serialized == "string")
383
383
  lastEffect = serialized;
@@ -399,7 +399,7 @@ function init(runtimeId = "M") {
399
399
  }, visitType === "*" /* Node */ ? visitScope["J" /* Getter */ + nextToken()] = /* @__PURE__ */ ((node) => () => node)(visitScope[lastToken] = visit.previousSibling) : branchesEnabled && visitBranches();
400
400
  runEffects(effects);
401
401
  } finally {
402
- isResuming = visits.length = resumes.length = 0;
402
+ isInit = isResuming = visits.length = resumes.length = 0;
403
403
  }
404
404
  }, render;
405
405
  })
@@ -408,7 +408,7 @@ function init(runtimeId = "M") {
408
408
  if (renders) {
409
409
  initRuntime(renders);
410
410
  for (let renderId in renders)
411
- resumeRender(renderId).w();
411
+ isInit = 1, resumeRender(renderId).w();
412
412
  } else
413
413
  defineRuntime({
414
414
  configurable: !0,
package/dist/dom.mjs CHANGED
@@ -232,7 +232,7 @@ function walkInternal(currentWalkIndex, walkCodes, scope) {
232
232
  }
233
233
 
234
234
  // src/dom/resume.ts
235
- var registeredValues = {}, branchesEnabled;
235
+ var registeredValues = {}, branchesEnabled, isInit;
236
236
  function enableBranches() {
237
237
  branchesEnabled = 1;
238
238
  }
@@ -277,7 +277,7 @@ function init(runtimeId = "M") {
277
277
  );
278
278
  return render.w = (effects = []) => {
279
279
  try {
280
- walk2(), isResuming = 1;
280
+ isInit || walk2(), isResuming = 1;
281
281
  for (let serialized of resumes = render.r || [])
282
282
  if (typeof serialized == "string")
283
283
  lastEffect = serialized;
@@ -299,7 +299,7 @@ function init(runtimeId = "M") {
299
299
  }, visitType === "*" /* Node */ ? visitScope["J" /* Getter */ + nextToken()] = /* @__PURE__ */ ((node) => () => node)(visitScope[lastToken] = visit.previousSibling) : branchesEnabled && visitBranches();
300
300
  runEffects(effects);
301
301
  } finally {
302
- isResuming = visits.length = resumes.length = 0;
302
+ isInit = isResuming = visits.length = resumes.length = 0;
303
303
  }
304
304
  }, render;
305
305
  })
@@ -308,7 +308,7 @@ function init(runtimeId = "M") {
308
308
  if (renders) {
309
309
  initRuntime(renders);
310
310
  for (let renderId in renders)
311
- resumeRender(renderId).w();
311
+ isInit = 1, resumeRender(renderId).w();
312
312
  } else
313
313
  defineRuntime({
314
314
  configurable: !0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/runtime-tags",
3
- "version": "6.0.112",
3
+ "version": "6.0.113",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",