@askrjs/askr 0.0.72 → 0.0.73
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/{authoring-CXmUcaCe.js → authoring-BJ1KGHmR.js} +1 -1
- package/dist/benchmark.js +3 -3
- package/dist/boot/index.js +1 -1
- package/dist/{boot-DIKbEA4Y.js → boot-C-cc9kcY.js} +3 -3
- package/dist/{deferred-Cr58yIQD.js → deferred-1BRV2Fso.js} +8 -1
- package/dist/{navigate-CuGQzS_Y.js → navigate-BScgmpZP.js} +1 -1
- package/dist/router/index.js +3 -3
- package/dist/ssg/index.js +4 -3
- package/dist/ssr/index.js +1 -1
- package/dist/{ssr-BSUA9Y64.js → ssr-B6pCWgdY.js} +2 -2
- package/dist/testing/index.js +1 -1
- package/dist/{verify-hydration-CVSGv6Vs.js → verify-hydration-DxOs5H_6.js} +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as getCurrentComponentInstance } from "./component-scope-CC3cojX9.js";
|
|
2
|
-
import {
|
|
2
|
+
import { E as getExecutionModel, x as createRouteHandler } from "./deferred-1BRV2Fso.js";
|
|
3
3
|
import { A as insertRecordSorted, C as getCurrentPathPrefix, I as computeRank, L as normalizeRouteSegmentName, M as pushRegistrationScope, O as hasActivePageScope, R as parseSegments, S as getCurrentPageScope, _ as getCurrentInheritedAuthRequirements, b as getCurrentLayoutChain, f as addRouteToStores, p as assertRouteRegistrationUnlocked, v as getCurrentInheritedMeta, w as getCurrentScopeKind, x as getCurrentPageChain, y as getCurrentInheritedPolicies } from "./route-matching-M-f1VQRu.js";
|
|
4
4
|
import { allOf } from "@askrjs/auth";
|
|
5
5
|
//#region src/router/access.ts
|
package/dist/benchmark.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as state } from "./state-CVuQVjvK.js";
|
|
|
4
4
|
import { t as selector } from "./selector-DEfqO1rA.js";
|
|
5
5
|
import { jsx, jsxs } from "./jsx-runtime.js";
|
|
6
6
|
import { i as For } from "./control-DVRBkN2X.js";
|
|
7
|
-
import { t as createIsland } from "./boot-
|
|
7
|
+
import { t as createIsland } from "./boot-C-cc9kcY.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.
|
|
67
|
-
buildLabel: "0.0.
|
|
66
|
+
packageVersion: "0.0.73",
|
|
67
|
+
buildLabel: "0.0.73-local"
|
|
68
68
|
};
|
|
69
69
|
function getBenchmarkMetadata() {
|
|
70
70
|
return { ...benchmarkMetadata };
|
package/dist/boot/index.js
CHANGED
|
@@ -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-
|
|
1
|
+
import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-C-cc9kcY.js";
|
|
2
2
|
export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
|
|
@@ -5,7 +5,7 @@ import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
|
5
5
|
import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
|
|
6
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-BJYY2Y8s.js";
|
|
7
7
|
import { _ as teardownNodeSubtree, d as removeAllListeners } from "./cleanup-D8Ufd9Ix.js";
|
|
8
|
-
import { c as _applyManifest, d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, o as reviveDeferredValue, p as hasRouteRenderData, v as pageRenderEnvelope
|
|
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-1BRV2Fso.js";
|
|
9
9
|
import { a as startHydrationRenderPhase, s as stopHydrationRenderPhase } from "./render-context-Clw3rFiO.js";
|
|
10
10
|
import { d as _setActiveRouteAuthOptions, j as lockRouteRegistration, k as hasRegisteredRoutes, m as clearRouteState } from "./route-matching-M-f1VQRu.js";
|
|
11
11
|
import { a as disposeDefaultPortalScope, t as DefaultPortal } from "./portal-wY3j0vvp.js";
|
|
@@ -13,7 +13,7 @@ import { r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.
|
|
|
13
13
|
import { i as getDefaultDataRuntime } from "./data-runtime-rpV6-3XW.js";
|
|
14
14
|
import { a as hydrateDataRuntime } from "./query-registry-Bu_cuMch.js";
|
|
15
15
|
import { o as createAppRenderRuntime, r as setServerLocation } from "./activity-C2tPn9Fr.js";
|
|
16
|
-
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-
|
|
16
|
+
import { f as registerAppInstance, g as unregisterAppInstance, i as resolveRouteMeta, o as configureScrollRestoration, r as reconcileRouteMeta, t as initializeNavigation } from "./navigate-BScgmpZP.js";
|
|
17
17
|
import "./ssr-CbQO5xd3.js";
|
|
18
18
|
//#region src/boot/hydration.ts
|
|
19
19
|
const DEFERRED_PAYLOAD = "__askr_deferred__";
|
|
@@ -585,7 +585,7 @@ async function hydrateSPA(config) {
|
|
|
585
585
|
cspNonce: config.cspNonce
|
|
586
586
|
}));
|
|
587
587
|
if (shouldVerifyHydrationMarkup(config)) {
|
|
588
|
-
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-
|
|
588
|
+
const { verifyHydrationSyncForUrl } = await import("./verify-hydration-DxOs5H_6.js");
|
|
589
589
|
if (!verifyHydrationSyncForUrl({
|
|
590
590
|
root: rootElement,
|
|
591
591
|
url: currentUrl,
|
|
@@ -66,6 +66,13 @@ function _preloadRouteRecord(record) {
|
|
|
66
66
|
function _associateLazyHandler(handler, components) {
|
|
67
67
|
handlerLazyComponents.set(handler, components);
|
|
68
68
|
}
|
|
69
|
+
function _preloadRouteHandler(handler) {
|
|
70
|
+
const imports = (handlerLazyComponents.get(handler) ?? []).flatMap((component) => {
|
|
71
|
+
const state = lazyStates.get(component);
|
|
72
|
+
return state ? [startLazyLoad(state)] : [];
|
|
73
|
+
});
|
|
74
|
+
return imports.length > 0 ? Promise.all(imports).then(() => void 0) : null;
|
|
75
|
+
}
|
|
69
76
|
//#endregion
|
|
70
77
|
//#region src/router/rendering.ts
|
|
71
78
|
const outletScope = defineScope(null);
|
|
@@ -492,4 +499,4 @@ function Resolve(props) {
|
|
|
492
499
|
return props.children(result.value);
|
|
493
500
|
}
|
|
494
501
|
//#endregion
|
|
495
|
-
export {
|
|
502
|
+
export { _preloadRouteHandler as C, getExecutionModel as E, getRenderHandler as S, assertExecutionModel as T, isPageRenderEnvelope as _, resolveDeferredValues as a, Outlet as b, _applyManifest as c, getRouteRenderContext as d, getRouteRenderData as f, isEmptyPageRenderEnvelope as g, createPageRenderEnvelope as h, isDeferred as i, createRouteRegistry as l, resolveRouteRequest as m, Resolve as n, reviveDeferredValue as o, hasRouteRenderData as p, defer as r, routeData as s, DEFERRED_BOUNDARY as t, bindResolvedRouteData as u, pageRenderEnvelope as v, lazy as w, createRouteHandler as x, currentAuth as y };
|
|
@@ -5,7 +5,7 @@ import { t as cleanupReadableSubscriptionSources } from "./readable-BYSoWJSv.js"
|
|
|
5
5
|
import { n as cleanupComponentGeneration, t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
6
6
|
import { i as drainLifecycleCommitErrors, p as isPromiseLike, r as discardLifecycleCommitBatch, s as flushLifecycleCommitBatch, t as beginLifecycleCommitBatch } from "./lifecycle-batch-COgl8jMS.js";
|
|
7
7
|
import { _ as teardownNodeSubtree } from "./cleanup-D8Ufd9Ix.js";
|
|
8
|
-
import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-
|
|
8
|
+
import { d as getRouteRenderContext, f as getRouteRenderData, m as resolveRouteRequest, p as hasRouteRenderData } from "./deferred-1BRV2Fso.js";
|
|
9
9
|
import { j as lockRouteRegistration, r as computeRouteActivityMatches } from "./route-matching-M-f1VQRu.js";
|
|
10
10
|
import { r as clearDefaultPortalForInstance, t as DefaultPortal } from "./portal-wY3j0vvp.js";
|
|
11
11
|
import { t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
|
package/dist/router/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as resolveDeferredValues, b as Outlet, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, n as Resolve, r as defer, s as routeData, w as lazy, y as currentAuth } from "../deferred-1BRV2Fso.js";
|
|
2
2
|
import { jsx } from "../jsx-runtime.js";
|
|
3
3
|
import { a as isSafeHref } from "../csp-nonce-CwSRP3Jl.js";
|
|
4
|
-
import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-
|
|
4
|
+
import { a as route, i as page, n as group, r as index, t as fallback } from "../authoring-BJ1KGHmR.js";
|
|
5
5
|
import { n as onRouteChange, t as currentRoute } from "../activity-C2tPn9Fr.js";
|
|
6
|
-
import { a as serializeRouteMeta, c as getCurrentHref, d as parseTargetUrl, h as syncRegisteredRouteSnapshot, i as resolveRouteMeta, l as getRegisteredAppsSnapshot, m as syncAppRegistrationLocation, n as navigate, p as setCurrentRouteLocation, r as reconcileRouteMeta, s as saveScrollPosition, u as getWindowHref } from "../navigate-
|
|
6
|
+
import { a as serializeRouteMeta, c as getCurrentHref, d as parseTargetUrl, h as syncRegisteredRouteSnapshot, i as resolveRouteMeta, l as getRegisteredAppsSnapshot, m as syncAppRegistrationLocation, n as navigate, p as setCurrentRouteLocation, r as reconcileRouteMeta, s as saveScrollPosition, u as getWindowHref } from "../navigate-BScgmpZP.js";
|
|
7
7
|
import { o as mergeProps } from "../compose-ref-Cc_YkUpM.js";
|
|
8
8
|
import { t as applyInteractionPolicy } from "../interactions-w7gQN4ha.js";
|
|
9
9
|
//#region src/router/route-query.ts
|
package/dist/ssg/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../access-ePqdQqkV.js";
|
|
2
|
-
import { S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-
|
|
3
|
-
import { a as route } from "../authoring-
|
|
2
|
+
import { C as _preloadRouteHandler, S as getRenderHandler, a as resolveDeferredValues, l as createRouteRegistry, u as bindResolvedRouteData } from "../deferred-1BRV2Fso.js";
|
|
3
|
+
import { a as route } from "../authoring-BJ1KGHmR.js";
|
|
4
4
|
import { n as renderDocument } from "../ssr-CbQO5xd3.js";
|
|
5
|
-
import { n as renderToString } from "../ssr-
|
|
5
|
+
import { n as renderToString } from "../ssr-B6pCWgdY.js";
|
|
6
6
|
import * as fs from "node:fs/promises";
|
|
7
7
|
import * as pathModule from "node:path";
|
|
8
8
|
import * as os from "node:os";
|
|
@@ -159,6 +159,7 @@ async function batchRenderRoutes(routes, options = {}) {
|
|
|
159
159
|
const mergedHandler = route$2.handler;
|
|
160
160
|
let phase = route$2.loader ? "load" : "render";
|
|
161
161
|
try {
|
|
162
|
+
await _preloadRouteHandler(mergedHandler);
|
|
162
163
|
let routeData;
|
|
163
164
|
let hasRouteData = false;
|
|
164
165
|
if (route$2.loader) {
|
package/dist/ssr/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { u as SSRDataMissingError } from "../render-context-Clw3rFiO.js";
|
|
2
|
-
import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync, c as createRenderContext, d as withRenderContextAsync, i as renderRouteRequestToString, l as getRenderContext, n as renderToString, o as renderToStringSync, r as renderRouteRequest, s as resolveRequest, t as renderToStream, u as withRenderContext } from "../ssr-B6pCWgdY.js";
|
|
3
3
|
export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
|
|
@@ -7,7 +7,7 @@ import { f as getCurrentComponentInstance, w as setCurrentComponentInstance } fr
|
|
|
7
7
|
import { t as cleanupComponent } from "./component-cleanup-1ZFoLLHt.js";
|
|
8
8
|
import { p as isPromiseLike } from "./lifecycle-batch-COgl8jMS.js";
|
|
9
9
|
import { g as evaluateShowState, h as evaluateCaseState, i as evaluateForState, o as rollbackForStateTransaction, r as commitForStateTransaction } from "./for-internal-BtK9Htl0.js";
|
|
10
|
-
import { _ as isPageRenderEnvelope, g as isEmptyPageRenderEnvelope, h as createPageRenderEnvelope, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, t as DEFERRED_BOUNDARY } from "./deferred-
|
|
10
|
+
import { _ as isPageRenderEnvelope, g as isEmptyPageRenderEnvelope, h as createPageRenderEnvelope, i as isDeferred, l as createRouteRegistry, m as resolveRouteRequest, t as DEFERRED_BOUNDARY } from "./deferred-1BRV2Fso.js";
|
|
11
11
|
import { c as stopRenderPhase$1, o as startRenderPhase$1, t as configureRenderContextProvider, u as SSRDataMissingError } from "./render-context-Clw3rFiO.js";
|
|
12
12
|
import { a as resolveRouteFromRoutes, t as _resolveRouteMatchFromRoutes } from "./route-matching-M-f1VQRu.js";
|
|
13
13
|
import { a as disposeDefaultPortalScope, o as SSR_PORTAL_HOST, t as DefaultPortal } from "./portal-wY3j0vvp.js";
|
|
@@ -15,7 +15,7 @@ import { n as getPublicAttributeName, t as sanitizeCssValue } from "./css-BuPaTO
|
|
|
15
15
|
import { a as isSafeHref, r as validateCspNonce, t as CspNonceScope } from "./csp-nonce-CwSRP3Jl.js";
|
|
16
16
|
import { t as createDataRuntime } from "./data-runtime-rpV6-3XW.js";
|
|
17
17
|
import { c as withTelemetry, i as dehydrateDataRuntime, t as createQueryPrefetchContext } from "./query-registry-Bu_cuMch.js";
|
|
18
|
-
import { a as route } from "./authoring-
|
|
18
|
+
import { a as route } from "./authoring-BJ1KGHmR.js";
|
|
19
19
|
import { n as renderDocument, t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
20
20
|
//#region src/ssr/escape.ts
|
|
21
21
|
/**
|
package/dist/testing/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as flushRuntimeScheduler } from "../access-ePqdQqkV.js";
|
|
2
2
|
import { r as computeRouteActivityMatches } from "../route-matching-M-f1VQRu.js";
|
|
3
3
|
import { l as addInvalidationListener } from "../data-runtime-rpV6-3XW.js";
|
|
4
|
-
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-
|
|
4
|
+
import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-C-cc9kcY.js";
|
|
5
5
|
//#region src/testing/render.ts
|
|
6
6
|
const renderStates = /* @__PURE__ */ new WeakMap();
|
|
7
7
|
const eventConstructorNames = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as SSR_RENDER_DATA_ATTR } from "./ssr-CbQO5xd3.js";
|
|
2
|
-
import { a as renderResolvedToStringSync } from "./ssr-
|
|
2
|
+
import { a as renderResolvedToStringSync } from "./ssr-B6pCWgdY.js";
|
|
3
3
|
//#region src/ssr/verify-hydration.ts
|
|
4
4
|
function normalizeHydrationHtml(html) {
|
|
5
5
|
const template = document.createElement("template");
|