@askrjs/askr 0.0.81 → 0.0.82

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/dist/benchmark.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { r as flushRuntimeScheduler } from "./access-ePqdQqkV.js";
2
- import { t as installRendererBridge } from "./renderer-BU9TOqrA.js";
2
+ import { t as installRendererBridge } from "./renderer-7atwHjve.js";
3
3
  import { t as state } from "./state-BCl9DeiN.js";
4
4
  import { t as selector } from "./selector-DVwvof1M.js";
5
5
  import { i as For } from "./control-C0X1zgrM.js";
6
6
  import { jsx, jsxs } from "./jsx-runtime.js";
7
- import { t as createIsland } from "./boot-CrpQQNAt.js";
7
+ import { t as createIsland } from "./boot-C7Q1dWzA.js";
8
8
  //#region src/bench/components/benchmark-row.tsx
9
9
  function BenchmarkRow({ item, isSelected, onSelect, onRemove }) {
10
10
  return /* @__PURE__ */ jsxs("tr", {
@@ -63,8 +63,8 @@ function BenchmarkTable({ rows, isSelected, onSelect, onRemove }) {
63
63
  installRendererBridge();
64
64
  const benchmarkMetadata = {
65
65
  packageName: "@askrjs/askr",
66
- packageVersion: "0.0.81",
67
- buildLabel: "0.0.81-local"
66
+ packageVersion: "0.0.82",
67
+ buildLabel: "0.0.82-local"
68
68
  };
69
69
  function getBenchmarkMetadata() {
70
70
  return { ...benchmarkMetadata };
@@ -1,2 +1,2 @@
1
- import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-CrpQQNAt.js";
1
+ import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-C7Q1dWzA.js";
2
2
  export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
@@ -3,7 +3,7 @@ import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
3
3
  import { n as createComponentInstance, r as executeComponent } from "./component-internal-DsM75Gl1.js";
4
4
  import { t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
5
5
  import { p as isPromiseLike } from "./lifecycle-batch-CwHCDseR.js";
6
- import { a as withIntrinsicHydrationAdoption, c as beginHydrationListenerTransaction, d as setStaticChildSlotsCacheEnabled, i as registerDeferredHydrationBoundary, l as commitHydrationListenerTransaction, n as activateHydrationBoundary$1, o as beginHydrationDirectListenerMode, r as clearDeferredHydrationBoundaries, s as endHydrationDirectListenerMode, t as installRendererBridge, u as discardHydrationListenerTransaction } from "./renderer-BU9TOqrA.js";
6
+ import { a as withIntrinsicHydrationAdoption, c as beginHydrationListenerTransaction, d as setStaticChildSlotsCacheEnabled, i as registerDeferredHydrationBoundary, l as commitHydrationListenerTransaction, n as activateHydrationBoundary$1, o as beginHydrationDirectListenerMode, r as clearDeferredHydrationBoundaries, s as endHydrationDirectListenerMode, t as installRendererBridge, u as discardHydrationListenerTransaction } from "./renderer-7atwHjve.js";
7
7
  import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-CEF-cX49.js";
8
8
  import { T as assertExecutionModel, c as _applyManifest, d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, o as reviveDeferredValue, p as hasRouteRenderData, v as pageRenderEnvelope } from "./deferred-rdHAgyKe.js";
9
9
  import { c as stopHydrationRenderPhase, o as startHydrationRenderPhase } from "./render-context-D-DFk2WN.js";
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { g as readScope, u as defineScope } from "./component-internal-DsM75Gl1.
4
4
  import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
5
5
  import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
6
6
  import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
7
- import { t as installRendererBridge } from "./renderer-BU9TOqrA.js";
7
+ import { t as installRendererBridge } from "./renderer-7atwHjve.js";
8
8
  import { a as registerSSRStyle } from "./render-context-D-DFk2WN.js";
9
9
  import { t as state } from "./state-BCl9DeiN.js";
10
10
  import { t as selector } from "./selector-DVwvof1M.js";
@@ -3466,10 +3466,9 @@ function updateMixedControlChildren(parent, children, forceUpdate) {
3466
3466
  if (!controlState) throw new Error("[updateElementChildren] Control boundary missing internal state");
3467
3467
  const childVNodes = evaluateControlBoundaryState(controlState);
3468
3468
  const cursorAfterBoundary = cursor ? isRangeStart(cursor) ? findRangeEnd(cursor)?.nextSibling ?? cursor.nextSibling : cursor.nextSibling : null;
3469
- const ranges = syncControlBoundaryInMixedParent(parent, controlState, childVNodes, cursor);
3469
+ const [ranges, postBoundaryCursor] = syncControlBoundaryInMixedParent(parent, controlState, childVNodes, cursor);
3470
3470
  if (controlState.kind === "for") {
3471
- const last = ranges[ranges.length - 1];
3472
- cursor = last ? last.end.nextSibling : cursorAfterBoundary?.parentNode === parent ? cursorAfterBoundary : cursor?.parentNode === parent ? cursor : null;
3471
+ cursor = postBoundaryCursor;
3473
3472
  continue;
3474
3473
  }
3475
3474
  for (const range of ranges) if (range.start.parentNode !== parent) moveRange(parent, range, cursor?.parentNode === parent ? cursor : null);
@@ -4606,7 +4605,7 @@ function syncControlBoundaryInMixedParent(parent, controlState, childrenVNodes,
4606
4605
  anchor = range.start;
4607
4606
  }
4608
4607
  clearBoundaryState(controlState);
4609
- return nextRanges;
4608
+ return [nextRanges, afterBoundary?.parentNode === parent ? afterBoundary : null];
4610
4609
  }
4611
4610
  const activeScope = controlState.activeScope;
4612
4611
  const activeVNode = childrenVNodes[0];
@@ -4622,7 +4621,7 @@ function syncControlBoundaryInMixedParent(parent, controlState, childrenVNodes,
4622
4621
  for (const range of controlState.lastRemovedRanges) if (range !== nextRange) removeRange(range, teardownBoundaryRangeNode);
4623
4622
  for (const node of controlState.lastRemovedNodes) if (node.parentNode === parent) teardownBoundaryRangeNode(node);
4624
4623
  clearBoundaryState(controlState);
4625
- return nextRange ? [nextRange] : [];
4624
+ return [nextRange ? [nextRange] : [], nextRange?.end.nextSibling ?? null];
4626
4625
  }
4627
4626
  //#endregion
4628
4627
  //#region src/renderer/boundary-commit-owner.ts
@@ -1,7 +1,7 @@
1
1
  import { r as flushRuntimeScheduler } from "../access-ePqdQqkV.js";
2
2
  import { r as computeRouteActivityMatches } from "../route-matching-BUwz4kfl.js";
3
3
  import { l as addInvalidationListener } from "../data-runtime-D68YOo9L.js";
4
- import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-CrpQQNAt.js";
4
+ import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-C7Q1dWzA.js";
5
5
  //#region src/testing/render.ts
6
6
  const renderStates = /* @__PURE__ */ new WeakMap();
7
7
  const eventConstructorNames = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askrjs/askr",
3
- "version": "0.0.81",
3
+ "version": "0.0.82",
4
4
  "description": "Actor-backed deterministic UI framework",
5
5
  "keywords": [
6
6
  "askr",