@askrjs/askr 0.0.91 → 0.0.92

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.
Files changed (80) hide show
  1. package/dist/{access-Dpfoi4cA.js → access-DSkccuEI.js} +5 -2
  2. package/dist/actions/index.d.ts +1 -1
  3. package/dist/actions/index.js +3 -3
  4. package/dist/{activity-dKH6nlpj.js → activity-DodHdC0L.js} +7 -5
  5. package/dist/{activity-CF2_JvJs.d.ts → activity-DxUcygE5.d.ts} +1 -1
  6. package/dist/benchmark.d.ts +1 -1
  7. package/dist/benchmark.js +8 -8
  8. package/dist/boot/index.d.ts +3 -4
  9. package/dist/boot/index.js +1 -1
  10. package/dist/{boot-D3zVVWuN.js → boot-D71bjP4r.js} +27 -21
  11. package/dist/{cleanup-c837KVij.js → cleanup-DAAhJjx5.js} +8 -5
  12. package/dist/{component-cleanup-BUfUleGZ.js → component-cleanup-CJCfu5ed.js} +3 -3
  13. package/dist/{component-internal-C4uwwUaK.js → component-internal-DlAkCgBE.js} +5 -5
  14. package/dist/{component-scope-DzJEbYGE.js → component-scope-4I3yEMkb.js} +13 -1
  15. package/dist/components/index.d.ts +2 -2
  16. package/dist/components/index.js +1 -1
  17. package/dist/control/index.d.ts +1 -1
  18. package/dist/control/index.js +1 -1
  19. package/dist/{control-CsGs2bLS.d.ts → control-CdzY49Q2.d.ts} +1 -1
  20. package/dist/{control-CON10J1p.js → control-Dv540XtV.js} +4 -4
  21. package/dist/{csp-nonce-DH0TrDij.js → csp-nonce-ByMbWv8s.js} +1 -1
  22. package/dist/data/index.d.ts +1 -2
  23. package/dist/data/index.js +3 -3
  24. package/dist/{data-Bh_3OETq.js → data-DcikEH9N.js} +12 -12
  25. package/dist/{data-runtime-wbooGyu7.js → data-runtime-oIdQWnPW.js} +1 -1
  26. package/dist/{deferred-D6nZaIPs.js → deferred-B6CafO5u.js} +5 -5
  27. package/dist/{effect-lnxQIpJG.js → effect-BdZcHblj.js} +73 -14
  28. package/dist/{fastlane-CrfB3QG0.js → fastlane-B2s24fWt.js} +22 -3
  29. package/dist/{for-internal-Bsm0B8GZ.js → for-internal-T1C7jd7x.js} +6 -6
  30. package/dist/foundations/icon/index.d.ts +1 -2
  31. package/dist/foundations/index.d.ts +2 -2
  32. package/dist/foundations/index.js +1 -1
  33. package/dist/foundations/state/index.d.ts +1 -1
  34. package/dist/foundations/state/index.js +1 -1
  35. package/dist/foundations/structures/index.d.ts +2 -2
  36. package/dist/foundations/structures/index.js +1 -1
  37. package/dist/fx/index.js +2 -2
  38. package/dist/{types-iAmDSV6o.d.ts → index-2bk8nldG.d.ts} +63 -1
  39. package/dist/index-DA3g8lm8.d.ts +955 -0
  40. package/dist/{index-Cf2ANwPL.d.ts → index-oswRaMn6.d.ts} +2 -3
  41. package/dist/index.d.ts +4 -7
  42. package/dist/index.js +31 -16
  43. package/dist/jsx-dev-runtime.d.ts +2 -3
  44. package/dist/jsx-runtime-C_0v1pMN.d.ts +2 -0
  45. package/dist/{jsx-runtime-LHh5tcTe.d.ts → jsx-runtime-Cfb2umb4.d.ts} +2 -3
  46. package/dist/jsx-runtime.d.ts +2 -2
  47. package/dist/{lifecycle-batch-Dfpid9-A.js → lifecycle-batch-Cyfd07rf.js} +2 -2
  48. package/dist/{lifecycle-operations-CMK1AN2C.js → lifecycle-operations-CQ8fsc94.js} +2 -2
  49. package/dist/{manifest-fBb2ynKL.js → manifest-Dv0bO6kg.js} +1 -1
  50. package/dist/{navigate-CnQMXze1.js → navigate-BbWj-QU-.js} +12 -10
  51. package/dist/{navigate-BO7M2iUG.d.ts → navigate-CZHPEUC4.d.ts} +1 -1
  52. package/dist/{query-registry-B4LpVtlT.js → query-registry-qm13pEdK.js} +1 -1
  53. package/dist/{readable-B5NtV7V0.js → readable-B99wh5Z_.js} +9 -6
  54. package/dist/{renderer-y2DL627q.js → renderer-C6jz9nIN.js} +234 -188
  55. package/dist/{resolution-C9A31xQi.js → resolution-B21kmOkp.js} +5 -5
  56. package/dist/{resource-operation-whZDJAYv.js → resource-operation-CaAttQqz.js} +5 -5
  57. package/dist/resources/index.d.ts +2 -2
  58. package/dist/resources/index.js +6 -6
  59. package/dist/{route-matching-xlgdQXg_.js → route-matching-Bo6UqG-5.js} +13 -4
  60. package/dist/router/index.d.ts +4 -6
  61. package/dist/router/index.js +7 -7
  62. package/dist/{selector-BLNkRZ2i.js → selector-BLWwI55m.js} +22 -5
  63. package/dist/ssg/index.d.ts +1 -2
  64. package/dist/ssg/index.js +6 -6
  65. package/dist/ssr/index.d.ts +3 -5
  66. package/dist/ssr/index.js +1 -1
  67. package/dist/{ssr-DNJUPmMq.js → ssr-CaZfvQWn.js} +11 -11
  68. package/dist/{state-DCjONcHK.js → state-XPZYUzHL.js} +5 -5
  69. package/dist/{structures-m-cphWI-.js → structures-DKjkAmM5.js} +5 -5
  70. package/dist/testing/index.d.ts +2 -3
  71. package/dist/testing/index.js +6 -6
  72. package/dist/{jsx-BYXe_Nnk.d.ts → types-BA9FJtfR.d.ts} +16 -0
  73. package/dist/{verify-hydration-D8938Fw2.js → verify-hydration-CcF-HJil.js} +1 -1
  74. package/package.json +1 -1
  75. package/dist/control-D-FIa-n-.d.ts +0 -451
  76. package/dist/index-BU17hud9.d.ts +0 -52
  77. package/dist/index-CPlPDbEY.d.ts +0 -64
  78. package/dist/index-Izwp_ESC.d.ts +0 -458
  79. package/dist/jsx-runtime-BqhMEuT4.d.ts +0 -2
  80. package/dist/types-CsPtBGWb.d.ts +0 -16
