@askrjs/askr 0.0.83 → 0.0.85

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 (64) hide show
  1. package/dist/{access-ePqdQqkV.js → access-Dpfoi4cA.js} +7 -1
  2. package/dist/actions/index.d.ts +1 -1
  3. package/dist/actions/index.js +1 -1
  4. package/dist/{activity-CXEaU-Al.d.ts → activity-B1I5HJQI.d.ts} +1 -1
  5. package/dist/{activity-CnSRFO3d.js → activity-Jd9CgEa3.js} +52 -15
  6. package/dist/{authoring-DbGEgg40.js → authoring-DdQ3pHqt.js} +6 -3
  7. package/dist/benchmark.js +8 -8
  8. package/dist/boot/index.d.ts +3 -3
  9. package/dist/boot/index.js +1 -1
  10. package/dist/{boot-uK1hzONI.js → boot-DWe880Et.js} +16 -15
  11. package/dist/{cleanup-CEF-cX49.js → cleanup-c837KVij.js} +17 -7
  12. package/dist/{component-cleanup-oWN45rfa.js → component-cleanup-BUfUleGZ.js} +2 -2
  13. package/dist/{component-internal-DsM75Gl1.js → component-internal-DcrLymUJ.js} +9 -6
  14. package/dist/components/index.d.ts +1 -1
  15. package/dist/components/index.js +1 -1
  16. package/dist/control/index.d.ts +1 -1
  17. package/dist/control/index.js +1 -1
  18. package/dist/{control-Cix3yjVf.d.ts → control-DhUZU4_V.d.ts} +2 -1
  19. package/dist/{control-C0X1zgrM.js → control-oLADku43.js} +4 -4
  20. package/dist/{csp-nonce-DDt0UNdt.js → csp-nonce-Bc52OIVc.js} +19 -2
  21. package/dist/data/index.js +1 -1
  22. package/dist/{data-G0hURNm_.js → data-Dkqb8_QP.js} +3 -3
  23. package/dist/{deferred-rdHAgyKe.js → deferred-vUOy-awa.js} +198 -16
  24. package/dist/{effect-2IIWvUjG.js → effect-lnxQIpJG.js} +2 -2
  25. package/dist/{fastlane-CkBXZ_3K.js → fastlane-CrfB3QG0.js} +2 -2
  26. package/dist/{for-internal-DRbV0h1d.js → for-internal-B_mnQhan.js} +55 -22
  27. package/dist/foundations/index.d.ts +1 -1
  28. package/dist/foundations/index.js +2 -2
  29. package/dist/foundations/state/index.d.ts +1 -1
  30. package/dist/foundations/state/index.js +1 -1
  31. package/dist/foundations/structures/index.d.ts +2 -2
  32. package/dist/foundations/structures/index.js +3 -3
  33. package/dist/fx/index.js +1 -1
  34. package/dist/{index-Vs1EeWEr.d.ts → index-Bkh9S9-t.d.ts} +6 -2
  35. package/dist/{index-TlEvex-C.d.ts → index-pIgGaXvS.d.ts} +21 -4
  36. package/dist/{index-ho0Htetw.d.ts → index-r-nt13FE.d.ts} +1 -1
  37. package/dist/index.d.ts +3 -3
  38. package/dist/index.js +10 -10
  39. package/dist/{lifecycle-batch-CwHCDseR.js → lifecycle-batch-Dfpid9-A.js} +45 -24
  40. package/dist/{lifecycle-operations-BJfxWUJr.js → lifecycle-operations-BrYrBsXY.js} +1 -1
  41. package/dist/{navigate-DfY1BUYc.d.ts → navigate-NyIjQUwI.d.ts} +1 -1
  42. package/dist/{navigate-Crvd5gUG.js → navigate-b4GGxO_l.js} +15 -14
  43. package/dist/{portal-BZ_rN17v.js → portal-BVWjAhNQ.js} +5 -5
  44. package/dist/{readable-B3VIOfd7.js → readable-B5NtV7V0.js} +3 -3
  45. package/dist/{renderer-VSw0KKDG.js → renderer-CZzNtoj2.js} +3355 -2813
  46. package/dist/resources/index.d.ts +2 -2
  47. package/dist/resources/index.js +5 -5
  48. package/dist/{route-matching-BUwz4kfl.js → route-matching-DHduNiGk.js} +49 -6
  49. package/dist/router/index.d.ts +7 -7
  50. package/dist/router/index.js +9 -7
  51. package/dist/{selector-DVwvof1M.js → selector-Ck_Pp9av.js} +2 -2
  52. package/dist/ssg/index.d.ts +10 -4
  53. package/dist/ssg/index.js +30 -15
  54. package/dist/ssr/index.d.ts +7 -3
  55. package/dist/ssr/index.js +1 -1
  56. package/dist/{ssr-C_Ql5_Kg.js → ssr-CpiBHMNv.js} +40 -26
  57. package/dist/ssr-DSHd_Q9K.js +25 -0
  58. package/dist/{state-BCl9DeiN.js → state-DCjONcHK.js} +4 -3
  59. package/dist/{structures-D3vO-WMN.js → structures-DSLF_iis.js} +4 -2
  60. package/dist/testing/index.d.ts +2 -2
  61. package/dist/testing/index.js +3 -3
  62. package/dist/{verify-hydration-CNLXUcuR.js → verify-hydration-C3QBBQqR.js} +2 -2
  63. package/package.json +3 -3
  64. package/dist/ssr-CbQO5xd3.js +0 -12
