@absolutejs/absolute 0.20.0-beta.157 → 0.20.0-beta.159
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 +12 -0
- package/changelog.json +20 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +33 -10
- package/dist/build.js.map +7 -6
- package/dist/cli/{compile-myhwnrrn.js → compile-30m09382.js} +2 -2
- package/dist/cli/{dev-dpb0bksv.js → dev-488hbm61.js} +1 -1
- package/dist/cli/{expoProject-z1gxrw3s.js → expoProject-h404n2r8.js} +1 -1
- package/dist/cli/{index-cnchgvtx.js → index-55k7vn84.js} +1 -1
- package/dist/cli/{index-3n1vqn3y.js → index-j7m8pq48.js} +1 -1
- package/dist/cli/{index-x3a66ym4.js → index-s0r5q839.js} +2 -1
- package/dist/cli/index.js +5 -5
- package/dist/cli/{mobile-gtnrcfsf.js → mobile-gpxjf5e2.js} +5 -4
- package/dist/cli/{start-3bbpy0md.js → start-4rpdy8hg.js} +3 -3
- package/dist/index.js +33 -10
- package/dist/index.js.map +7 -6
- package/dist/mobile/index.js +7 -7
- package/dist/mobile/index.js.map +4 -4
- package/dist/mobile/remoteMacAgentEntry.js +1 -1
- package/dist/src/build/dedupeCssBlocks.d.ts +5 -0
- package/dist/src/mobile/nativePackages.d.ts +1 -0
- package/package.json +2 -2
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
createElysiaOpenApiTypeboxPlugin,
|
|
16
16
|
createOptionalPeerPlugin,
|
|
17
17
|
resolveServerBundleExternals
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-j7m8pq48.js";
|
|
19
19
|
import {
|
|
20
20
|
normalizeAbsoluteMobileConfig2
|
|
21
21
|
} from "./index-t7yf3vxs.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-s0r5q839.js";
|
|
23
23
|
import {
|
|
24
24
|
ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV2,
|
|
25
25
|
installAbsoluteMobileAuthEnvironment2
|
|
@@ -1338,7 +1338,7 @@ var loadAbsoluteMobileDevModules = async () => {
|
|
|
1338
1338
|
expoNativeWatcher
|
|
1339
1339
|
] = await Promise.all([
|
|
1340
1340
|
import("./config-hy5dkexz.js"),
|
|
1341
|
-
import("./expoProject-
|
|
1341
|
+
import("./expoProject-h404n2r8.js"),
|
|
1342
1342
|
import("./expoDevController-hen9sra5.js"),
|
|
1343
1343
|
import("./nativeAuth-ysv0x5dy.js"),
|
|
1344
1344
|
import("./androidEmulatorController-3zn6a4j3.js"),
|
|
@@ -29,6 +29,7 @@ import { readFile } from "fs/promises";
|
|
|
29
29
|
import { dirname, join, resolve } from "path";
|
|
30
30
|
var ABSOLUTE_CAPACITOR_DEVICES_VERSION = "0.8.1";
|
|
31
31
|
var ABSOLUTE_CAPACITOR_SYNC_VERSION = "0.9.5";
|
|
32
|
+
var ABSOLUTE_DEPLOY_VERSION = "0.33.0";
|
|
32
33
|
var ABSOLUTE_DEVICES_VERSION = "0.7.1";
|
|
33
34
|
var ABSOLUTE_EXPO_DEVICES_VERSION = "0.0.12";
|
|
34
35
|
var ABSOLUTE_NATIVE_EXACT_PACKAGES = new Set([
|
|
@@ -4305,4 +4306,4 @@ var syncAbsoluteExpoWebAssets2 = async (config) => {
|
|
|
4305
4306
|
return { appBuild, assets: assets.length, bundleId, path: destination };
|
|
4306
4307
|
};
|
|
4307
4308
|
|
|
4308
|
-
export { ABSOLUTE_NATIVE_EXACT_PACKAGES, CAPACITOR_PACKAGE_SPECS, CAPACITOR_SYNC_PACKAGE_SPECS, EXPO_APP_EXACT_PACKAGES, EXPO_APP_PACKAGE_SPECS, EXPO_CODE_SIGNING_PACKAGE_SPEC, assertNativePackageVersions, packageNameFromSpec, packagesNeedingExactInstall, discoverAbsoluteSyncSchema, absoluteDeviceNativeRequirements, assertAbsoluteDeviceCapabilityPackages, resolveAbsoluteDeviceCapabilityPlan, ABSOLUTE_MOBILE_UPDATE_FORMAT, absoluteMobileUpdateSigningPayload, canonicalizeAbsoluteMobileUpdate, parseAbsoluteMobileUpdateManifest, unsignedAbsoluteMobileUpdate, resolveAbsoluteMobileUpdateRuntime, ABSOLUTE_CAPACITOR_ASSETS_SPEC, generateAbsoluteCapacitorBranding, inspectAbsoluteMobileBranding, renderAbsoluteMobileBrandingPreview, writeAbsoluteExpoProject2, syncAbsoluteExpoWebAssets2 };
|
|
4309
|
+
export { ABSOLUTE_DEPLOY_VERSION, ABSOLUTE_NATIVE_EXACT_PACKAGES, CAPACITOR_PACKAGE_SPECS, CAPACITOR_SYNC_PACKAGE_SPECS, EXPO_APP_EXACT_PACKAGES, EXPO_APP_PACKAGE_SPECS, EXPO_CODE_SIGNING_PACKAGE_SPEC, assertNativePackageVersions, packageNameFromSpec, packagesNeedingExactInstall, discoverAbsoluteSyncSchema, absoluteDeviceNativeRequirements, assertAbsoluteDeviceCapabilityPackages, resolveAbsoluteDeviceCapabilityPlan, ABSOLUTE_MOBILE_UPDATE_FORMAT, absoluteMobileUpdateSigningPayload, canonicalizeAbsoluteMobileUpdate, parseAbsoluteMobileUpdateManifest, unsignedAbsoluteMobileUpdate, resolveAbsoluteMobileUpdateRuntime, ABSOLUTE_CAPACITOR_ASSETS_SPEC, generateAbsoluteCapacitorBranding, inspectAbsoluteMobileBranding, renderAbsoluteMobileBrandingPreview, writeAbsoluteExpoProject2, syncAbsoluteExpoWebAssets2 };
|
package/dist/cli/index.js
CHANGED
|
@@ -54,7 +54,7 @@ if (command === "dev") {
|
|
|
54
54
|
}
|
|
55
55
|
const positionalArgs = stripNamedArgs("--config", "--android-device", "--ios-device").filter((arg) => arg !== "--no-mobile" && arg !== "--eager");
|
|
56
56
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
57
|
-
const { dev } = await import("./dev-
|
|
57
|
+
const { dev } = await import("./dev-488hbm61.js");
|
|
58
58
|
await dev(serverEntry, configPath, {
|
|
59
59
|
androidDevice,
|
|
60
60
|
eager: args.includes("--eager"),
|
|
@@ -70,7 +70,7 @@ if (command === "dev") {
|
|
|
70
70
|
const configPath = parseNamedArg("--config");
|
|
71
71
|
const positionalArgs = stripNamedArgs("--outdir", "--config").filter((arg) => arg !== "--prebuilt");
|
|
72
72
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
73
|
-
const { start } = await import("./start-
|
|
73
|
+
const { start } = await import("./start-4rpdy8hg.js");
|
|
74
74
|
await start(serverEntry, outdir, configPath, {
|
|
75
75
|
prebuilt: args.includes("--prebuilt")
|
|
76
76
|
});
|
|
@@ -80,7 +80,7 @@ if (command === "dev") {
|
|
|
80
80
|
const configPath = parseNamedArg("--config");
|
|
81
81
|
const positionalArgs = stripNamedArgs("--outdir", "--config");
|
|
82
82
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
83
|
-
const { start } = await import("./start-
|
|
83
|
+
const { start } = await import("./start-4rpdy8hg.js");
|
|
84
84
|
await start(serverEntry, outdir, configPath, { prepareOnly: true });
|
|
85
85
|
} else if (command === "build") {
|
|
86
86
|
sendTelemetryEvent("cli:command", { command });
|
|
@@ -205,13 +205,13 @@ if (command === "dev") {
|
|
|
205
205
|
const configPath = parseNamedArg("--config");
|
|
206
206
|
const positionalArgs = stripNamedArgs("--outdir", "--outfile", "--config");
|
|
207
207
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
208
|
-
const { compile } = await import("./compile-
|
|
208
|
+
const { compile } = await import("./compile-30m09382.js");
|
|
209
209
|
await compile(serverEntry, outdir, outfile, configPath);
|
|
210
210
|
} else if (command === "mobile") {
|
|
211
211
|
sendTelemetryEvent("cli:command", {
|
|
212
212
|
command: `mobile:${workspaceCommand ?? "unknown"}`
|
|
213
213
|
});
|
|
214
|
-
const { runMobile } = await import("./mobile-
|
|
214
|
+
const { runMobile } = await import("./mobile-gpxjf5e2.js");
|
|
215
215
|
try {
|
|
216
216
|
await runMobile(args);
|
|
217
217
|
} catch (error) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
ABSOLUTE_DEPLOY_VERSION,
|
|
3
4
|
ABSOLUTE_NATIVE_EXACT_PACKAGES,
|
|
4
5
|
CAPACITOR_PACKAGE_SPECS,
|
|
5
6
|
CAPACITOR_SYNC_PACKAGE_SPECS,
|
|
@@ -25,7 +26,7 @@ import {
|
|
|
25
26
|
renderAbsoluteMobileBrandingPreview,
|
|
26
27
|
writeAbsoluteExpoProject2,
|
|
27
28
|
syncAbsoluteExpoWebAssets2
|
|
28
|
-
} from "./index-
|
|
29
|
+
} from "./index-s0r5q839.js";
|
|
29
30
|
import {
|
|
30
31
|
projectUsesAbsoluteAuth2,
|
|
31
32
|
projectUsesAbsoluteSync2
|
|
@@ -61,7 +62,7 @@ import {
|
|
|
61
62
|
resolveAbsoluteMobileRoute,
|
|
62
63
|
ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION,
|
|
63
64
|
ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT
|
|
64
|
-
} from "./index-
|
|
65
|
+
} from "./index-j7m8pq48.js";
|
|
65
66
|
import {
|
|
66
67
|
buildAbsoluteExpoAndroidWslBundle2
|
|
67
68
|
} from "./index-px7fqsfk.js";
|
|
@@ -78,7 +79,7 @@ import {
|
|
|
78
79
|
import"./index-e6ysp900.js";
|
|
79
80
|
import {
|
|
80
81
|
start2
|
|
81
|
-
} from "./index-
|
|
82
|
+
} from "./index-55k7vn84.js";
|
|
82
83
|
import {
|
|
83
84
|
captureAbsoluteRemoteMacCommand2,
|
|
84
85
|
getAbsoluteRemoteMacProfile2,
|
|
@@ -9487,7 +9488,7 @@ var provisionMobileUpdate = async (args) => {
|
|
|
9487
9488
|
throw new TypeError("--storage must be local or s3.");
|
|
9488
9489
|
const modulePath = valueAfter(args, "--registry") ?? mobile.updateServer.registryModule;
|
|
9489
9490
|
const packages = [
|
|
9490
|
-
|
|
9491
|
+
`@absolutejs/deploy@${ABSOLUTE_DEPLOY_VERSION}`,
|
|
9491
9492
|
"@absolutejs/blob@0.5.2",
|
|
9492
9493
|
...requestedStorage === "s3" ? [
|
|
9493
9494
|
"@aws-sdk/client-s3@3.1095.0",
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
start2
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-55k7vn84.js";
|
|
5
|
+
import"./index-j7m8pq48.js";
|
|
6
6
|
import"./index-e6ysp900.js";
|
|
7
7
|
import"./index-71gchbzt.js";
|
|
8
8
|
import"./index-h7qhz02e.js";
|
|
9
9
|
import"./index-qyxd5n9a.js";
|
|
10
10
|
import"./index-43a1vvb7.js";
|
|
11
11
|
import"./index-t7yf3vxs.js";
|
|
12
|
-
import"./index-
|
|
12
|
+
import"./index-s0r5q839.js";
|
|
13
13
|
import"./index-pch0v1z6.js";
|
|
14
14
|
import"./index-v4cg4dvm.js";
|
|
15
15
|
import"./index-74m7kh8c.js";
|
package/dist/index.js
CHANGED
|
@@ -12925,17 +12925,17 @@ var MAX_FILE_BYTES, MAX_TOTAL_BYTES, DAY_MS, DEFAULT_MIN_AGE_MS, DEFAULT_GRACE_P
|
|
|
12925
12925
|
const platformUpdate = descriptor.platforms[platform];
|
|
12926
12926
|
if (!platformUpdate || descriptor.runtimeVersion !== runtimeFingerprint)
|
|
12927
12927
|
return new Response(null, { status: 204 });
|
|
12928
|
-
const
|
|
12929
|
-
const releaseRoute = `${
|
|
12928
|
+
const origin = new URL(request.url).origin;
|
|
12929
|
+
const releaseRoute = `${origin}/${route}/${selected.manifest.releaseId}/files`;
|
|
12930
12930
|
const protocolAsset = (asset, launch = false) => {
|
|
12931
|
-
const
|
|
12932
|
-
if (!
|
|
12931
|
+
const file = selected.manifest.files.find((candidate) => candidate.path === asset.path);
|
|
12932
|
+
if (!file)
|
|
12933
12933
|
throw new MobileUpdateRegistryError(`Expo update references missing signed asset ${asset.path}`);
|
|
12934
12934
|
return {
|
|
12935
12935
|
contentType: expoContentType(asset.extension, launch),
|
|
12936
12936
|
...asset.extension ? { fileExtension: `.${asset.extension}` } : {},
|
|
12937
|
-
key:
|
|
12938
|
-
hash: Buffer.from(
|
|
12937
|
+
key: file.sha256,
|
|
12938
|
+
hash: Buffer.from(file.sha256, "hex").toString("base64url"),
|
|
12939
12939
|
url: `${releaseRoute}/${encodeUpdatePath(asset.path)}`
|
|
12940
12940
|
};
|
|
12941
12941
|
};
|
|
@@ -21070,6 +21070,29 @@ var init_compileSvelte = __esm(() => {
|
|
|
21070
21070
|
transpiler3 = new Transpiler2({ loader: "ts", target: "browser" });
|
|
21071
21071
|
});
|
|
21072
21072
|
|
|
21073
|
+
// src/build/dedupeCssBlocks.ts
|
|
21074
|
+
var dedupeCssBlocks = (blocks) => {
|
|
21075
|
+
const seen = new Set;
|
|
21076
|
+
const result = [];
|
|
21077
|
+
for (const block of blocks.toReversed()) {
|
|
21078
|
+
const syntax = block.replace(/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\/\*[\s\S]*?\*\//g, "");
|
|
21079
|
+
if (/@(?:import|namespace)\b|@[\w-]*\\/i.test(syntax)) {
|
|
21080
|
+
seen.clear();
|
|
21081
|
+
result.push(block);
|
|
21082
|
+
continue;
|
|
21083
|
+
}
|
|
21084
|
+
if (/@layer\b/i.test(syntax)) {
|
|
21085
|
+
result.push(block);
|
|
21086
|
+
continue;
|
|
21087
|
+
}
|
|
21088
|
+
if (seen.has(block))
|
|
21089
|
+
continue;
|
|
21090
|
+
seen.add(block);
|
|
21091
|
+
result.push(block);
|
|
21092
|
+
}
|
|
21093
|
+
return result.reverse();
|
|
21094
|
+
};
|
|
21095
|
+
|
|
21073
21096
|
// src/build/parseVueSpaRoutes.ts
|
|
21074
21097
|
import ts17 from "typescript";
|
|
21075
21098
|
var propertyName = (node) => ts17.isIdentifier(node) || ts17.isStringLiteralLike(node) ? node.text : null, stringValue = (node) => ts17.isStringLiteralLike(node) ? node.text : null, findVueImport = (node) => {
|
|
@@ -21547,7 +21570,7 @@ import { createHash as createHash6 } from "crypto";
|
|
|
21547
21570
|
import { existsSync as existsSync30, readFileSync as readFileSync29 } from "fs";
|
|
21548
21571
|
import { mkdir as mkdir9, rename as rename2, writeFile as writeFile9 } from "fs/promises";
|
|
21549
21572
|
import { join as join42, resolve as resolve34 } from "path";
|
|
21550
|
-
var CACHE_DIR_NAME = "compile-cache", ABSOLUTE_CACHE_DIR_NAME2 = ".absolutejs", CACHE_FORMAT_VERSION =
|
|
21573
|
+
var CACHE_DIR_NAME = "compile-cache", ABSOLUTE_CACHE_DIR_NAME2 = ".absolutejs", CACHE_FORMAT_VERSION = 3, FILE_NAME_HASH_LENGTH = 32, vueCompileCacheEnabled = () => process.env.ABSOLUTE_COMPILE_CACHE !== "0", hashContent = (content) => createHash6("sha256").update(content).digest("hex"), hashParts = (parts) => {
|
|
21551
21574
|
const hash = createHash6("sha256");
|
|
21552
21575
|
for (const part of parts) {
|
|
21553
21576
|
hash.update(part);
|
|
@@ -22613,10 +22636,10 @@ var resolveDevClientDir3 = () => {
|
|
|
22613
22636
|
sourceFilePath,
|
|
22614
22637
|
styleSources
|
|
22615
22638
|
}));
|
|
22616
|
-
const allCss = [
|
|
22639
|
+
const allCss = dedupeCssBlocks([
|
|
22617
22640
|
...localCss,
|
|
22618
22641
|
...childBuildResults.flatMap((result) => result.cssCodes)
|
|
22619
|
-
];
|
|
22642
|
+
]);
|
|
22620
22643
|
const cssOutputFile = isEntryPoint && allCss.length ? join45(outputDirs.css, `${toKebab(fileBaseName)}-compiled.css`) : null;
|
|
22621
22644
|
const cssOutputPaths = cssOutputFile ? [cssOutputFile] : [];
|
|
22622
22645
|
trackWrite(writeVueOutputs({
|
|
@@ -44160,5 +44183,5 @@ export {
|
|
|
44160
44183
|
wrapPageHandlerWithStreamingSlots
|
|
44161
44184
|
};
|
|
44162
44185
|
|
|
44163
|
-
//# debugId=
|
|
44186
|
+
//# debugId=CED9D607F640186064756E2164756E21
|
|
44164
44187
|
//# sourceMappingURL=index.js.map
|