@@ -1,6 +1,5 @@
1
- import { u as RenderableChild } from "./control-D-FIa-n-.js";
2
- import { r as JSXElement } from "./jsx-BYXe_Nnk.js";
3
- import "./types-CsPtBGWb.js";
1
+ import { Tt as RenderableChild } from "./index-DA3g8lm8.js";
2
+ import { r as JSXElement } from "./types-BA9FJtfR.js";
4
3
  //#region src/foundations/structures/layout.d.ts
5
4
  /**
6
5
  * Layout helper.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- import { b as StateTuple, c as readScope, o as Scope, s as defineScope, v as State, x as state, y as StateSetter } from "./control-D-FIa-n-.js";
2
- import { s as Props, t as Fragment } from "./jsx-BYXe_Nnk.js";
3
- import { f as QueryPrefetchContext, h as ServerQueryHandler, l as QueryDefinition, t as DataRuntime } from "./types-iAmDSV6o.js";
4
- import { $ as cspNonce, Q as CspNonceScope, at as derive, c as createRef, ct as RuntimeKeyedReorderDecision, d as registerSSRStyle, dt as getDefaultRuntime, et as Selector, ft as getSignal, it as Derived, lt as RuntimeRendererHost, nt as RenderDiagnosticsOptions, ot as AskrRuntime, rt as configureRenderDiagnostics, s as Ref, st as AskrRuntimeOptions, tt as selector, ut as createRuntime } from "./index-Izwp_ESC.js";
5
- import { a as Show, c as ForProps, i as MatchProps, n as CaseProps, o as ShowProps, r as Match, s as For, t as Case } from "./index-BU17hud9.js";
6
- import { a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime } from "./index-CPlPDbEY.js";
7
- import { i as jsxs, n as jsx } from "./jsx-runtime-LHh5tcTe.js";
1
+ import { A as RuntimeKeyedReorderDecision, C as selector, Ct as readScope, D as derive, E as Derived, Ft as StateTuple, It as state, M as createRuntime, N as getDefaultRuntime, Nt as State, O as AskrRuntime, P as getSignal, Pt as StateSetter, S as Selector, St as defineScope, T as configureRenderDiagnostics, _ as MatchProps, b as For, c as createRef, d as registerSSRStyle, f as CspNonceScope, g as Match, h as CaseProps, j as RuntimeRendererHost, k as AskrRuntimeOptions, m as Case, p as cspNonce, s as Ref, v as Show, w as RenderDiagnosticsOptions, x as ForProps, xt as Scope, y as ShowProps } from "./index-DA3g8lm8.js";
2
+ import { s as Props, t as Fragment } from "./types-BA9FJtfR.js";
3
+ import { E as QueryDefinition, O as QueryPrefetchContext, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, j as ServerQueryHandler, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-2bk8nldG.js";
4
+ import { i as jsxs, n as jsx } from "./jsx-runtime-Cfb2umb4.js";
8
5
  export { AskrRuntime, type AskrRuntimeOptions, Case, type CaseProps, CspNonceScope, type DataRuntime, type Derived, For, type ForProps, Fragment, Match, type MatchProps, type Props, type QueryDefinition, type QueryPrefetchContext, type Ref, type RenderDiagnosticsOptions, type RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, configureRenderDiagnostics, createQuery, createRef, createRuntime, cspNonce, defineQuery, defineScope, defineServerQueries, dehydrateDataRuntime, derive, getDefaultRuntime, getSignal, hydrateDataRuntime, jsx, jsxs, prefetchQuery, readScope, registerSSRStyle, selector, serveQuery, state };
package/dist/index.js CHANGED
@@ -1,18 +1,18 @@
1
- import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-Dpfoi4cA.js";
2
- import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
1
+ import { a as getRuntimeFlushVersion, f as AskrRuntime, h as getDefaultRuntime, m as createRuntime, t as enqueueRuntimeLane } from "./access-DSkccuEI.js";
2
+ import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
3
3
  import { n as Fragment } from "./jsx-C3IECePB.js";
4
- import { _ as readScope, d as defineScope, l as configureRenderDiagnostics } from "./component-internal-C4uwwUaK.js";
5
- import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
4
+ import { _ as readScope, d as defineScope, l as configureRenderDiagnostics } from "./component-internal-DlAkCgBE.js";
5
+ import { f as syncDerivedDependencySubscriptions, l as notifyReadableReaders, o as markReactivePropsDirtySource, p as withDerivedReadTracking, r as clearDerivedDependencySubscriptions, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B99wh5Z_.js";
6
6
  import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
7
- import { t as installRendererBridge } from "./renderer-y2DL627q.js";
7
+ import { t as installRendererBridge } from "./renderer-C6jz9nIN.js";
8
8
  import { c as registerSSRStyle } from "./render-context-B7ohlh6t.js";
9
- import { t as state } from "./state-DCjONcHK.js";
10
- import { t as selector } from "./selector-BLNkRZ2i.js";
11
- import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-DH0TrDij.js";
12
- import { i as For, n as Match, r as Show, t as Case } from "./control-CON10J1p.js";
9
+ import { t as state } from "./state-XPZYUzHL.js";
10
+ import { t as selector } from "./selector-BLWwI55m.js";
11
+ import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-ByMbWv8s.js";
12
+ import { i as For, n as Match, r as Show, t as Case } from "./control-Dv540XtV.js";
13
13
  import { jsx, jsxs } from "./jsx-runtime.js";
14
- import { t as createQuery } from "./data-Bh_3OETq.js";
15
- import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-B4LpVtlT.js";
14
+ import { t as createQuery } from "./data-DcikEH9N.js";
15
+ import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-qm13pEdK.js";
16
16
  //#region src/runtime/derive.ts
17
17
  const deriveCells = /* @__PURE__ */ new WeakMap();