@@ -1,4 +1,4 @@
1
- import { c as RenderableChild, l as VNode, t as ForEachSource } from "./control-Cix3yjVf.js";
1
+ import { d as VNode, t as ForEachSource, u as RenderableChild } from "./control-DhUZU4_V.js";
2
2
  import { r as JSXElement } from "./jsx-Dvr2SGRG.js";
3
3
  //#region src/control/shared.d.ts
4
4
  type BoundaryChild = RenderableChild;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as StateTuple, a as defineScope, g as StateSetter, h as State, i as Scope, o as readScope, v as state } from "./control-Cix3yjVf.js";
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-DhUZU4_V.js";
2
2
  import { s as Props, t as Fragment } from "./jsx-Dvr2SGRG.js";
3
- import { $ as cspNonce, Q as CspNonceScope, at as AskrRuntimeOptions, c as createRef, ct as createRuntime, d as registerSSRStyle, et as Selector, it as AskrRuntime, lt as getDefaultRuntime, nt as Derived, ot as RuntimeKeyedReorderDecision, rt as derive, s as Ref, st as RuntimeRendererHost, tt as selector, ut as getSignal } from "./index-TlEvex-C.js";
4
- 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-ho0Htetw.js";
3
+ import { $ as cspNonce, Q as CspNonceScope, at as AskrRuntimeOptions, c as createRef, ct as createRuntime, d as registerSSRStyle, et as Selector, it as AskrRuntime, lt as getDefaultRuntime, nt as Derived, ot as RuntimeKeyedReorderDecision, rt as derive, s as Ref, st as RuntimeRendererHost, tt as selector, ut as getSignal } from "./index-pIgGaXvS.js";
4
+ 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-r-nt13FE.js";
5
5
  import { A as ServerQueryHandler, D as QueryPrefetchContext, T as QueryDefinition, a as defineServerQueries, c as prefetchQuery, h as createQuery, i as defineQuery, l as serveQuery, o as dehydrateDataRuntime, s as hydrateDataRuntime, v as DataRuntime } from "./index-5S-fi2xy.js";
6
6
  import { i as jsxs, n as jsx } from "./jsx-runtime-Cr1jspx9.js";
7
7
  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 RuntimeKeyedReorderDecision, type RuntimeRendererHost, type Scope, type Selector, type ServerQueryHandler, Show, type ShowProps, type State, type StateSetter, type StateTuple, 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,17 +1,17 @@
