@askrjs/askr 0.0.89 → 0.0.90

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
@@ -4,7 +4,7 @@ import { t as state } from "./state-DCjONcHK.js";
4
4
  import { t as selector } from "./selector-BLNkRZ2i.js";
5
5
  import { i as For } from "./control-CON10J1p.js";
6
6
  import { jsx, jsxs } from "./jsx-runtime.js";
7
- import { t as createIsland } from "./boot-CrbszDjZ.js";
7
+ import { t as createIsland } from "./boot-D5GZU_g4.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.89",
67
- buildLabel: "0.0.89-local"
66
+ packageVersion: "0.0.90",
67
+ buildLabel: "0.0.90-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-CrbszDjZ.js";
1
+ import { a as cleanupApp, i as hydrateSPA, n as createIslands, o as hasApp, r as createSPA, t as createIsland } from "../boot-D5GZU_g4.js";
2
2
  export { cleanupApp, createIsland, createIslands, createSPA, hasApp, hydrateSPA };
@@ -598,7 +598,7 @@ async function hydrateSPA(config) {
598
598
  cspNonce: config.cspNonce
599
599
  }));
600
600
  if (shouldVerifyHydrationMarkup(config)) {
601
- const { verifyHydrationSyncForUrl } = await import("./verify-hydration-AdrYLDxd.js");
601
+ const { verifyHydrationSyncForUrl } = await import("./verify-hydration-wRofFN5b.js");
602
602
  if (!verifyHydrationSyncForUrl({
603
603
  root: rootElement,
604
604
  url: currentUrl,
package/dist/ssg/index.js CHANGED
@@ -4,7 +4,7 @@ import { o as addRouteBasePath } from "../route-matching-DqULzZtC.js";
4
4
  import { c as route, n as resolveDeferredValues } from "../deferred-Bh-nZhZF.js";
5
5
  import { S as RouteDataLoadError, c as prepareRouteHydrationData, t as bindResolvedRouteData, v as getRenderHandler, y as _preloadRouteHandler } from "../resolution-D3UO6aKA.js";
6
6
  import { n as renderDocument } from "../ssr-DSHd_Q9K.js";
7
- import { n as renderToString } from "../ssr-DXGtDJd7.js";
7
+ import { n as renderToString } from "../ssr-VdXmmJqx.js";
8
8
  import * as fs from "node:fs/promises";
9
9
  import * as pathModule from "node:path";
10
10
  import * as os from "node:os";
package/dist/ssr/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { x as SSRDataMissingError } from "../render-context-D0Hoj9dW.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-DXGtDJd7.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-VdXmmJqx.js";
3
3
  export { SSRDataMissingError, createRenderContext, getRenderContext, renderResolvedToStringSync, renderRouteRequest, renderRouteRequestToString, renderToStream, renderToString, renderToStringSync, resolveRequest, withRenderContext, withRenderContextAsync };
@@ -1253,8 +1253,10 @@ function renderResolvedToStringSync(opts) {
1253
1253
  const { url, registry, handler, params, options } = opts;
1254
1254
  const routes = registry.routes;
1255
1255
  const requestUrl = new URL(url, "http://localhost");
1256
+ const logicalTarget = removeRouteBasePath(`${requestUrl.pathname}${requestUrl.search}${requestUrl.hash}`, normalizeRouteBasePath(registry.manifest.basePath));
1256
1257
  const matchedIndex = routes.findIndex((route) => {
1257
- const resolved = resolveRouteFromRoutes(requestUrl.pathname, [route]);
1258
+ if (logicalTarget === void 0) return false;
1259
+ const resolved = resolveRouteFromRoutes(new URL(logicalTarget, "http://localhost").pathname, [route]);
1258
1260
  return resolved !== null && resolved.handler === route.handler && sameRouteParams(resolved.params, params);
1259
1261
  });
1260
1262
  if (matchedIndex < 0) throw new Error(`renderResolvedToStringSync: no route found for url: ${url}`);
@@ -3,7 +3,7 @@ import { u as recordReadableRead } from "../readable-B5NtV7V0.js";
3
3
  import { l as addInvalidationListener, t as createDataRuntime } from "../data-runtime-SC6zzAwh.js";
4
4
  import { a as notifySource, i as normalizeAsyncDataError, r as createReadableSource } from "../data-BmZC1kDn.js";
5
5
  import { r as computeRouteActivityMatches } from "../route-matching-DqULzZtC.js";
6
- import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-CrbszDjZ.js";
6
+ import { a as cleanupApp, r as createSPA, t as createIsland } from "../boot-D5GZU_g4.js";
7
7
  //#region src/testing/render.ts
8
8
  const renderStates = /* @__PURE__ */ new WeakMap();
9
9
  const eventConstructorNames = {
@@ -1,6 +1,6 @@
1
1
  import { m as withHydrationVerificationRender } from "./render-context-D0Hoj9dW.js";
2
2
  import { t as SSR_RENDER_DATA_ATTR } from "./ssr-DSHd_Q9K.js";
3
- import { a as renderResolvedToStringSync } from "./ssr-DXGtDJd7.js";
3
+ import { a as renderResolvedToStringSync } from "./ssr-VdXmmJqx.js";
4
4
  //#region src/ssr/verify-hydration.ts
5
5
  function normalizeHydrationHtml(html) {
6
6
  const template = document.createElement("template");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askrjs/askr",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "description": "Actor-backed deterministic UI framework",
5
5
  "keywords": [
6
6
  "askr",