18
18
  const dirtyDerivedCells = /* @__PURE__ */ new Set();
@@ -40,6 +40,7 @@ function flushDirtyDerivedCells() {
40
40
  hasPendingDerivedFlush = false;
41
41
  if (dirtyDerivedCells.size === 0) return;
42
42
  const pending = dirtyDerivedCells.values();
43
+ let failures = null;
43
44
  let next = pending.next();
44
45
  while (!next.done) {
45
46
  const cell = next.value;
@@ -49,9 +50,15 @@ function flushDirtyDerivedCells() {
49
50
  next = pending.next();
50
51
  continue;
51
52
  }
52
- recomputeDerivedCell(cell, true);
53
+ try {
54
+ recomputeDerivedCell(cell, true);
55
+ } catch (error) {
56
+ (failures ??= []).push(error);
57
+ }
53
58
  next = pending.next();
54
59
  }
60
+ if (failures?.length === 1) throw failures[0];
61
+ if (failures && failures.length > 1) throw new AggregateError(failures, "derive() recompute failures");
55
62
  }
56
63
  function recomputeDerivedCell(cell, notifyDownstream) {
57
64
  if (!cell._dirty && cell._hasValue) return cell._value;
@@ -79,7 +86,7 @@ function recomputeDerivedCell(cell, notifyDownstream) {
79
86
  cell._value = nextValue;
80
87
  cell._lastRecomputeFlushVersion = getRuntimeFlushVersion();
81
88
  if (valueChanged && notifyDownstream) {
82
- markReadableDerivedSubscribersDirty(cell);
89
+ markReadableDerivedSubscribersDirty(cell, true);
83
90
  markReactivePropsDirtySource(cell);
84
91
  notifyReadableReaders(cell);
85
92
  }
@@ -87,8 +94,13 @@ function recomputeDerivedCell(cell, notifyDownstream) {
87
94
  }
88
95
  function createDerivedCell(instance, generation, store, hookIndex, compute) {
89
96
  const cell = function derivedGetter() {
90
- recordReadableRead(cell);
91
- return recomputeDerivedCell(cell, cell._scheduled);
97
+ const derivedCell = cell;
98
+ if (!derivedCell._active) {
99
+ if (!derivedCell._hasValue) throw new Error("[Askr] derive() was disposed before producing a value.");
100
+ return derivedCell._value;
101
+ }
102
+ recordReadableRead(derivedCell);
103
+ return recomputeDerivedCell(derivedCell, derivedCell._scheduled);
92
104
  };
93
105
  cell._owner = instance;
94
106
  cell._hookIndex = hookIndex;
@@ -98,15 +110,18 @@ function createDerivedCell(instance, generation, store, hookIndex, compute) {
98
110
  cell._dirty = true;
99
111
  cell._scheduled = false;
100
112
  cell._evaluating = false;
113
+ cell._active = true;
101
114
  cell._lastRecomputeFlushVersion = -1;
102
115
  cell._sources = /* @__PURE__ */ new Set();
103
116
  cell._markDirty = () => {
104
117
  markDerivedCellDirty(cell);
105
118
  };
106
119
  cell._cleanup = () => {
120
+ if (!cell._active) return;
121
+ cell._active = false;
107
122
  cell._scheduled = false;
108
123
  cell._dirty = false;
109
- cell._hasValue = false;
124
+ cell._pendingDependencySources = void 0;
110
125
  dirtyDerivedCells.delete(cell);
111
126
  clearDerivedDependencySubscriptions(cell, cell._sources);
112
127
  cell._derivedSubscribers?.clear();
@@ -1,6 +1,5 @@
1
- import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./jsx-BYXe_Nnk.js";
2
- import { t as EagerControlPrimitive } from "./control-CsGs2bLS.js";
3
- import "./types-CsPtBGWb.js";
1
+ import { a as IntrinsicFallbackProps, i as JSXElementType, n as JSXComponent, o as KnownIntrinsicElementProps, r as JSXElement, s as Props, t as Fragment } from "./types-BA9FJtfR.js";
2
+ import { t as EagerControlPrimitive } from "./control-CdzY49Q2.js";
4
3
  //#region src/jsx/jsx-dev-runtime.d.ts
5
4
  declare namespace JSX {
6
5
  type ElementType = string | symbol | ((props: never) => unknown);
@@ -0,0 +1,2 @@
1
+ import "./types-BA9FJtfR.js";
2
+ import "./jsx-runtime-Cfb2umb4.js";
@@ -1,6 +1,5 @@
1
- import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./jsx-BYXe_Nnk.js";
2
- import { t as EagerControlPrimitive } from "./control-CsGs2bLS.js";
3
- import "./types-CsPtBGWb.js";
1
+ import { a as IntrinsicFallbackProps, o as KnownIntrinsicElementProps, r as JSXElement, s as Props } from "./types-BA9FJtfR.js";
2
+ import { t as EagerControlPrimitive } from "./control-CdzY49Q2.js";
4
3
  //#region src/jsx/jsx-runtime.d.ts
5
4
  declare namespace JSX {
6
5
  type ElementType = string | symbol | ((props: never) => unknown);
@@ -1,3 +1,3 @@
1
- import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./jsx-BYXe_Nnk.js";
2
- import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-LHh5tcTe.js";
1
+ import { i as JSXElementType, n as JSXComponent, r as JSXElement, t as Fragment } from "./types-BA9FJtfR.js";
2
+ import { i as jsxs, n as jsx, r as jsxDEV, t as JSX } from "./jsx-runtime-Cfb2umb4.js";
3
3
  export { Fragment, JSX, type JSXComponent, type JSXElement, type JSXElementType, jsx, jsxDEV, jsxs };
@@ -1,5 +1,5 @@
1
- import { v as logger } from "./access-Dpfoi4cA.js";
2
- import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B5NtV7V0.js";
1
+ import { y as logger } from "./access-DSkccuEI.js";
2
+ import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B99wh5Z_.js";
3
3
  //#region src/common/promise.ts
4
4
  function isPromiseLike(value) {
5
5
  return value !== null && (typeof value === "object" || typeof value === "function") && typeof value.then === "function";
@@ -1,5 +1,5 @@
1
- import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
2
- import { a as registerCommitOperation } from "./component-internal-C4uwwUaK.js";
1
+ import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-4I3yEMkb.js";
2
+ import { a as registerCommitOperation } from "./component-internal-DlAkCgBE.js";
3
3
  import { t as isRouteActivityActive } from "./route-activity-CNJfpwx-.js";
4
4
  //#region src/runtime/lifecycle-operations.ts
5
5
  function normalizePredicates(predicates) {
@@ -1,4 +1,4 @@
1
- import { A as getDefaultRouteBasePath, B as setDefaultRouteBasePath, F as insertRecordSorted, M as getRouteRecords, R as restoreRouteState, V as snapshotRouteState, _ as clearRouteState, h as addRouteToStores, j as getRouteList, k as getDefaultRouteAuthOptions, s as normalizeRouteBasePath, z as setDefaultRouteAuthOptions } from "./route-matching-xlgdQXg_.js";
1
+ import { A as getDefaultRouteBasePath, B as setDefaultRouteBasePath, F as insertRecordSorted, M as getRouteRecords, R as restoreRouteState, V as snapshotRouteState, _ as clearRouteState, h as addRouteToStores, j as getRouteList, k as getDefaultRouteAuthOptions, s as normalizeRouteBasePath, z as setDefaultRouteAuthOptions } from "./route-matching-Bo6UqG-5.js";
2
2
  //#region src/runtime/execution-model.ts
3
3
  const EXECUTION_MODEL_KEY = Symbol.for("__ASKR_EXECUTION_MODEL__");
4
4
  function getExecutionModel() {
@@ -1,14 +1,14 @@
1
- import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-Dpfoi4cA.js";
1
+ import { S as isProductionEnvironment, r as flushRuntimeScheduler, x as isDevelopmentEnvironment, y as logger } from "./access-DSkccuEI.js";
2
2
  import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
3
- import { r as executeComponent } from "./component-internal-C4uwwUaK.js";
4
- import { t as cleanupReadableSubscriptionSources } from "./readable-B5NtV7V0.js";
5
- import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
6
- import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-Dfpid9-A.js";
7
- import { _ as teardownNodeSubtree } from "./cleanup-c837KVij.js";
8
- import { t as CspNonceScope } from "./csp-nonce-DH0TrDij.js";
9
- import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-xlgdQXg_.js";
10
- import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-C9A31xQi.js";
11
- import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-dKH6nlpj.js";
3
+ import { r as executeComponent } from "./component-internal-DlAkCgBE.js";
4
+ import { t as cleanupReadableSubscriptionSources } from "./readable-B99wh5Z_.js";
5
+ import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-CJCfu5ed.js";
6
+ import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-Cyfd07rf.js";
7
+ import { _ as teardownNodeSubtree } from "./cleanup-DAAhJjx5.js";
8
+ import { t as CspNonceScope } from "./csp-nonce-ByMbWv8s.js";
9
+ import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-Bo6UqG-5.js";
10
+ import { a as resolveRouteRequest, i as hasRouteRenderData, n as getRouteRenderContext, r as getRouteRenderData, u as withoutRouteHydrationMetadata } from "./resolution-B21kmOkp.js";
11
+ import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-DodHdC0L.js";
12
12
  import { r as getDefaultPortalHost, t as clearRegisteredDefaultPortalForInstance } from "./default-portal-runtime-DvMvWJVp.js";
13
13
  //#region src/router/navigation-registry.ts
14
14
  let currentInstance = null;
@@ -724,6 +724,8 @@ function updateRouteRuntime(instance, resolved, href) {
724
724
  const runtime = createAppRenderRuntime({
725
725
  framework: withoutRouteHydrationMetadata(current?.framework),
726
726
  dataRuntime: current?.dataRuntime,
727
+ routeRegistry: current?.routeRegistry,
728
+ routeAuth: current?.routeAuth,
727
729
  route: resolved?.kind === "render" ? getRouteRenderData(resolved) : void 0,
728
730
  hasRoute: resolved?.kind === "render" && hasRouteRenderData(resolved)
729
731
  });
@@ -1,4 +1,4 @@
1
- import "./index-Izwp_ESC.js";
1
+ import "./index-DA3g8lm8.js";
2
2
  //#region src/router/navigation-scroll.d.ts
3
3
  type NavigationScrollBehavior = 'top' | 'preserve';
4
4
  type HistoryScrollBehavior = 'restore' | 'top' | 'preserve';
@@ -1,4 +1,4 @@
1
- import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-wbooGyu7.js";
1
+ import { i as getDefaultDataRuntime, t as createDataRuntime } from "./data-runtime-oIdQWnPW.js";
2
2
  //#region src/common/telemetry.ts
3
3
  function withTelemetry(span, fields, work) {
4
4
  return span ? span(fields, work) : work();
@@ -1,5 +1,5 @@
1
- import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-Dpfoi4cA.js";
2
- import { p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
1
+ import { c as markRuntimeReactivePropsDirtySource, n as enqueueRuntimeTask, s as isRuntimeSchedulerExecuting } from "./access-DSkccuEI.js";
2
+ import { p as getCurrentInstance } from "./component-scope-4I3yEMkb.js";
3
3
  //#region src/runtime/readable.ts
4
4
  const DEVELOPMENT_BUILD_ENABLED = false;
5
5
  function markReadableUsage(source) {
@@ -95,10 +95,10 @@ function finalizeReadableSubscriptionsFromSnapshot(instance, token, newSet, pend
95
95
  }
96
96
  instance.lastRenderToken = token;
97
97
  if (newSet) for (const source of newSet) {
98
- if (pendingVersions && (!oldSet || oldSet.has(source))) {
98
+ if (pendingVersions) {
99
99
  const sourceVersion = source._version ?? 0;
100
100
  const readVersion = pendingVersions.get(source);
101
- if (readVersion !== void 0 && sourceVersion !== readVersion) needsFollowUpUpdate = true;
101
+ if (readVersion !== void 0 && sourceVersion !== readVersion && (!oldSet || oldSet.has(source) || isRuntimeSchedulerExecuting())) needsFollowUpUpdate = true;
102
102
  }
103
103
  let readers = source._readers;
104
104
  if (!readers) {
@@ -159,10 +159,13 @@ function clearDerivedDependencySubscriptions(subscriber, sources) {
159
159
  for (const source of sources) source._derivedSubscribers?.delete(subscriber);
160
160
  sources.clear();
161
161
  }
162
- function markReadableDerivedSubscribersDirty(source) {
162
+ function markReadableDerivedSubscribersDirty(source, skipCurrentSubscriber = false) {
163
163
  const subscribers = source._derivedSubscribers;
164
164
  if (!subscribers || subscribers.size === 0) return;
165
- for (const subscriber of subscribers) subscriber._markDirty();
165
+ for (const subscriber of subscribers) {
166
+ if (skipCurrentSubscriber && subscriber === currentDerivedSubscriber) continue;
167
+ subscriber._markDirty();
168
+ }
166
169
  }
167
170
  function markReactivePropsDirtySource(source) {
168
171
  try {