@absolutejs/absolute 0.20.0-beta.143 → 0.20.0-beta.144
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 +8 -0
- package/changelog.json +19 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +2 -2
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +34 -34
- package/dist/build.js.map +9 -9
- package/dist/cli/{compile-grhs9tj4.js → compile-351tb63a.js} +2 -2
- package/dist/cli/config/server.js +1 -1
- package/dist/cli/{dev-e4w5nq6y.js → dev-d7nyd387.js} +1 -1
- package/dist/cli/{expoProject-kabqa80q.js → expoProject-f3eb0040.js} +1 -1
- package/dist/cli/{index-h078vn9f.js → index-8s6w45zc.js} +1 -1
- package/dist/cli/{index-fezxjrgd.js → index-ezz88cdw.js} +1 -1
- package/dist/cli/{index-nrtt3x67.js → index-snz4z0tq.js} +21 -21
- package/dist/cli/index.js +5 -5
- package/dist/cli/{mobile-p657bkqa.js → mobile-dvahvjeh.js} +3 -3
- package/dist/cli/{start-3m7bd02e.js → start-09prwq60.js} +3 -3
- package/dist/client/chunks/{islands-eexr591d.js → islands-rc28k5sx.js} +7 -7
- package/dist/client/chunks/{islands-eexr591d.js.map → islands-rc28k5sx.js.map} +3 -3
- package/dist/client/index.js +2 -2
- package/dist/dev/serverBootstrap.js +1 -1
- package/dist/index.js +34 -34
- package/dist/index.js.map +10 -10
- package/dist/mobile/browser.js +1 -1
- package/dist/mobile/browser.js.map +3 -3
- package/dist/mobile/index.js +25 -25
- package/dist/mobile/index.js.map +6 -6
- package/dist/mobile/remoteMacAgentEntry.js +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +3 -3
- package/dist/react/server.js +2 -2
- package/dist/react/server.js.map +3 -3
- package/dist/src/core/prepare.d.ts +256 -1063
- package/dist/src/mobile/nativePackages.d.ts +1 -1
- package/dist/src/plugins/hmr.d.ts +4 -1
- package/dist/svelte/index.js +2 -2
- package/dist/svelte/index.js.map +3 -3
- package/dist/svelte/server.js +2 -2
- package/dist/svelte/server.js.map +3 -3
- package/dist/vue/index.js +2 -2
- package/dist/vue/index.js.map +3 -3
- package/dist/vue/server.js +2 -2
- package/dist/vue/server.js.map +3 -3
- package/package.json +13 -13
package/dist/build.js
CHANGED
|
@@ -13528,7 +13528,7 @@ var init_deviceCapabilities = __esm(() => {
|
|
|
13528
13528
|
});
|
|
13529
13529
|
|
|
13530
13530
|
// node_modules/@absolutejs/sync/dist/client/index.js
|
|
13531
|
-
var
|
|
13531
|
+
var pools, SyncLocalDataPolicyError, SyncLocalStoreSchemaError, positiveVersion = (value, label) => {
|
|
13532
13532
|
if (!Number.isSafeInteger(value) || value < 1)
|
|
13533
13533
|
throw new SyncLocalStoreSchemaError("INVALID_PLAN", `${label} must be a positive safe integer`);
|
|
13534
13534
|
return value;
|
|
@@ -13612,27 +13612,8 @@ var RUNTIME_TRANSPORT, host, isRegistry = (value) => typeof value === "object" &
|
|
|
13612
13612
|
steps.push(migration);
|
|
13613
13613
|
}
|
|
13614
13614
|
return { minimumCompatibleVersion, steps, targetVersion };
|
|
13615
|
-
};
|
|
13615
|
+
}, RUNTIME_TRANSPORT, host, isRegistry = (value) => typeof value === "object" && value !== null && Array.isArray(Reflect.get(value, "installations")) && Array.isArray(Reflect.get(value, "clients")), registry;
|
|
13616
13616
|
var init_client = __esm(() => {
|
|
13617
|
-
RUNTIME_TRANSPORT = Symbol.for("@absolutejs/sync/client-runtime-transport");
|
|
13618
|
-
host = globalThis;
|
|
13619
|
-
registry = (() => {
|
|
13620
|
-
const existing = host[RUNTIME_TRANSPORT];
|
|
13621
|
-
if (isRegistry(existing))
|
|
13622
|
-
return existing;
|
|
13623
|
-
if (typeof existing === "object" && existing !== null && Array.isArray(Reflect.get(existing, "installations"))) {
|
|
13624
|
-
Reflect.set(existing, "clients", []);
|
|
13625
|
-
return existing;
|
|
13626
|
-
}
|
|
13627
|
-
const created = { clients: [], installations: [] };
|
|
13628
|
-
Object.defineProperty(host, RUNTIME_TRANSPORT, {
|
|
13629
|
-
configurable: false,
|
|
13630
|
-
enumerable: false,
|
|
13631
|
-
value: created,
|
|
13632
|
-
writable: false
|
|
13633
|
-
});
|
|
13634
|
-
return created;
|
|
13635
|
-
})();
|
|
13636
13617
|
pools = new Map;
|
|
13637
13618
|
SyncLocalDataPolicyError = class SyncLocalDataPolicyError extends Error {
|
|
13638
13619
|
code;
|
|
@@ -13654,6 +13635,25 @@ var init_client = __esm(() => {
|
|
|
13654
13635
|
this.targetVersion = versions.targetVersion;
|
|
13655
13636
|
}
|
|
13656
13637
|
};
|
|
13638
|
+
RUNTIME_TRANSPORT = Symbol.for("@absolutejs/sync/client-runtime-transport");
|
|
13639
|
+
host = globalThis;
|
|
13640
|
+
registry = (() => {
|
|
13641
|
+
const existing = host[RUNTIME_TRANSPORT];
|
|
13642
|
+
if (isRegistry(existing))
|
|
13643
|
+
return existing;
|
|
13644
|
+
if (typeof existing === "object" && existing !== null && Array.isArray(Reflect.get(existing, "installations"))) {
|
|
13645
|
+
Reflect.set(existing, "clients", []);
|
|
13646
|
+
return existing;
|
|
13647
|
+
}
|
|
13648
|
+
const created = { clients: [], installations: [] };
|
|
13649
|
+
Object.defineProperty(host, RUNTIME_TRANSPORT, {
|
|
13650
|
+
configurable: false,
|
|
13651
|
+
enumerable: false,
|
|
13652
|
+
value: created,
|
|
13653
|
+
writable: false
|
|
13654
|
+
});
|
|
13655
|
+
return created;
|
|
13656
|
+
})();
|
|
13657
13657
|
});
|
|
13658
13658
|
|
|
13659
13659
|
// src/mobile/syncSchema.ts
|
|
@@ -14130,7 +14130,7 @@ var COMPRESSIBLE_EXTENSIONS, MIN_COMPRESSIBLE_BYTES = 1024, MIN_SAVING_RATIO = 0
|
|
|
14130
14130
|
known.add(encoding.encoding);
|
|
14131
14131
|
copies.set(pathname, known);
|
|
14132
14132
|
}
|
|
14133
|
-
return new Elysia2({ name: "absolutejs-precompressed" }).
|
|
14133
|
+
return new Elysia2({ name: "absolutejs-precompressed" }).onRequest(({ request }) => {
|
|
14134
14134
|
if (copies.size === 0)
|
|
14135
14135
|
return;
|
|
14136
14136
|
if (request.method !== "GET" && request.method !== "HEAD")
|
|
@@ -21757,7 +21757,7 @@ var init_compileAngular = __esm(() => {
|
|
|
21757
21757
|
|
|
21758
21758
|
// node_modules/content-tag/pkg/node/content_tag.cjs
|
|
21759
21759
|
var require_content_tag = __commonJS(function(exports, module) {
|
|
21760
|
-
var __dirname = "/home/
|
|
21760
|
+
var __dirname = "/home/runner/work/absolutejs/absolutejs/node_modules/content-tag/pkg/node";
|
|
21761
21761
|
var imports = {};
|
|
21762
21762
|
imports["__wbindgen_placeholder__"] = exports;
|
|
21763
21763
|
var wasm;
|
|
@@ -27511,7 +27511,7 @@ var init_requestContext = __esm(() => {
|
|
|
27511
27511
|
PAGE_WARMER_KEY = Symbol.for("absolutejs.devPageWarmer");
|
|
27512
27512
|
absoluteRequestContext = new Elysia3({
|
|
27513
27513
|
name: "absolutejs-request-context"
|
|
27514
|
-
}).
|
|
27514
|
+
}).onRequest(({ request }) => {
|
|
27515
27515
|
ensureRequestStorage().enterWith({ request });
|
|
27516
27516
|
}).as("global");
|
|
27517
27517
|
CSS_KEY_RE = /(?:CSS|Css)$/;
|
|
@@ -29619,7 +29619,7 @@ var STORE_KEY = "__elysiaStore", restoredStores, getGlobalValue = (key) => Refle
|
|
|
29619
29619
|
}, hmr = (hmrState, manifest, moduleServerHandler) => new Elysia7({ name: "absolutejs-hmr" }).use(websocket({
|
|
29620
29620
|
idleTimeout: DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS,
|
|
29621
29621
|
sendPings: true
|
|
29622
|
-
})).
|
|
29622
|
+
})).onRequest(async ({ request, store }) => {
|
|
29623
29623
|
restoreStore(store);
|
|
29624
29624
|
if (globalThis.__reactModuleRef) {
|
|
29625
29625
|
await bridgeReactInternals();
|
|
@@ -30002,13 +30002,13 @@ var init_requestInspector = __esm(() => {
|
|
|
30002
30002
|
pending = new WeakMap;
|
|
30003
30003
|
requestInspector = new Elysia10({
|
|
30004
30004
|
name: "absolute-request-inspector"
|
|
30005
|
-
}).get("/__absolute/requests", () => requestLog()).
|
|
30005
|
+
}).get("/__absolute/requests", () => requestLog()).onRequest(({ request }) => {
|
|
30006
30006
|
noteDevRequestStart();
|
|
30007
30007
|
pending.set(request, {
|
|
30008
30008
|
headers: toHeaderRecord(Object.fromEntries(request.headers)),
|
|
30009
30009
|
start: performance.now()
|
|
30010
30010
|
});
|
|
30011
|
-
}).
|
|
30011
|
+
}).onAfterResponse(({ request, set, responseValue }) => {
|
|
30012
30012
|
noteDevRequestEnd();
|
|
30013
30013
|
const path = pathOf(request.url);
|
|
30014
30014
|
if (path.startsWith("/__absolute"))
|
|
@@ -31093,7 +31093,7 @@ var MOBILE_WEBVIEW_ORIGINS, MOBILE_REQUEST_HEADER_NAMES, MOBILE_CORS_ALLOW_HEADE
|
|
|
31093
31093
|
throw new TypeError("currentReleaseId must identify a retained compatibility artifact.");
|
|
31094
31094
|
}
|
|
31095
31095
|
const resolveProducer = createProducerResolver(options.loadProducer);
|
|
31096
|
-
return new Elysia11({ name: "absolutejs-mobile-compatibility-dispatcher" }).
|
|
31096
|
+
return new Elysia11({ name: "absolutejs-mobile-compatibility-dispatcher" }).onRequest(async ({ request }) => {
|
|
31097
31097
|
if (getCurrentAbsoluteMobileProducerContext())
|
|
31098
31098
|
return;
|
|
31099
31099
|
const preflight = mobilePreflightResponse(request);
|
|
@@ -31123,7 +31123,7 @@ var MOBILE_WEBVIEW_ORIGINS, MOBILE_REQUEST_HEADER_NAMES, MOBILE_CORS_ALLOW_HEADE
|
|
|
31123
31123
|
console.error(`[Mobile] Failed to load retained producer ${resolved.artifact.releaseId}:`, error);
|
|
31124
31124
|
return finalizeMobileResponse(request, createAbsoluteMobilePageErrorResponse(parsed.client.pageId));
|
|
31125
31125
|
}
|
|
31126
|
-
}).
|
|
31126
|
+
}).onAfterHandle("global", ({ request, responseValue }) => {
|
|
31127
31127
|
const origin = mobileWebViewOrigin(request);
|
|
31128
31128
|
if (!origin || !(responseValue instanceof Response))
|
|
31129
31129
|
return;
|
|
@@ -31503,12 +31503,12 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
|
|
|
31503
31503
|
]);
|
|
31504
31504
|
const options = await loadAbsoluteMobileMaterializedBundle(root);
|
|
31505
31505
|
return createAbsoluteMobileCompatibilityDispatcher(options);
|
|
31506
|
-
}, createNotFoundPlugin = () => new Elysia12({ name: "absolutejs-not-found" }).
|
|
31506
|
+
}, createNotFoundPlugin = () => new Elysia12({ name: "absolutejs-not-found" }).onError("global", NotFound, async () => {
|
|
31507
31507
|
const response = await renderFirstNotFound();
|
|
31508
31508
|
if (response)
|
|
31509
31509
|
return response;
|
|
31510
31510
|
return;
|
|
31511
|
-
}), createBuildErrorRecoveryPlugin = () => new Elysia12({ name: "absolutejs-build-error-recovery" }).
|
|
31511
|
+
}), createBuildErrorRecoveryPlugin = () => new Elysia12({ name: "absolutejs-build-error-recovery" }).onError("global", async ({ error }) => {
|
|
31512
31512
|
const message = error instanceof Error ? error.message : String(error);
|
|
31513
31513
|
const assetMatch = /^Asset "(.+)" not found in manifest\.$/.exec(message);
|
|
31514
31514
|
if (!assetMatch)
|
|
@@ -31594,7 +31594,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
|
|
|
31594
31594
|
recordStep("create static plugin", stepStartedAt);
|
|
31595
31595
|
const assetCachePlugin = new Elysia12({
|
|
31596
31596
|
name: "absolutejs-asset-cache"
|
|
31597
|
-
}).
|
|
31597
|
+
}).onAfterHandle("global", ({ request, responseValue }) => {
|
|
31598
31598
|
if (!(responseValue instanceof Response))
|
|
31599
31599
|
return;
|
|
31600
31600
|
if (request.method !== "GET" && request.method !== "HEAD")
|
|
@@ -31618,7 +31618,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
|
|
|
31618
31618
|
const rerendering = new Set;
|
|
31619
31619
|
const prerenderPlugin = new Elysia12({
|
|
31620
31620
|
name: "prerendered-pages"
|
|
31621
|
-
}).
|
|
31621
|
+
}).onRequest(({ request }) => {
|
|
31622
31622
|
const url = new URL(request.url);
|
|
31623
31623
|
if (request.headers.get(PRERENDER_BYPASS_HEADER))
|
|
31624
31624
|
return;
|
|
@@ -37827,5 +37827,5 @@ export {
|
|
|
37827
37827
|
devBuild
|
|
37828
37828
|
};
|
|
37829
37829
|
|
|
37830
|
-
//# debugId=
|
|
37830
|
+
//# debugId=4777BA9018A144AF64756E2164756E21
|
|
37831
37831
|
//# sourceMappingURL=build.js.map
|