1
- import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-ePqdQqkV.js";
2
- import { n as Fragment } from "./jsx-C3IECePB.js";
3
- import { g as readScope, u as defineScope } from "./component-internal-DsM75Gl1.js";
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";
1
+ import { a as getRuntimeFlushVersion, d as AskrRuntime, m as getDefaultRuntime, p as createRuntime, t as enqueueRuntimeLane } from "./access-Dpfoi4cA.js";
5
2
  import { g as getSignal, i as claimHookIndex, p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
3
+ import { n as Fragment } from "./jsx-C3IECePB.js";
4
+ import { g as readScope, u as defineScope } from "./component-internal-DcrLymUJ.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";
6
6
  import { n as isSnapshotSource } from "./snapshot-source-BB42xgwb.js";
7
- import { t as installRendererBridge } from "./renderer-VSw0KKDG.js";
7
+ import { t as installRendererBridge } from "./renderer-CZzNtoj2.js";
8
8
  import { a as registerSSRStyle } from "./render-context-D-DFk2WN.js";
9
- import { t as state } from "./state-BCl9DeiN.js";
10
- import { t as selector } from "./selector-DVwvof1M.js";
11
- import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-DDt0UNdt.js";
12
- import { i as For, n as Match, r as Show, t as Case } from "./control-C0X1zgrM.js";
9
+ import { t as state } from "./state-DCjONcHK.js";
10
+ import { t as selector } from "./selector-Ck_Pp9av.js";
11
+ import { n as cspNonce, t as CspNonceScope } from "./csp-nonce-Bc52OIVc.js";
12
+ import { i as For, n as Match, r as Show, t as Case } from "./control-oLADku43.js";
13
13
  import { jsx, jsxs } from "./jsx-runtime.js";
14
- import { t as createQuery } from "./data-G0hURNm_.js";
14
+ import { t as createQuery } from "./data-Dkqb8_QP.js";
15
15
  import { a as hydrateDataRuntime, i as dehydrateDataRuntime, n as defineQuery, o as prefetchQuery, r as defineServerQueries, s as serveQuery } from "./query-registry-BL6rjGsO.js";
16
16
  //#region src/runtime/derive.ts
17
17
  const deriveCells = /* @__PURE__ */ new WeakMap();
@@ -1,5 +1,5 @@
1
- import { v as logger } from "./access-ePqdQqkV.js";
2
- import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B3VIOfd7.js";
1
+ import { v as logger } from "./access-Dpfoi4cA.js";
2
+ import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-B5NtV7V0.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";
@@ -53,6 +53,41 @@ function executeCommittedLifecycleOperations(instance, wasFirstMount) {
53
53
  if (errors.length > 0) throw new AggregateError(errors, `Committed lifecycle operations failed for ${instance.id}`);
54
54
  }
55
55
  //#endregion
56
+ //#region src/runtime/inline-render-snapshot.ts
57
+ function createInlineRenderSnapshot(instance) {
58
+ return {
59
+ instance,
60
+ props: instance.props,
61
+ ownerFrame: instance.ownerFrame,
62
+ portalScope: instance.portalScope,
63
+ parentInstance: instance.parentInstance,
64
+ isRoot: instance.isRoot,
65
+ vnodeParentGeneration: instance._vnodeParentGeneration,
66
+ vnodeOwner: instance._vnodeOwner,
67
+ vnodeParent: instance._vnodeParent,
68
+ hasVNodeKey: "_vnodeKey" in instance,
69
+ vnodeKey: instance._vnodeKey,
70
+ vnodePosition: instance._vnodePosition,
71
+ wrapperDepth: instance._wrapperDepth,
72
+ cleanupStrict: instance.cleanupStrict
73
+ };
74
+ }
75
+ function restoreInlineRenderSnapshot(snapshot) {
76
+ snapshot.instance.props = snapshot.props;
77
+ snapshot.instance.ownerFrame = snapshot.ownerFrame;
78
+ snapshot.instance.portalScope = snapshot.portalScope;
79
+ snapshot.instance.parentInstance = snapshot.parentInstance;
80
+ snapshot.instance.isRoot = snapshot.isRoot;
81
+ snapshot.instance._vnodeParentGeneration = snapshot.vnodeParentGeneration;
82
+ snapshot.instance._vnodeOwner = snapshot.vnodeOwner;
83
+ snapshot.instance._vnodeParent = snapshot.vnodeParent;
84
+ if (snapshot.hasVNodeKey) snapshot.instance._vnodeKey = snapshot.vnodeKey;
85
+ else delete snapshot.instance._vnodeKey;
86
+ snapshot.instance._vnodePosition = snapshot.vnodePosition;
87
+ snapshot.instance._wrapperDepth = snapshot.wrapperDepth;
88
+ snapshot.instance.cleanupStrict = snapshot.cleanupStrict;
89
+ }
90
+ //#endregion
56
91
  //#region src/runtime/lifecycle-batch.ts
57
92
  let currentLifecycleCommitBatch = null;
58
93
  const pendingLifecycleCommitErrors = [];
@@ -125,14 +160,16 @@ function enqueueLifecycleCommitForInstance(instance, wasFirstMount) {
125
160
  enqueueLifecycleCommit(currentLifecycleCommitBatch, instance, wasFirstMount);
126
161
  return true;
127
162
  }
128
- function enqueueReadSubscriptionCommit(batch, instance, token, pendingReadSources, pendingReadSourceVersions) {
163
+ function enqueueReadSubscriptionCommit(batch, instance, token, pendingReadSources, pendingReadSourceVersions, ownershipGeneration = instance._ownershipGeneration) {
129
164
  const existing = batch.readCommitsByInstance.get(instance);
130
165
  const commit = existing ?? {
131
166
  instance,
167
+ ownershipGeneration,
132
168
  token,
133
169
  pendingReadSources,
134
170
  pendingReadSourceVersions
135
171
  };
172
+ commit.ownershipGeneration = ownershipGeneration;
136
173
  commit.token = token;
137
174
  commit.pendingReadSources = pendingReadSources ? new Set(pendingReadSources) : void 0;
138
175
  commit.pendingReadSourceVersions = pendingReadSourceVersions ? new Map(pendingReadSourceVersions) : void 0;
@@ -148,15 +185,7 @@ function enqueueInlineRenderSnapshot(batch, snapshot) {
148
185
  }
149
186
  function captureInlineRenderSnapshot(instance) {
150
187
  if (!currentLifecycleCommitBatch?.active) return;
151
- enqueueInlineRenderSnapshot(currentLifecycleCommitBatch, {
152
- instance,
153
- props: instance.props,
154
- ownerFrame: instance.ownerFrame,
155
- portalScope: instance.portalScope,
156
- parentInstance: instance.parentInstance,
157
- isRoot: instance.isRoot,
158
- vnodeParentGeneration: instance._vnodeParentGeneration
159
- });
188
+ enqueueInlineRenderSnapshot(currentLifecycleCommitBatch, createInlineRenderSnapshot(instance));
160
189
  }
161
190
  function finalizeInlineReadSubscriptions(instance, token, pendingReadSources, pendingReadSourceVersions) {
162
191
  if ((!pendingReadSources || pendingReadSources.size === 0) && (!instance._lastReadSources || instance._lastReadSources.size === 0)) return;
@@ -164,7 +193,7 @@ function finalizeInlineReadSubscriptions(instance, token, pendingReadSources, pe
164
193
  enqueueReadSubscriptionCommit(currentLifecycleCommitBatch, instance, token, pendingReadSources, pendingReadSourceVersions);
165
194
  return;
166
195
  }
167
- finalizeReadableSubscriptionsFromSnapshot(instance, token, pendingReadSources, pendingReadSourceVersions);
196
+ finalizeReadableSubscriptionsFromSnapshot(instance, token, pendingReadSources, pendingReadSourceVersions, instance._ownershipGeneration);
168
197
  }
169
198
  function flushLifecycleCommitBatch(batch) {
170
199
  if (!closeLifecycleCommitBatch(batch)) return;
@@ -177,13 +206,13 @@ function flushLifecycleCommitBatch(batch) {
177
206
  else enqueueLifecycleTransaction(batch.parent, entry);
178
207
  }
179
208
  for (const snapshot of batch.renderSnapshots) enqueueInlineRenderSnapshot(batch.parent, snapshot);
180
- for (const commit of batch.readCommits) enqueueReadSubscriptionCommit(batch.parent, commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions);
209
+ for (const commit of batch.readCommits) enqueueReadSubscriptionCommit(batch.parent, commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions, commit.ownershipGeneration);
181
210
  for (const entry of batch.entries) enqueueLifecycleCommit(batch.parent, entry.instance, entry.wasFirstMount);
182
211
  return;
183
212
  }
184
213
  const commitErrors = [];
185
214
  for (const commit of batch.readCommits) try {
186
- finalizeReadableSubscriptionsFromSnapshot(commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions);
215
+ finalizeReadableSubscriptionsFromSnapshot(commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions, commit.ownershipGeneration);
187
216
  } catch (error) {
188
217
  commitErrors.push(error);
189
218
  }
@@ -214,15 +243,7 @@ function discardLifecycleCommitBatch(batch) {
214
243
  } catch (error) {
215
244
  logger.error("[Askr] transaction rollback failed:", error);
216
245
  }
217
- for (let index = batch.renderSnapshots.length - 1; index >= 0; index -= 1) {
218
- const snapshot = batch.renderSnapshots[index];
219
- snapshot.instance.props = snapshot.props;
220
- snapshot.instance.ownerFrame = snapshot.ownerFrame;
221
- snapshot.instance.portalScope = snapshot.portalScope;
222
- snapshot.instance.parentInstance = snapshot.parentInstance;
223
- snapshot.instance.isRoot = snapshot.isRoot;
224
- snapshot.instance._vnodeParentGeneration = snapshot.vnodeParentGeneration;
225
- }
246
+ for (let index = batch.renderSnapshots.length - 1; index >= 0; index -= 1) restoreInlineRenderSnapshot(batch.renderSnapshots[index]);
226
247
  for (const entry of batch.entries) {
227
248
  if (entry.wasFirstMount) entry.instance.mountOperations = void 0;
228
249
  discardCommitOperations(entry.instance);
@@ -1,5 +1,5 @@
1
- import { a as registerCommitOperation } from "./component-internal-DsM75Gl1.js";
2
1
  import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
2
+ import { a as registerCommitOperation } from "./component-internal-DcrLymUJ.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 "./index-TlEvex-C.js";
1
+ import "./index-pIgGaXvS.js";
2
2
  //#region src/router/navigation-scroll.d.ts
3
3
  type NavigationScrollBehavior = 'top' | 'preserve';
4
4
  type HistoryScrollBehavior = 'restore' | 'top' | 'preserve';
@@ -1,15 +1,15 @@
1
- import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-ePqdQqkV.js";
1
+ import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-Dpfoi4cA.js";
2
2
  import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
3
- import { r as executeComponent } from "./component-internal-DsM75Gl1.js";
4
- import { t as cleanupReadableSubscriptionSources } from "./readable-B3VIOfd7.js";
5
- import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
6
- import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-CwHCDseR.js";
7
- import { _ as teardownNodeSubtree } from "./cleanup-CEF-cX49.js";
8
- import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-rdHAgyKe.js";
9
- import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-BUwz4kfl.js";
10
- import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-BZ_rN17v.js";
11
- import { t as CspNonceScope } from "./csp-nonce-DDt0UNdt.js";
12
- import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-CnSRFO3d.js";
3
+ import { r as executeComponent } from "./component-internal-DcrLymUJ.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 { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData, v as withoutRouteHydrationMetadata } from "./deferred-vUOy-awa.js";
9
+ import { I as lockRouteRegistration, o as addRouteBasePath, r as computeRouteActivityMatches, y as getActiveRouteBasePath } from "./route-matching-DHduNiGk.js";
10
+ import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-BVWjAhNQ.js";
11
+ import { t as CspNonceScope } from "./csp-nonce-Bc52OIVc.js";
12
+ import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-Jd9CgEa3.js";
13
13
  //#region src/router/navigation-registry.ts
14
14
  let currentInstance = null;
15
15
  let currentPathname = "/";
@@ -722,7 +722,7 @@ function getResolvedRouteHandler(resolved) {
722
722
  function updateRouteRuntime(instance, resolved, href) {
723
723
  const current = instance._appRenderRuntime;
724
724
  const runtime = createAppRenderRuntime({
725
- framework: current?.framework,
725
+ framework: withoutRouteHydrationMetadata(current?.framework),
726
726
  route: resolved?.kind === "render" ? getRouteRenderData(resolved) : void 0,
727
727
  hasRoute: resolved?.kind === "render" && hasRouteRenderData(resolved)
728
728
  });
@@ -992,8 +992,9 @@ let navigationInitialized = false;
992
992
  configureNavigationRegistryHost({ cancelRouteRequests });
993
993
  function navigate(path, options = {}) {
994
994
  if (typeof window === "undefined") return;
995
- const initialTarget = parseTargetUrl(path);
996
- navigateWithRedirectState(path, options, {
995
+ const targetPath = addRouteBasePath(path, getActiveRouteBasePath());
996
+ const initialTarget = parseTargetUrl(targetPath);
997
+ navigateWithRedirectState(targetPath, options, {
997
998
  redirects: 0,
998
999
  visited: /* @__PURE__ */ new Set([`${initialTarget.pathname}${initialTarget.search}${initialTarget.hash}`])
999
1000
  });
@@ -1,9 +1,9 @@
1
- import { o as getRuntimeRenderer } from "./access-ePqdQqkV.js";
2
- import { t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
3
- import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B3VIOfd7.js";
1
+ import { o as getRuntimeRenderer } from "./access-Dpfoi4cA.js";
4
2
  import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-DzJEbYGE.js";
5
- import { t as cleanupComponent } from "./component-cleanup-oWN45rfa.js";
6
- import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-CwHCDseR.js";
3
+ import { t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
4
+ import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-B5NtV7V0.js";
5
+ import { t as cleanupComponent } from "./component-cleanup-BUfUleGZ.js";
6
+ import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-Dfpid9-A.js";
7
7
  import { n as getActiveRenderContext } from "./render-context-D-DFk2WN.js";
8
8
  import { i as createSSRPortalHostToken, n as SSR_PORTAL_HOST, r as createSSRPortalAnchorToken, t as SSR_PORTAL_ANCHOR } from "./portal-w3oQ6oQU.js";
9
9
  //#region src/runtime/portal.ts
@@ -1,4 +1,4 @@
1
- import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-ePqdQqkV.js";
1
+ import { n as enqueueRuntimeTask, s as markRuntimeReactivePropsDirtySource } from "./access-Dpfoi4cA.js";
2
2
  import { p as getCurrentInstance } from "./component-scope-DzJEbYGE.js";
3
3
  //#region src/runtime/readable.ts
4
4
  const DEVELOPMENT_BUILD_ENABLED = false;
@@ -81,8 +81,8 @@ function finalizeReadableSubscriptions(instance) {
81
81
  instance._currentRenderToken = void 0;
82
82
  instance._pendingReadSourceVersions = void 0;
83
83
  }
84
- function finalizeReadableSubscriptionsFromSnapshot(instance, token, newSet, pendingReadSourceVersions = instance._pendingReadSourceVersions) {
85
- if (token === void 0) return;
84
+ function finalizeReadableSubscriptionsFromSnapshot(instance, token, newSet, pendingReadSourceVersions = instance._pendingReadSourceVersions, ownershipGeneration = instance._ownershipGeneration) {
85
+ if (token === void 0 || instance._ownershipGeneration !== ownershipGeneration || !instance.mounted && instance.notifyUpdate === null) return;
86
86
  const oldSet = instance._lastReadSources;
87
87
  const pendingVersions = pendingReadSourceVersions;
88
88
  let needsFollowUpUpdate = false;