@absolutejs/absolute 0.20.0-beta.124 → 0.20.0-beta.126
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 +14 -0
- package/changelog.json +22 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +16 -6
- package/dist/build.js.map +3 -3
- package/dist/cli/{compile-hywymh6y.js → compile-smcnjyhb.js} +1 -1
- package/dist/cli/{index-q3sq287p.js → index-fx42yxhy.js} +1 -1
- package/dist/cli/{index-k8r00xh9.js → index-q4gpm386.js} +22 -2
- package/dist/cli/index.js +4 -4
- package/dist/cli/{mobile-6kdsrhxy.js → mobile-50c5tahh.js} +2 -2
- package/dist/cli/{start-q08avhxg.js → start-pdacfgcc.js} +2 -2
- package/dist/index.js +16 -6
- package/dist/index.js.map +3 -3
- package/dist/mobile/remoteMacAgentEntry.js +1 -1
- package/dist/src/cli/serverBundleExternals.d.ts +2 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createIslandRegistryDefinitionPlugin,
|
|
16
16
|
finalizeAbsoluteMobileCompatibilityBuild,
|
|
17
17
|
resolveServerBundleExternals
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-q4gpm386.js";
|
|
19
19
|
import {
|
|
20
20
|
loadIslandRegistryBuildInfo
|
|
21
21
|
} from "./index-bzs19w3r.js";
|
|
@@ -1999,6 +1999,8 @@ var createElysiaOpenApiTypeboxPlugin = () => ({
|
|
|
1999
1999
|
});
|
|
2000
2000
|
|
|
2001
2001
|
// src/cli/serverBundleExternals.ts
|
|
2002
|
+
import { existsSync as existsSync3, readFileSync as readFileSync2 } from "fs";
|
|
2003
|
+
import { join as join5 } from "path";
|
|
2002
2004
|
var FRAMEWORK_EXTERNALS = [
|
|
2003
2005
|
"react",
|
|
2004
2006
|
"react/jsx-runtime",
|
|
@@ -2027,7 +2029,24 @@ var collectUserServerExternals = (buildConfig) => {
|
|
|
2027
2029
|
const fromDefault = Array.isArray(defaultBuild?.external) ? defaultBuild.external : [];
|
|
2028
2030
|
return [...override, ...fromDefault];
|
|
2029
2031
|
};
|
|
2030
|
-
var
|
|
2032
|
+
var readManifest = (file) => {
|
|
2033
|
+
if (!existsSync3(file))
|
|
2034
|
+
return;
|
|
2035
|
+
try {
|
|
2036
|
+
const manifest = JSON.parse(readFileSync2(file, "utf-8"));
|
|
2037
|
+
return manifest;
|
|
2038
|
+
} catch {
|
|
2039
|
+
return;
|
|
2040
|
+
}
|
|
2041
|
+
};
|
|
2042
|
+
var isInstalled = (specifier, projectRoot) => existsSync3(join5(projectRoot, "node_modules", specifier, "package.json"));
|
|
2043
|
+
var collectMissingOptionalPeers = (projectRoot) => {
|
|
2044
|
+
const app = readManifest(join5(projectRoot, "package.json"));
|
|
2045
|
+
const optionalPeers = 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));
|
|
2046
|
+
const missing = new Set(optionalPeers.filter((peer) => !isInstalled(peer, projectRoot)));
|
|
2047
|
+
return [...missing].flatMap((peer) => [peer, `${peer}/*`]);
|
|
2048
|
+
};
|
|
2049
|
+
var resolveServerBundleExternals = (buildConfig, projectRoot = process.cwd()) => [
|
|
2031
2050
|
...FRAMEWORK_EXTERNALS.filter((specifier) => {
|
|
2032
2051
|
if (buildConfig.reactDirectory && (specifier === "react" || specifier.startsWith("react/") || specifier.startsWith("react-dom")))
|
|
2033
2052
|
return false;
|
|
@@ -2037,7 +2056,8 @@ var resolveServerBundleExternals = (buildConfig) => [
|
|
|
2037
2056
|
return false;
|
|
2038
2057
|
return true;
|
|
2039
2058
|
}),
|
|
2040
|
-
...collectUserServerExternals(buildConfig)
|
|
2059
|
+
...collectUserServerExternals(buildConfig),
|
|
2060
|
+
...collectMissingOptionalPeers(projectRoot)
|
|
2041
2061
|
];
|
|
2042
2062
|
|
|
2043
2063
|
export { createIslandRegistryDefinitionPlugin, createBunStringRawUnicodePlugin, resolveAbsoluteMobileRoute, ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION, ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT, finalizeAbsoluteMobileCompatibilityBuild, createAbsoluteMobileRouteMetadataPlugin, createElysiaOpenApiTypeboxPlugin, resolveServerBundleExternals };
|
package/dist/cli/index.js
CHANGED
|
@@ -74,7 +74,7 @@ if (command === "dev") {
|
|
|
74
74
|
const configPath = parseNamedArg("--config");
|
|
75
75
|
const positionalArgs = stripNamedArgs("--outdir", "--config").filter((arg) => arg !== "--prebuilt");
|
|
76
76
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
77
|
-
const { start } = await import("./start-
|
|
77
|
+
const { start } = await import("./start-pdacfgcc.js");
|
|
78
78
|
await start(serverEntry, outdir, configPath, {
|
|
79
79
|
prebuilt: args.includes("--prebuilt")
|
|
80
80
|
});
|
|
@@ -84,7 +84,7 @@ if (command === "dev") {
|
|
|
84
84
|
const configPath = parseNamedArg("--config");
|
|
85
85
|
const positionalArgs = stripNamedArgs("--outdir", "--config");
|
|
86
86
|
const serverEntry = positionalArgs[0] ?? DEFAULT_SERVER_ENTRY;
|
|
87
|
-
const { start } = await import("./start-
|
|
87
|
+
const { start } = await import("./start-pdacfgcc.js");
|
|
88
88
|
await start(serverEntry, outdir, configPath, { prepareOnly: true });
|
|
89
89
|
} else if (command === "build") {
|
|
90
90
|
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-smcnjyhb.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-50c5tahh.js");
|
|
215
215
|
try {
|
|
216
216
|
await runMobile(args);
|
|
217
217
|
} catch (error) {
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./index-9r7n9dqp.js";
|
|
8
8
|
import {
|
|
9
9
|
start
|
|
10
|
-
} from "./index-
|
|
10
|
+
} from "./index-fx42yxhy.js";
|
|
11
11
|
import {
|
|
12
12
|
ABSOLUTE_MOBILE_CLIENT_MANIFEST_FORMAT,
|
|
13
13
|
ABSOLUTE_MOBILE_PAGE_PROTOCOL_VERSION,
|
|
14
14
|
resolveAbsoluteMobileRoute
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-q4gpm386.js";
|
|
16
16
|
import"./index-bzs19w3r.js";
|
|
17
17
|
import"./index-s2tazax7.js";
|
|
18
18
|
import {
|
package/dist/index.js
CHANGED
|
@@ -23455,10 +23455,14 @@ var resolveDevClientDir3 = () => {
|
|
|
23455
23455
|
return "template-only";
|
|
23456
23456
|
}
|
|
23457
23457
|
return "full";
|
|
23458
|
-
}, generateVueHmrId = (sourceFilePath, vueRootDir) => relative18(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), extractImports = (sourceCode) => {
|
|
23459
|
-
|
|
23460
|
-
|
|
23461
|
-
|
|
23458
|
+
}, generateVueHmrId = (sourceFilePath, vueRootDir) => relative18(vueRootDir, sourceFilePath).replace(/\\/g, "/").replace(/\.vue$/, ""), importScanner, IMPORT_PATTERNS, matchImports = (sourceCode) => IMPORT_PATTERNS.flatMap((pattern) => Array.from(sourceCode.matchAll(pattern), (match) => match[1])).filter((importPath) => importPath !== undefined), extractImports = (sourceCode) => {
|
|
23459
|
+
let found;
|
|
23460
|
+
try {
|
|
23461
|
+
found = importScanner.scanImports(sourceCode).map(({ path: path2 }) => path2);
|
|
23462
|
+
} catch {
|
|
23463
|
+
found = matchImports(sourceCode);
|
|
23464
|
+
}
|
|
23465
|
+
return Array.from(new Set(found));
|
|
23462
23466
|
}, resolveHelperTsPath = (sourceDir, helper) => {
|
|
23463
23467
|
if (helper.endsWith(".ts"))
|
|
23464
23468
|
return resolve34(sourceDir, helper);
|
|
@@ -24033,6 +24037,12 @@ var init_compileVue = __esm(() => {
|
|
|
24033
24037
|
persistentBuildCache = new Map;
|
|
24034
24038
|
vueSourceHashCache = new Map;
|
|
24035
24039
|
vueHmrMetadata = new Map;
|
|
24040
|
+
importScanner = new Bun.Transpiler({ loader: "ts" });
|
|
24041
|
+
IMPORT_PATTERNS = [
|
|
24042
|
+
/import\s+[\s\S]+?['"]([^'"]+)['"]/g,
|
|
24043
|
+
/\bimport\s*\(\s*['"]([^'"]+)['"]\s*\)/g,
|
|
24044
|
+
/\bexport\s+(?:type\s+)?(?:\*(?:\s+as\s+[\w$]+)?|\{[^}]*\})\s*from\s*['"]([^'"]+)['"]/g
|
|
24045
|
+
];
|
|
24036
24046
|
EXTERNAL_STYLE_DEPENDENCY = /@(?:import|use|forward)\b/;
|
|
24037
24047
|
fingerprintCache2 = new Map;
|
|
24038
24048
|
pendingWrites = new Set;
|
|
@@ -25889,7 +25899,7 @@ var init_compileAngular = __esm(() => {
|
|
|
25889
25899
|
|
|
25890
25900
|
// node_modules/content-tag/pkg/node/content_tag.cjs
|
|
25891
25901
|
var require_content_tag = __commonJS(function(exports, module) {
|
|
25892
|
-
var __dirname = "/home/alexkahn/abs/absolutejs/.claude/worktrees/
|
|
25902
|
+
var __dirname = "/home/alexkahn/abs/absolutejs/.claude/worktrees/optional-peers/node_modules/content-tag/pkg/node";
|
|
25893
25903
|
var imports = {};
|
|
25894
25904
|
imports["__wbindgen_placeholder__"] = exports;
|
|
25895
25905
|
var wasm;
|
|
@@ -45791,5 +45801,5 @@ export {
|
|
|
45791
45801
|
wrapPageHandlerWithStreamingSlots
|
|
45792
45802
|
};
|
|
45793
45803
|
|
|
45794
|
-
//# debugId=
|
|
45804
|
+
//# debugId=2B2220FD6E0738B064756E2164756E21
|
|
45795
45805
|
//# sourceMappingURL=index.js.map
|