@askrjs/askr 0.0.83 → 0.0.84
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/actions/index.d.ts +1 -1
- package/dist/actions/index.js +1 -1
- package/dist/{activity-CnSRFO3d.js → activity-CZiPgZy0.js} +3 -3
- package/dist/{activity-CXEaU-Al.d.ts → activity-pySy9t7Y.d.ts} +1 -1
- package/dist/{authoring-DbGEgg40.js → authoring-DQPG0VAm.js} +2 -2
- package/dist/benchmark.js +7 -7
- package/dist/boot/index.d.ts +3 -3
- package/dist/boot/index.js +1 -1
- package/dist/{boot-uK1hzONI.js → boot-D28lesMw.js} +12 -12
- package/dist/{cleanup-CEF-cX49.js → cleanup-ARiXproi.js} +4 -4
- package/dist/{component-cleanup-oWN45rfa.js → component-cleanup-Bug5tSiG.js} +1 -1
- package/dist/{component-internal-DsM75Gl1.js → component-internal-Bw4Mf9fd.js} +7 -4
- package/dist/components/index.d.ts +1 -1
- package/dist/control/index.d.ts +1 -1
- package/dist/control/index.js +1 -1
- package/dist/{control-Cix3yjVf.d.ts → control-Y8F73Uln.d.ts} +1 -1
- package/dist/{control-C0X1zgrM.js → control-nrS65oG3.js} +3 -3
- package/dist/{csp-nonce-DDt0UNdt.js → csp-nonce-ZTlD_EnK.js} +1 -1
- package/dist/data/index.js +1 -1
- package/dist/{data-G0hURNm_.js → data-BRS5woEh.js} +2 -2
- package/dist/{deferred-rdHAgyKe.js → deferred-oqtAJ4iH.js} +4 -4
- package/dist/{effect-2IIWvUjG.js → effect-B487asyz.js} +1 -1
- package/dist/{fastlane-CkBXZ_3K.js → fastlane-BOr4lSLl.js} +1 -1
- package/dist/{for-internal-DRbV0h1d.js → for-internal-DjpV8ioj.js} +41 -20
- package/dist/foundations/index.d.ts +1 -1
- package/dist/foundations/index.js +1 -1
- package/dist/foundations/state/index.d.ts +1 -1
- package/dist/foundations/state/index.js +1 -1
- package/dist/foundations/structures/index.d.ts +1 -1
- package/dist/foundations/structures/index.js +1 -1
- package/dist/{index-Vs1EeWEr.d.ts → index-BApH3laU.d.ts} +1 -1
- package/dist/{index-ho0Htetw.d.ts → index-DUXXZ31H.d.ts} +1 -1
- package/dist/{index-TlEvex-C.d.ts → index-_UN08Pg1.d.ts} +3 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/{lifecycle-batch-CwHCDseR.js → lifecycle-batch-CFI4NKpJ.js} +7 -5
- package/dist/{lifecycle-operations-BJfxWUJr.js → lifecycle-operations-KYOIcM5R.js} +1 -1
- package/dist/{navigate-DfY1BUYc.d.ts → navigate-CgVIrrSs.d.ts} +1 -1
- package/dist/{navigate-Crvd5gUG.js → navigate-Dr3cjOSz.js} +10 -10
- package/dist/{portal-BZ_rN17v.js → portal-pHBoqwYd.js} +3 -3
- package/dist/{readable-B3VIOfd7.js → readable-_GQGe_St.js} +2 -2
- package/dist/{renderer-VSw0KKDG.js → renderer-B9j5IV1q.js} +3297 -2796
- package/dist/resources/index.d.ts +2 -2
- package/dist/resources/index.js +4 -4
- package/dist/{route-matching-BUwz4kfl.js → route-matching-IfQZmqkN.js} +3 -3
- package/dist/router/index.d.ts +4 -4
- package/dist/router/index.js +5 -5
- package/dist/{selector-DVwvof1M.js → selector-DJ1-N1K-.js} +1 -1
- package/dist/ssg/index.d.ts +3 -3
- package/dist/ssg/index.js +3 -3
- package/dist/ssr/index.d.ts +2 -2
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-C_Ql5_Kg.js → ssr-CtC4lChT.js} +20 -17
- package/dist/{state-BCl9DeiN.js → state-BzIMC6-i.js} +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/testing/index.js +2 -2
- package/dist/{verify-hydration-CNLXUcuR.js → verify-hydration-BguOSco9.js} +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { v as logger } from "./access-ePqdQqkV.js";
|
|
2
|
-
import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-
|
|
2
|
+
import { a as finalizeReadableSubscriptionsFromSnapshot } from "./readable-_GQGe_St.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";
|
|
@@ -125,14 +125,16 @@ function enqueueLifecycleCommitForInstance(instance, wasFirstMount) {
|
|
|
125
125
|
enqueueLifecycleCommit(currentLifecycleCommitBatch, instance, wasFirstMount);
|
|
126
126
|
return true;
|
|
127
127
|
}
|
|
128
|
-
function enqueueReadSubscriptionCommit(batch, instance, token, pendingReadSources, pendingReadSourceVersions) {
|
|
128
|
+
function enqueueReadSubscriptionCommit(batch, instance, token, pendingReadSources, pendingReadSourceVersions, ownershipGeneration = instance._ownershipGeneration) {
|
|
129
129
|
const existing = batch.readCommitsByInstance.get(instance);
|
|
130
130
|
const commit = existing ?? {
|
|
131
131
|
instance,
|
|
132
|
+
ownershipGeneration,
|
|
132
133
|
token,
|
|
133
134
|
pendingReadSources,
|
|
134
135
|
pendingReadSourceVersions
|
|
135
136
|
};
|
|
137
|
+
commit.ownershipGeneration = ownershipGeneration;
|
|
136
138
|
commit.token = token;
|
|
137
139
|
commit.pendingReadSources = pendingReadSources ? new Set(pendingReadSources) : void 0;
|
|
138
140
|
commit.pendingReadSourceVersions = pendingReadSourceVersions ? new Map(pendingReadSourceVersions) : void 0;
|
|
@@ -164,7 +166,7 @@ function finalizeInlineReadSubscriptions(instance, token, pendingReadSources, pe
|
|
|
164
166
|
enqueueReadSubscriptionCommit(currentLifecycleCommitBatch, instance, token, pendingReadSources, pendingReadSourceVersions);
|
|
165
167
|
return;
|
|
166
168
|
}
|
|
167
|
-
finalizeReadableSubscriptionsFromSnapshot(instance, token, pendingReadSources, pendingReadSourceVersions);
|
|
169
|
+
finalizeReadableSubscriptionsFromSnapshot(instance, token, pendingReadSources, pendingReadSourceVersions, instance._ownershipGeneration);
|
|
168
170
|
}
|
|
169
171
|
function flushLifecycleCommitBatch(batch) {
|
|
170
172
|
if (!closeLifecycleCommitBatch(batch)) return;
|
|
@@ -177,13 +179,13 @@ function flushLifecycleCommitBatch(batch) {
|
|
|
177
179
|
else enqueueLifecycleTransaction(batch.parent, entry);
|
|
178
180
|
}
|
|
179
181
|
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);
|
|
182
|
+
for (const commit of batch.readCommits) enqueueReadSubscriptionCommit(batch.parent, commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions, commit.ownershipGeneration);
|
|
181
183
|
for (const entry of batch.entries) enqueueLifecycleCommit(batch.parent, entry.instance, entry.wasFirstMount);
|
|
182
184
|
return;
|
|
183
185
|
}
|
|
184
186
|
const commitErrors = [];
|
|
185
187
|
for (const commit of batch.readCommits) try {
|
|
186
|
-
finalizeReadableSubscriptionsFromSnapshot(commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions);
|
|
188
|
+
finalizeReadableSubscriptionsFromSnapshot(commit.instance, commit.token, commit.pendingReadSources, commit.pendingReadSourceVersions, commit.ownershipGeneration);
|
|
187
189
|
} catch (error) {
|
|
188
190
|
commitErrors.push(error);
|
|
189
191
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as registerCommitOperation } from "./component-internal-
|
|
1
|
+
import { a as registerCommitOperation } from "./component-internal-Bw4Mf9fd.js";
|
|
2
2
|
import { f as getCurrentComponentInstance, i as claimHookIndex } from "./component-scope-DzJEbYGE.js";
|
|
3
3
|
import { t as isRouteActivityActive } from "./route-activity-CNJfpwx-.js";
|
|
4
4
|
//#region src/runtime/lifecycle-operations.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { b as isDevelopmentEnvironment, r as flushRuntimeScheduler, v as logger, x as isProductionEnvironment } from "./access-ePqdQqkV.js";
|
|
2
2
|
import { n as Fragment, t as ELEMENT_TYPE } from "./jsx-C3IECePB.js";
|
|
3
|
-
import { r as executeComponent } from "./component-internal-
|
|
4
|
-
import { t as cleanupReadableSubscriptionSources } from "./readable-
|
|
5
|
-
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-
|
|
6
|
-
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-
|
|
7
|
-
import { _ as teardownNodeSubtree } from "./cleanup-
|
|
8
|
-
import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-
|
|
9
|
-
import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-
|
|
10
|
-
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-
|
|
11
|
-
import { t as CspNonceScope } from "./csp-nonce-
|
|
12
|
-
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-
|
|
3
|
+
import { r as executeComponent } from "./component-internal-Bw4Mf9fd.js";
|
|
4
|
+
import { t as cleanupReadableSubscriptionSources } from "./readable-_GQGe_St.js";
|
|
5
|
+
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-Bug5tSiG.js";
|
|
6
|
+
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-CFI4NKpJ.js";
|
|
7
|
+
import { _ as teardownNodeSubtree } from "./cleanup-ARiXproi.js";
|
|
8
|
+
import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-oqtAJ4iH.js";
|
|
9
|
+
import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-IfQZmqkN.js";
|
|
10
|
+
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-pHBoqwYd.js";
|
|
11
|
+
import { t as CspNonceScope } from "./csp-nonce-ZTlD_EnK.js";
|
|
12
|
+
import { a as clearStagedAppRenderRouteLocation, i as syncCurrentRouteSnapshot, o as createAppRenderRuntime, s as stageAppRenderRouteLocation } from "./activity-CZiPgZy0.js";
|
|
13
13
|
//#region src/router/navigation-registry.ts
|
|
14
14
|
let currentInstance = null;
|
|
15
15
|
let currentPathname = "/";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { o as getRuntimeRenderer } from "./access-ePqdQqkV.js";
|
|
2
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-
|
|
3
|
+
import { l as notifyReadableReaders, o as markReactivePropsDirtySource, s as markReadableDerivedSubscribersDirty, u as recordReadableRead } from "./readable-_GQGe_St.js";
|
|
4
4
|
import { f as getCurrentComponentInstance, m as getCurrentPortalScope } from "./component-scope-DzJEbYGE.js";
|
|
5
|
-
import { t as cleanupComponent } from "./component-cleanup-
|
|
6
|
-
import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-
|
|
5
|
+
import { t as cleanupComponent } from "./component-cleanup-Bug5tSiG.js";
|
|
6
|
+
import { c as getCurrentLifecycleCommitBatch, u as registerLifecycleTransaction } from "./lifecycle-batch-CFI4NKpJ.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
|
|
@@ -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;
|