akanjs 2.3.10-rc.2 → 2.3.11-rc.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # akanjs
2
2
 
3
+ ## 2.3.10
4
+
5
+ ### Patch Changes
6
+
7
+ - b92003a: fix: cross-platform path handling using path.resolve/path.join/path.sep
8
+
3
9
  ## 2.3.9
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akanjs",
3
- "version": "2.3.10-rc.2",
3
+ "version": "2.3.11-rc.0",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -5,8 +5,6 @@ import type { BaseBuildArtifact } from "../types";
5
5
  import { AkanResponse } from "./akanResponse";
6
6
  import type { WebProxy } from "./types";
7
7
 
8
- const RESERVED_BASE_PATHS = new Set(["admin"]);
9
-
10
8
  export class HostBasePathWebProxy implements WebProxy {
11
9
  static readonly refName = "HostBasePathWebProxy";
12
10
  #domainMap: Map<string, string> | null = null;
@@ -37,8 +35,6 @@ export class HostBasePathWebProxy implements WebProxy {
37
35
  );
38
36
  }
39
37
 
40
- if (RESERVED_BASE_PATHS.has(firstPath)) return AkanResponse.next({ request: { headers } });
41
-
42
38
  const internalPath = `/${[locale, basePath, ...segments.slice(2)].filter(Boolean).join("/")}`;
43
39
  targetUrl.pathname = internalPath;
44
40
  return AkanResponse.rewrite(toProxyRequestUrl(requestUrl, targetUrl), { request: { headers } });
@@ -53,7 +53,6 @@ import type { RscTraceMetadata, SsrManifest } from "./ssrTypes";
53
53
  import { createSystemPageResponse, getSystemPageHomeHref } from "./systemPages";
54
54
  import type { BaseBuildArtifact, HttpRoutes, RenderState } from "./types";
55
55
 
56
- const RESERVED_BASE_PATHS = new Set(["admin"]);
57
56
  const CLIENT_CLOSED_REQUEST_STATUS = 499;
58
57
  export const DEFAULT_HTML_RESULT_CACHE_MAX_BODY_BYTES = 2 * 1024 * 1024;
59
58
  const APPLE_APP_SITE_ASSOCIATION_PATH = "/.well-known/apple-app-site-association";
@@ -228,8 +227,6 @@ export function normalizeRscTargetUrlForHostBasePath(
228
227
 
229
228
  const targetBasePath = firstPath && basePaths.includes(firstPath) ? firstPath : null;
230
229
  if (seedEntries && routeMatches(targetUrl)) return { url: targetUrl, basePath: targetBasePath ?? basePath };
231
- if (RESERVED_BASE_PATHS.has(firstPath ?? "")) return { url: targetUrl, basePath: basePath ?? targetBasePath };
232
-
233
230
  const candidates = [...new Set([basePath, ...basePaths].filter((bp): bp is string => Boolean(bp)))];
234
231
  for (const candidate of candidates) {
235
232
  if (firstPath === candidate) continue;
@@ -1075,8 +1072,7 @@ export class WebRouter {
1075
1072
  }
1076
1073
  const assetLinks = associations
1077
1074
  .filter(
1078
- (association) =>
1079
- association.domains.length > 0 && (association.androidSha256CertFingerprints?.length ?? 0) > 0,
1075
+ (association) => association.domains.length > 0 && (association.androidSha256CertFingerprints?.length ?? 0) > 0,
1080
1076
  )
1081
1077
  .map((association) => ({
1082
1078
  relation: ["delegate_permission/common.handle_all_urls"],