marko 6.0.65 → 6.0.66

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.
@@ -3346,19 +3346,24 @@ var compat = {
3346
3346
  } else {
3347
3347
  renderer(normalizedInput);
3348
3348
  }
3349
- const asyncOut = classAPIOut.beginAsync();
3350
- (boundary.onNext = () => {
3351
- if (boundary.signal.aborted) {
3352
- asyncOut.error(boundary.signal.reason);
3353
- boundary.onNext = NOOP3;
3354
- } else if (!boundary.count) {
3355
- completeChunks.push(head = head.consume());
3356
- asyncOut.write(head.html);
3357
- asyncOut.script(head.scripts);
3358
- asyncOut.end();
3359
- head.html = head.scripts = "";
3360
- }
3361
- })();
3349
+ const asyncOut = classAPIOut.beginAsync({ last: true, timeout: -1 });
3350
+ classAPIOut.onLast((next) => {
3351
+ (boundary.onNext = () => {
3352
+ if (boundary.signal.aborted) {
3353
+ asyncOut.error(boundary.signal.reason);
3354
+ boundary.onNext = NOOP3;
3355
+ } else if (!boundary.count) {
3356
+ boundary.onNext = NOOP3;
3357
+ head = head.consume();
3358
+ asyncOut.write(head.html);
3359
+ asyncOut.script(head.scripts);
3360
+ asyncOut.end();
3361
+ head.html = head.scripts = "";
3362
+ completeChunks.push(head);
3363
+ next();
3364
+ }
3365
+ })();
3366
+ });
3362
3367
  });
3363
3368
  },
3364
3369
  registerRenderer(renderer, id) {
@@ -3262,19 +3262,24 @@ var compat = {
3262
3262
  } else {
3263
3263
  renderer(normalizedInput);
3264
3264
  }
3265
- const asyncOut = classAPIOut.beginAsync();
3266
- (boundary.onNext = () => {
3267
- if (boundary.signal.aborted) {
3268
- asyncOut.error(boundary.signal.reason);
3269
- boundary.onNext = NOOP3;
3270
- } else if (!boundary.count) {
3271
- completeChunks.push(head = head.consume());
3272
- asyncOut.write(head.html);
3273
- asyncOut.script(head.scripts);
3274
- asyncOut.end();
3275
- head.html = head.scripts = "";
3276
- }
3277
- })();
3265
+ const asyncOut = classAPIOut.beginAsync({ last: true, timeout: -1 });
3266
+ classAPIOut.onLast((next) => {
3267
+ (boundary.onNext = () => {
3268
+ if (boundary.signal.aborted) {
3269
+ asyncOut.error(boundary.signal.reason);
3270
+ boundary.onNext = NOOP3;
3271
+ } else if (!boundary.count) {
3272
+ boundary.onNext = NOOP3;
3273
+ head = head.consume();
3274
+ asyncOut.write(head.html);
3275
+ asyncOut.script(head.scripts);
3276
+ asyncOut.end();
3277
+ head.html = head.scripts = "";
3278
+ completeChunks.push(head);
3279
+ next();
3280
+ }
3281
+ })();
3282
+ });
3278
3283
  });
3279
3284
  },
3280
3285
  registerRenderer(renderer, id) {
package/dist/html.js CHANGED
@@ -2165,10 +2165,12 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
2165
2165
  writeScope(scopeId, { m5c: component.id }), _script(scopeId, SET_SCOPE_REGISTER_ID);
2166
2166
  }
2167
2167
  isTemplate(renderer) && willRerender ? renderer(normalizedInput, 1) : renderer(normalizedInput);
2168
- let asyncOut = classAPIOut.beginAsync();
2169
- (boundary.onNext = () => {
2170
- boundary.signal.aborted ? (asyncOut.error(boundary.signal.reason), boundary.onNext = NOOP3) : boundary.count || (completeChunks.push(head = head.consume()), asyncOut.write(head.html), asyncOut.script(head.scripts), asyncOut.end(), head.html = head.scripts = "");
2171
- })();
2168
+ let asyncOut = classAPIOut.beginAsync({ last: !0, timeout: -1 });
2169
+ classAPIOut.onLast((next) => {
2170
+ (boundary.onNext = () => {
2171
+ boundary.signal.aborted ? (asyncOut.error(boundary.signal.reason), boundary.onNext = NOOP3) : boundary.count || (boundary.onNext = NOOP3, head = head.consume(), asyncOut.write(head.html), asyncOut.script(head.scripts), asyncOut.end(), head.html = head.scripts = "", completeChunks.push(head), next());
2172
+ })();
2173
+ });
2172
2174
  });
2173
2175
  },
2174
2176
  registerRenderer(renderer, id) {
package/dist/html.mjs CHANGED
@@ -2084,10 +2084,12 @@ var K_TAGS_API_STATE = Symbol(), COMPAT_REGISTRY = /* @__PURE__ */ new WeakMap()
2084
2084
  writeScope(scopeId, { m5c: component.id }), _script(scopeId, SET_SCOPE_REGISTER_ID);
2085
2085
  }
2086
2086
  isTemplate(renderer) && willRerender ? renderer(normalizedInput, 1) : renderer(normalizedInput);
2087
- let asyncOut = classAPIOut.beginAsync();
2088
- (boundary.onNext = () => {
2089
- boundary.signal.aborted ? (asyncOut.error(boundary.signal.reason), boundary.onNext = NOOP3) : boundary.count || (completeChunks.push(head = head.consume()), asyncOut.write(head.html), asyncOut.script(head.scripts), asyncOut.end(), head.html = head.scripts = "");
2090
- })();
2087
+ let asyncOut = classAPIOut.beginAsync({ last: !0, timeout: -1 });
2088
+ classAPIOut.onLast((next) => {
2089
+ (boundary.onNext = () => {
2090
+ boundary.signal.aborted ? (asyncOut.error(boundary.signal.reason), boundary.onNext = NOOP3) : boundary.count || (boundary.onNext = NOOP3, head = head.consume(), asyncOut.write(head.html), asyncOut.script(head.scripts), asyncOut.end(), head.html = head.scripts = "", completeChunks.push(head), next());
2091
+ })();
2092
+ });
2091
2093
  });
2092
2094
  },
2093
2095
  registerRenderer(renderer, id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.65",
3
+ "version": "6.0.66",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",