@absolutejs/absolute 0.20.0-beta.131 → 0.20.0-beta.132
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 +7 -0
- package/changelog.json +11 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +2 -2
- package/dist/build.js.map +1 -1
- package/dist/cli/{compile-qygwqezx.js → compile-nf4qsqyd.js} +3 -1
- package/dist/cli/{index-9ehbfmeq.js → index-c3tqbpkq.js} +3 -1
- package/dist/cli/{index-r6k4xmdb.js → index-hfvxsgf4.js} +27 -10
- package/dist/cli/index.js +4 -4
- package/dist/cli/{mobile-w295dx0t.js → mobile-m0cdh8cf.js} +2 -2
- package/dist/cli/{start-36w63t6h.js → start-3z3gtgm0.js} +2 -2
- package/dist/dev/serverBootstrap.js +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/mobile/remoteMacAgentEntry.js +1 -1
- package/dist/src/cli/serverBundleExternals.d.ts +17 -2
- package/package.json +1 -1
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
finalizeAbsoluteMobileCompatibilityBuild,
|
|
12
12
|
createAbsoluteMobileRouteMetadataPlugin,
|
|
13
13
|
createElysiaOpenApiTypeboxPlugin,
|
|
14
|
+
createOptionalPeerPlugin,
|
|
14
15
|
resolveServerBundleExternals
|
|
15
|
-
} from "./index-
|
|
16
|
+
} from "./index-hfvxsgf4.js";
|
|
16
17
|
import {
|
|
17
18
|
normalizeAbsoluteMobileConfig2
|
|
18
19
|
} from "./index-rrxeqrbn.js";
|
|
@@ -1158,6 +1159,7 @@ export default server;
|
|
|
1158
1159
|
external: resolveServerBundleExternals(buildConfig),
|
|
1159
1160
|
outdir: resolvedOutdir,
|
|
1160
1161
|
plugins: [
|
|
1162
|
+
createOptionalPeerPlugin(),
|
|
1161
1163
|
...islandRegistryPlugin ? [islandRegistryPlugin] : [],
|
|
1162
1164
|
...buildConfig.mobile ? [
|
|
1163
1165
|
createAbsoluteMobileRouteMetadataPlugin({
|
|
@@ -18,8 +18,9 @@ import {
|
|
|
18
18
|
finalizeAbsoluteMobileCompatibilityBuild,
|
|
19
19
|
createAbsoluteMobileRouteMetadataPlugin,
|
|
20
20
|
createElysiaOpenApiTypeboxPlugin,
|
|
21
|
+
createOptionalPeerPlugin,
|
|
21
22
|
resolveServerBundleExternals
|
|
22
|
-
} from "./index-
|
|
23
|
+
} from "./index-hfvxsgf4.js";
|
|
23
24
|
import {
|
|
24
25
|
normalizeAbsoluteMobileConfig2
|
|
25
26
|
} from "./index-rrxeqrbn.js";
|
|
@@ -382,6 +383,7 @@ var start2 = async (serverEntry, outdir, configPath, options = {}) => {
|
|
|
382
383
|
external: resolveServerBundleExternals(buildConfig),
|
|
383
384
|
outdir: resolvedOutdir,
|
|
384
385
|
plugins: [
|
|
386
|
+
createOptionalPeerPlugin(),
|
|
385
387
|
...islandRegistryPlugin ? [islandRegistryPlugin] : [],
|
|
386
388
|
...buildConfig.mobile ? [
|
|
387
389
|
createAbsoluteMobileRouteMetadataPlugin({
|
|
@@ -1999,7 +1999,7 @@ var createElysiaOpenApiTypeboxPlugin = () => ({
|
|
|
1999
1999
|
|
|
2000
2000
|
// src/cli/serverBundleExternals.ts
|
|
2001
2001
|
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
|
|
2002
|
-
import { join as join5 } from "path";
|
|
2002
|
+
import { dirname as dirname6, join as join5 } from "path";
|
|
2003
2003
|
var FRAMEWORK_EXTERNALS = [
|
|
2004
2004
|
"react",
|
|
2005
2005
|
"react/jsx-runtime",
|
|
@@ -2038,14 +2038,32 @@ var readManifest = (file) => {
|
|
|
2038
2038
|
return;
|
|
2039
2039
|
}
|
|
2040
2040
|
};
|
|
2041
|
-
var
|
|
2042
|
-
var collectMissingOptionalPeers = (projectRoot) => {
|
|
2041
|
+
var collectOptionalPeers = (projectRoot) => {
|
|
2043
2042
|
const app = readManifest(join5(projectRoot, "package.json"));
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2043
|
+
return [
|
|
2044
|
+
...new Set(Object.keys(app?.dependencies ?? {}).flatMap((dependency) => Object.entries(readManifest(join5(projectRoot, "node_modules", dependency, "package.json"))?.peerDependenciesMeta ?? {}).filter(([, meta]) => meta.optional === true).map(([peer]) => peer)))
|
|
2045
|
+
];
|
|
2047
2046
|
};
|
|
2048
|
-
var
|
|
2047
|
+
var escapeRegExp2 = (text) => text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
2048
|
+
var createOptionalPeerPlugin = (projectRoot = process.cwd()) => ({
|
|
2049
|
+
name: "absolute-optional-peers",
|
|
2050
|
+
setup(build) {
|
|
2051
|
+
const peers = collectOptionalPeers(projectRoot);
|
|
2052
|
+
if (peers.length === 0)
|
|
2053
|
+
return;
|
|
2054
|
+
const filter = new RegExp(`^(?:${peers.map(escapeRegExp2).join("|")})(?:/.*)?$`);
|
|
2055
|
+
build.onResolve({ filter }, (args) => {
|
|
2056
|
+
const from = args.importer ? dirname6(args.importer) : projectRoot;
|
|
2057
|
+
try {
|
|
2058
|
+
Bun.resolveSync(args.path, from);
|
|
2059
|
+
return;
|
|
2060
|
+
} catch {
|
|
2061
|
+
return { external: true, path: args.path };
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
var resolveServerBundleExternals = (buildConfig) => [
|
|
2049
2067
|
...FRAMEWORK_EXTERNALS.filter((specifier) => {
|
|
2050
2068
|
if (buildConfig.reactDirectory && (specifier === "react" || specifier.startsWith("react/") || specifier.startsWith("react-dom")))
|
|
2051
2069
|
return false;
|
|
@@ -2055,8 +2073,7 @@ var resolveServerBundleExternals = (buildConfig, projectRoot = process.cwd()) =>
|
|
|
2055
2073
|
return false;
|
|
2056
2074
|
return true;
|
|
2057
2075
|
}),
|
|
2058
|
-
...collectUserServerExternals(buildConfig)
|
|
2059
|
-
...collectMissingOptionalPeers(projectRoot)
|
|
2076
|
+
...collectUserServerExternals(buildConfig)
|
|
2060
2077
|
];
|
|
2061
2078
|
|
|
2062
|
-
export { createIslandRegistryDefinitionPlugin, createBunStringRawUnicodePlugin, resolveAbsoluteMobileRoute, ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION, ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT, finalizeAbsoluteMobileCompatibilityBuild, createAbsoluteMobileRouteMetadataPlugin, createElysiaOpenApiTypeboxPlugin, resolveServerBundleExternals };
|
|
2079
|
+
export { createIslandRegistryDefinitionPlugin, createBunStringRawUnicodePlugin, resolveAbsoluteMobileRoute, ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION, ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT, finalizeAbsoluteMobileCompatibilityBuild, createAbsoluteMobileRouteMetadataPlugin, createElysiaOpenApiTypeboxPlugin, createOptionalPeerPlugin, resolveServerBundleExternals };
|
package/dist/cli/index.js
CHANGED
|
@@ -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-3z3gtgm0.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-3z3gtgm0.js");
|
|
84
84
|
await start(serverEntry, outdir, configPath, { prepareOnly: true });
|
|
85
85
|
} else if (command === "build") {
|
|
86
86
|
sendTelemetryEvent("cli:command", { command });
|
|
@@ -201,13 +201,13 @@ if (command === "dev") {
|
|
|
201
201
|
const configPath = parseNamedArg("--config");
|
|
202
202
|
const positionalArgs = stripNamedArgs("--outdir", "--outfile", "--config");
|
|
203
203
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
204
|
-
const { compile } = await import("./compile-
|
|
204
|
+
const { compile } = await import("./compile-nf4qsqyd.js");
|
|
205
205
|
await compile(serverEntry, outdir, outfile, configPath);
|
|
206
206
|
} else if (command === "mobile") {
|
|
207
207
|
sendTelemetryEvent("cli:command", {
|
|
208
208
|
command: `mobile:${workspaceCommand ?? "unknown"}`
|
|
209
209
|
});
|
|
210
|
-
const { runMobile } = await import("./mobile-
|
|
210
|
+
const { runMobile } = await import("./mobile-m0cdh8cf.js");
|
|
211
211
|
try {
|
|
212
212
|
await runMobile(args);
|
|
213
213
|
} catch (error) {
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
resolveAbsoluteMobileRoute,
|
|
59
59
|
ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION,
|
|
60
60
|
ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-hfvxsgf4.js";
|
|
62
62
|
import {
|
|
63
63
|
buildAbsoluteExpoAndroidWslBundle2
|
|
64
64
|
} from "./index-jcjwsdqt.js";
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
import"./index-e6ysp900.js";
|
|
76
76
|
import {
|
|
77
77
|
start2
|
|
78
|
-
} from "./index-
|
|
78
|
+
} from "./index-c3tqbpkq.js";
|
|
79
79
|
import {
|
|
80
80
|
captureAbsoluteRemoteMacCommand2,
|
|
81
81
|
getAbsoluteRemoteMacProfile2,
|
|
@@ -3810,7 +3810,7 @@ var require_source_map_support = __commonJS(function(exports, module) {
|
|
|
3810
3810
|
|
|
3811
3811
|
// node_modules/typescript/lib/typescript.js
|
|
3812
3812
|
var require_typescript = __commonJS(function(exports, module) {
|
|
3813
|
-
var __dirname = "/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-
|
|
3813
|
+
var __dirname = "/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-peer/node_modules/typescript/lib", __filename = "/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-peer/node_modules/typescript/lib/typescript.js";
|
|
3814
3814
|
/*! *****************************************************************************
|
|
3815
3815
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3816
3816
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
package/dist/index.js
CHANGED
|
@@ -24667,7 +24667,7 @@ var init_compileAngular = __esm(() => {
|
|
|
24667
24667
|
|
|
24668
24668
|
// node_modules/content-tag/pkg/node/content_tag.cjs
|
|
24669
24669
|
var require_content_tag = __commonJS(function(exports, module) {
|
|
24670
|
-
var __dirname = "/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-
|
|
24670
|
+
var __dirname = "/tmp/claude-1000/-home-alexkahn-abs-PAAS/9b0057a2-5737-48f9-9dbe-dcb83ea02b04/scratchpad/ajs-peer/node_modules/content-tag/pkg/node";
|
|
24671
24671
|
var imports = {};
|
|
24672
24672
|
imports["__wbindgen_placeholder__"] = exports;
|
|
24673
24673
|
var wasm;
|
|
@@ -43800,5 +43800,5 @@ export {
|
|
|
43800
43800
|
wrapPageHandlerWithStreamingSlots
|
|
43801
43801
|
};
|
|
43802
43802
|
|
|
43803
|
-
//# debugId=
|
|
43803
|
+
//# debugId=F516D46F323DBF7064756E2164756E21
|
|
43804
43804
|
//# sourceMappingURL=index.js.map
|