@absolutejs/absolute 0.20.0-beta.143 → 0.20.0-beta.145
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 +25 -0
- package/changelog.json +40 -0
- package/dist/angular/browser.js.map +2 -2
- 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 +10 -10
- package/dist/angular/server.js +2 -2
- package/dist/angular/server.js.map +9 -9
- package/dist/build.js +49 -45
- package/dist/build.js.map +49 -49
- package/dist/cli/{buildDepVendor-e2zz9x78.js → buildDepVendor-g49s8rr1.js} +1 -1
- 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-4qz8gk8x.js} +4 -4
- package/dist/cli/{expoProject-kabqa80q.js → expoProject-f3eb0040.js} +1 -1
- package/dist/cli/fmt-819g837b.js +20 -0
- package/dist/cli/{index-cc8eay5y.js → index-1ksy2h3r.js} +4 -4
- package/dist/cli/{index-6vpdsqa1.js → index-3ff5ztt3.js} +5 -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 +13 -8
- package/dist/cli/{mobile-p657bkqa.js → mobile-dvahvjeh.js} +3 -3
- package/dist/cli/{patchedBun-541bbnee.js → patchedBun-r3ykvvwz.js} +1 -1
- 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/client/index.js.map +3 -3
- package/dist/dev/client/handlers/angularHmrShim.ts +1 -2
- package/dist/dev/serverBootstrap.js +6 -2
- package/dist/index.js +49 -45
- package/dist/index.js.map +51 -51
- package/dist/islands/browser.js.map +2 -2
- package/dist/islands/index.js.map +5 -5
- package/dist/mobile/browser.js +1 -1
- package/dist/mobile/browser.js.map +4 -4
- package/dist/mobile/index.js +25 -25
- package/dist/mobile/index.js.map +16 -16
- package/dist/mobile/remoteMacAgentEntry.js +2 -2
- package/dist/react/browser.js.map +2 -2
- package/dist/react/components/index.js.map +3 -3
- package/dist/react/hooks/index.js.map +2 -2
- package/dist/react/index.js +2 -2
- package/dist/react/index.js.map +9 -9
- package/dist/react/server.js +2 -2
- package/dist/react/server.js.map +5 -5
- package/dist/src/cli/patchedBun.d.ts +5 -4
- package/dist/src/cli/scripts/fmt.d.ts +1 -0
- 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/browser.js.map +2 -2
- package/dist/svelte/index.js +2 -2
- package/dist/svelte/index.js.map +10 -10
- package/dist/svelte/server.js +2 -2
- package/dist/svelte/server.js.map +8 -8
- package/dist/types/globals.d.ts +9 -18
- package/dist/types/svelteRouter.ts +1 -2
- package/dist/vue/browser.js.map +2 -2
- package/dist/vue/index.js +2 -2
- package/dist/vue/index.js.map +10 -10
- package/dist/vue/server.js +2 -2
- package/dist/vue/server.js.map +6 -6
- package/package.json +15 -15
- /package/dist/cli/{add-a33ashpx.js → add-kwyqxccz.js} +0 -0
- /package/dist/cli/{doctor-f13ntk9a.js → doctor-4nv2c2j3.js} +0 -0
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;
|
|
@@ -22383,9 +22383,7 @@ export default PageComponent;
|
|
|
22383
22383
|
minify: false,
|
|
22384
22384
|
naming: `${baseName}.js`,
|
|
22385
22385
|
outdir: serverDir,
|
|
22386
|
-
plugins: [
|
|
22387
|
-
createEmberServerResolverPlugin(cwd, { stagedSourceMap })
|
|
22388
|
-
],
|
|
22386
|
+
plugins: [createEmberServerResolverPlugin(cwd, { stagedSourceMap })],
|
|
22389
22387
|
target: "bun",
|
|
22390
22388
|
throw: false
|
|
22391
22389
|
});
|
|
@@ -23869,7 +23867,7 @@ ${offenders.map((o) => ` \u2022 ${o}`).join(`
|
|
|
23869
23867
|
root: dirname25(source),
|
|
23870
23868
|
target: "bun",
|
|
23871
23869
|
throw: false,
|
|
23872
|
-
|
|
23870
|
+
...projectTsconfig()
|
|
23873
23871
|
});
|
|
23874
23872
|
if (!result.success) {
|
|
23875
23873
|
outputLogs(result.logs);
|
|
@@ -24163,7 +24161,7 @@ ${offenders.map((o) => ` \u2022 ${o}`).join(`
|
|
|
24163
24161
|
sourcemap: isDev ? "inline" : "none",
|
|
24164
24162
|
target: "bun",
|
|
24165
24163
|
throw: false,
|
|
24166
|
-
|
|
24164
|
+
...projectTsconfig()
|
|
24167
24165
|
}, resolveBunBuildOverride(bunBuildConfig, "server")))) : undefined,
|
|
24168
24166
|
reactBuildConfig ? tracePhase("bun/react-client", () => bunBuild7(reactBuildConfig)) : undefined,
|
|
24169
24167
|
nonReactClientEntryPoints.length > 0 ? tracePhase("bun/non-react-client", () => bunBuild7(mergeBunBuildConfig({
|
|
@@ -24194,7 +24192,7 @@ ${offenders.map((o) => ` \u2022 ${o}`).join(`
|
|
|
24194
24192
|
splitting: true,
|
|
24195
24193
|
target: "browser",
|
|
24196
24194
|
throw: false,
|
|
24197
|
-
|
|
24195
|
+
...projectTsconfig()
|
|
24198
24196
|
}, resolveBunBuildOverride(bunBuildConfig, "nonReactClient")))) : undefined,
|
|
24199
24197
|
urlReferencedFiles.length > 0 ? tracePhase("bun/worker-client", () => bunBuild7(mergeBunBuildConfig({
|
|
24200
24198
|
conditions: svelteResolveConditions,
|
|
@@ -24210,7 +24208,7 @@ ${offenders.map((o) => ` \u2022 ${o}`).join(`
|
|
|
24210
24208
|
splitting: !isDev,
|
|
24211
24209
|
target: "browser",
|
|
24212
24210
|
throw: false,
|
|
24213
|
-
|
|
24211
|
+
...projectTsconfig()
|
|
24214
24212
|
}, resolveBunBuildOverride(bunBuildConfig, "nonReactClient")))) : undefined,
|
|
24215
24213
|
islandClientEntryPoints.length > 0 ? tracePhase("bun/island-client", () => bunBuild7(mergeBunBuildConfig({
|
|
24216
24214
|
banner: pwaArtifacts?.bootstrapBanner,
|
|
@@ -24239,7 +24237,7 @@ ${offenders.map((o) => ` \u2022 ${o}`).join(`
|
|
|
24239
24237
|
splitting: !isDev,
|
|
24240
24238
|
target: "browser",
|
|
24241
24239
|
throw: false,
|
|
24242
|
-
|
|
24240
|
+
...projectTsconfig()
|
|
24243
24241
|
}, resolveBunBuildOverride(bunBuildConfig, "islandClient")))) : undefined,
|
|
24244
24242
|
globalCssEntries.length > 0 ? tracePhase("bun/global-css", () => bunBuild7(mergeBunBuildConfig({
|
|
24245
24243
|
entrypoints: globalCssEntries,
|
|
@@ -24674,7 +24672,7 @@ ${offenders.map((o) => ` \u2022 ${o}`).join(`
|
|
|
24674
24672
|
pageEntries,
|
|
24675
24673
|
tailwindChanged: tailwindResult?.cssChanged ?? false
|
|
24676
24674
|
};
|
|
24677
|
-
}, build = async (config) => {
|
|
24675
|
+
}, projectTsconfig = () => existsSync34(resolve33("tsconfig.json")) ? { tsconfig: "./tsconfig.json" } : {}, build = async (config) => {
|
|
24678
24676
|
const projectRoot = cwd();
|
|
24679
24677
|
const buildPath = validateSafePath(config.buildDirectory ?? "build", projectRoot);
|
|
24680
24678
|
return withBuildDirectoryLock(buildPath, () => buildUnlocked(config));
|
|
@@ -24843,7 +24841,9 @@ export const importSync = (specifier) => {
|
|
|
24843
24841
|
"@glimmer/env",
|
|
24844
24842
|
"@simple-dom/serializer"
|
|
24845
24843
|
]);
|
|
24846
|
-
build.onResolve({ filter: /^@embroider\/macros$/ }, () => ({
|
|
24844
|
+
build.onResolve({ filter: /^@embroider\/macros$/ }, () => ({
|
|
24845
|
+
path: macrosShimPath
|
|
24846
|
+
}));
|
|
24847
24847
|
build.onResolve({ filter: /^@(?:ember|glimmer|simple-dom)\// }, (args) => {
|
|
24848
24848
|
if (standalonePackages.has(args.path)) {
|
|
24849
24849
|
return;
|
|
@@ -24932,7 +24932,11 @@ var NODE_MODULES_SEGMENT, verdicts, isWorkspacePackageSpecifier = (specifier, pr
|
|
|
24932
24932
|
} catch {
|
|
24933
24933
|
return [];
|
|
24934
24934
|
}
|
|
24935
|
-
const names = [
|
|
24935
|
+
const names = [
|
|
24936
|
+
"dependencies",
|
|
24937
|
+
"devDependencies",
|
|
24938
|
+
"optionalDependencies"
|
|
24939
|
+
].flatMap((field) => {
|
|
24936
24940
|
const deps = manifest[field];
|
|
24937
24941
|
return deps && typeof deps === "object" ? Object.keys(deps) : [];
|
|
24938
24942
|
});
|
|
@@ -27511,7 +27515,7 @@ var init_requestContext = __esm(() => {
|
|
|
27511
27515
|
PAGE_WARMER_KEY = Symbol.for("absolutejs.devPageWarmer");
|
|
27512
27516
|
absoluteRequestContext = new Elysia3({
|
|
27513
27517
|
name: "absolutejs-request-context"
|
|
27514
|
-
}).
|
|
27518
|
+
}).onRequest(({ request }) => {
|
|
27515
27519
|
ensureRequestStorage().enterWith({ request });
|
|
27516
27520
|
}).as("global");
|
|
27517
27521
|
CSS_KEY_RE = /(?:CSS|Css)$/;
|
|
@@ -29619,7 +29623,7 @@ var STORE_KEY = "__elysiaStore", restoredStores, getGlobalValue = (key) => Refle
|
|
|
29619
29623
|
}, hmr = (hmrState, manifest, moduleServerHandler) => new Elysia7({ name: "absolutejs-hmr" }).use(websocket({
|
|
29620
29624
|
idleTimeout: DEFAULT_WEBSOCKET_IDLE_TIMEOUT_SECONDS,
|
|
29621
29625
|
sendPings: true
|
|
29622
|
-
})).
|
|
29626
|
+
})).onRequest(async ({ request, store }) => {
|
|
29623
29627
|
restoreStore(store);
|
|
29624
29628
|
if (globalThis.__reactModuleRef) {
|
|
29625
29629
|
await bridgeReactInternals();
|
|
@@ -30002,13 +30006,13 @@ var init_requestInspector = __esm(() => {
|
|
|
30002
30006
|
pending = new WeakMap;
|
|
30003
30007
|
requestInspector = new Elysia10({
|
|
30004
30008
|
name: "absolute-request-inspector"
|
|
30005
|
-
}).get("/__absolute/requests", () => requestLog()).
|
|
30009
|
+
}).get("/__absolute/requests", () => requestLog()).onRequest(({ request }) => {
|
|
30006
30010
|
noteDevRequestStart();
|
|
30007
30011
|
pending.set(request, {
|
|
30008
30012
|
headers: toHeaderRecord(Object.fromEntries(request.headers)),
|
|
30009
30013
|
start: performance.now()
|
|
30010
30014
|
});
|
|
30011
|
-
}).
|
|
30015
|
+
}).onAfterResponse(({ request, set, responseValue }) => {
|
|
30012
30016
|
noteDevRequestEnd();
|
|
30013
30017
|
const path = pathOf(request.url);
|
|
30014
30018
|
if (path.startsWith("/__absolute"))
|
|
@@ -31093,7 +31097,7 @@ var MOBILE_WEBVIEW_ORIGINS, MOBILE_REQUEST_HEADER_NAMES, MOBILE_CORS_ALLOW_HEADE
|
|
|
31093
31097
|
throw new TypeError("currentReleaseId must identify a retained compatibility artifact.");
|
|
31094
31098
|
}
|
|
31095
31099
|
const resolveProducer = createProducerResolver(options.loadProducer);
|
|
31096
|
-
return new Elysia11({ name: "absolutejs-mobile-compatibility-dispatcher" }).
|
|
31100
|
+
return new Elysia11({ name: "absolutejs-mobile-compatibility-dispatcher" }).onRequest(async ({ request }) => {
|
|
31097
31101
|
if (getCurrentAbsoluteMobileProducerContext())
|
|
31098
31102
|
return;
|
|
31099
31103
|
const preflight = mobilePreflightResponse(request);
|
|
@@ -31123,7 +31127,7 @@ var MOBILE_WEBVIEW_ORIGINS, MOBILE_REQUEST_HEADER_NAMES, MOBILE_CORS_ALLOW_HEADE
|
|
|
31123
31127
|
console.error(`[Mobile] Failed to load retained producer ${resolved.artifact.releaseId}:`, error);
|
|
31124
31128
|
return finalizeMobileResponse(request, createAbsoluteMobilePageErrorResponse(parsed.client.pageId));
|
|
31125
31129
|
}
|
|
31126
|
-
}).
|
|
31130
|
+
}).onAfterHandle("global", ({ request, responseValue }) => {
|
|
31127
31131
|
const origin = mobileWebViewOrigin(request);
|
|
31128
31132
|
if (!origin || !(responseValue instanceof Response))
|
|
31129
31133
|
return;
|
|
@@ -31503,12 +31507,12 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
|
|
|
31503
31507
|
]);
|
|
31504
31508
|
const options = await loadAbsoluteMobileMaterializedBundle(root);
|
|
31505
31509
|
return createAbsoluteMobileCompatibilityDispatcher(options);
|
|
31506
|
-
}, createNotFoundPlugin = () => new Elysia12({ name: "absolutejs-not-found" }).
|
|
31510
|
+
}, createNotFoundPlugin = () => new Elysia12({ name: "absolutejs-not-found" }).onError("global", NotFound, async () => {
|
|
31507
31511
|
const response = await renderFirstNotFound();
|
|
31508
31512
|
if (response)
|
|
31509
31513
|
return response;
|
|
31510
31514
|
return;
|
|
31511
|
-
}), createBuildErrorRecoveryPlugin = () => new Elysia12({ name: "absolutejs-build-error-recovery" }).
|
|
31515
|
+
}), createBuildErrorRecoveryPlugin = () => new Elysia12({ name: "absolutejs-build-error-recovery" }).onError("global", async ({ error }) => {
|
|
31512
31516
|
const message = error instanceof Error ? error.message : String(error);
|
|
31513
31517
|
const assetMatch = /^Asset "(.+)" not found in manifest\.$/.exec(message);
|
|
31514
31518
|
if (!assetMatch)
|
|
@@ -31594,7 +31598,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
|
|
|
31594
31598
|
recordStep("create static plugin", stepStartedAt);
|
|
31595
31599
|
const assetCachePlugin = new Elysia12({
|
|
31596
31600
|
name: "absolutejs-asset-cache"
|
|
31597
|
-
}).
|
|
31601
|
+
}).onAfterHandle("global", ({ request, responseValue }) => {
|
|
31598
31602
|
if (!(responseValue instanceof Response))
|
|
31599
31603
|
return;
|
|
31600
31604
|
if (request.method !== "GET" && request.method !== "HEAD")
|
|
@@ -31618,7 +31622,7 @@ var MS_PER_SECOND2 = 1000, DEFAULT_PORT2 = 3000, MAX_STATIC_ROUTE_COUNT, STATIC_
|
|
|
31618
31622
|
const rerendering = new Set;
|
|
31619
31623
|
const prerenderPlugin = new Elysia12({
|
|
31620
31624
|
name: "prerendered-pages"
|
|
31621
|
-
}).
|
|
31625
|
+
}).onRequest(({ request }) => {
|
|
31622
31626
|
const url = new URL(request.url);
|
|
31623
31627
|
if (request.headers.get(PRERENDER_BYPASS_HEADER))
|
|
31624
31628
|
return;
|
|
@@ -37827,5 +37831,5 @@ export {
|
|
|
37827
37831
|
devBuild
|
|
37828
37832
|
};
|
|
37829
37833
|
|
|
37830
|
-
//# debugId=
|
|
37834
|
+
//# debugId=52E8261C6EFE79FE64756E2164756E21
|
|
37831
37835
|
//# sourceMappingURL=build.js.map
|