@absolutejs/absolute 0.19.0-beta.1107 → 0.19.0-beta.1109
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/README.md +27 -1
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +32 -1
- package/dist/angular/index.js.map +3 -3
- package/dist/angular/server.js +32 -1
- package/dist/angular/server.js.map +3 -3
- package/dist/build.js +86 -1
- package/dist/build.js.map +4 -4
- package/dist/cli/index.js +401 -142
- package/dist/index.js +88 -3
- package/dist/index.js.map +16 -16
- package/dist/islands/index.js +32 -1
- package/dist/islands/index.js.map +3 -3
- package/dist/react/index.js +32 -1
- package/dist/react/index.js.map +3 -3
- package/dist/src/cli/typeGraphCoherence.d.ts +32 -0
- package/dist/src/core/prepare.d.ts +3 -3
- package/dist/src/plugins/hmr.d.ts +3 -3
- package/dist/svelte/index.js +32 -1
- package/dist/svelte/index.js.map +3 -3
- package/dist/vue/index.js +32 -1
- package/dist/vue/index.js.map +3 -3
- package/package.json +7 -5
package/dist/index.js
CHANGED
|
@@ -7861,6 +7861,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
|
|
|
7861
7861
|
const endOfInterp = (start) => {
|
|
7862
7862
|
let j2 = start;
|
|
7863
7863
|
let depth = 1;
|
|
7864
|
+
let ipChar = "";
|
|
7865
|
+
let ipWord = "";
|
|
7866
|
+
let ipSpace = false;
|
|
7864
7867
|
while (j2 < n && depth > 0) {
|
|
7865
7868
|
const c = src[j2];
|
|
7866
7869
|
if (c === "\\") {
|
|
@@ -7869,10 +7872,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
|
|
|
7869
7872
|
}
|
|
7870
7873
|
if (c === "`") {
|
|
7871
7874
|
j2 = endOfTemplate(j2);
|
|
7875
|
+
ipChar = ")";
|
|
7876
|
+
ipWord = "";
|
|
7877
|
+
ipSpace = false;
|
|
7872
7878
|
continue;
|
|
7873
7879
|
}
|
|
7874
7880
|
if (c === '"' || c === "'") {
|
|
7875
7881
|
j2 = endOfString(j2);
|
|
7882
|
+
ipChar = '"';
|
|
7883
|
+
ipWord = "";
|
|
7884
|
+
ipSpace = false;
|
|
7876
7885
|
continue;
|
|
7877
7886
|
}
|
|
7878
7887
|
if (c === "/" && src[j2 + 1] === "/") {
|
|
@@ -7886,11 +7895,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
|
|
|
7886
7895
|
j2 = e < 0 ? n : e + 2;
|
|
7887
7896
|
continue;
|
|
7888
7897
|
}
|
|
7898
|
+
if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
|
|
7899
|
+
const e = endOfRegex(j2);
|
|
7900
|
+
if (e > 0) {
|
|
7901
|
+
j2 = e;
|
|
7902
|
+
ipChar = ")";
|
|
7903
|
+
ipWord = "";
|
|
7904
|
+
ipSpace = false;
|
|
7905
|
+
continue;
|
|
7906
|
+
}
|
|
7907
|
+
}
|
|
7889
7908
|
if (c === "{")
|
|
7890
7909
|
depth++;
|
|
7891
7910
|
else if (c === "}")
|
|
7892
7911
|
depth--;
|
|
7893
7912
|
j2++;
|
|
7913
|
+
if (c === " " || c === "\t" || c === "\r" || c === `
|
|
7914
|
+
`) {
|
|
7915
|
+
ipSpace = true;
|
|
7916
|
+
continue;
|
|
7917
|
+
}
|
|
7918
|
+
if (isIdentChar(c)) {
|
|
7919
|
+
ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
|
|
7920
|
+
} else {
|
|
7921
|
+
ipWord = "";
|
|
7922
|
+
}
|
|
7923
|
+
ipChar = c;
|
|
7924
|
+
ipSpace = false;
|
|
7894
7925
|
}
|
|
7895
7926
|
return j2;
|
|
7896
7927
|
};
|
|
@@ -31279,6 +31310,36 @@ var isDev2, isBuildTraceEnabled = () => {
|
|
|
31279
31310
|
`),
|
|
31280
31311
|
specifier
|
|
31281
31312
|
};
|
|
31313
|
+
}, REACT_VENDOR_SPECIFIERS, findBareReactImports = (path, importRegex) => {
|
|
31314
|
+
let content;
|
|
31315
|
+
try {
|
|
31316
|
+
content = readFileSync25(path, "utf-8");
|
|
31317
|
+
} catch {
|
|
31318
|
+
return [];
|
|
31319
|
+
}
|
|
31320
|
+
if (!content.includes("react"))
|
|
31321
|
+
return [];
|
|
31322
|
+
const { masked } = maskLiterals(content);
|
|
31323
|
+
const specs = [...masked.matchAll(importRegex)].map((match) => match[1]).filter((spec) => Boolean(spec));
|
|
31324
|
+
return [...new Set(specs)];
|
|
31325
|
+
}, verifyBrowserImportsVendored = (outputPaths) => {
|
|
31326
|
+
const alt = REACT_VENDOR_SPECIFIERS.map((spec) => spec.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|");
|
|
31327
|
+
const importRegex = new RegExp(`(?:from|import|require)\\s*\\(?\\s*["'](${alt})["']`, "g");
|
|
31328
|
+
const seenPaths = new Set;
|
|
31329
|
+
const offenders = [];
|
|
31330
|
+
for (const path of outputPaths) {
|
|
31331
|
+
if (!path.endsWith(".js") || seenPaths.has(path))
|
|
31332
|
+
continue;
|
|
31333
|
+
seenPaths.add(path);
|
|
31334
|
+
const specs = findBareReactImports(path, importRegex);
|
|
31335
|
+
if (specs.length > 0)
|
|
31336
|
+
offenders.push(`${path} \u2192 ${specs.join(", ")}`);
|
|
31337
|
+
}
|
|
31338
|
+
if (offenders.length === 0)
|
|
31339
|
+
return;
|
|
31340
|
+
throw new Error(`Build emitted browser chunk(s) with un-vendored bare React ` + `specifiers \u2014 these fail to resolve in the browser and break ` + `hydration:
|
|
31341
|
+
${offenders.map((o3) => ` \u2022 ${o3}`).join(`
|
|
31342
|
+
`)}`);
|
|
31282
31343
|
}, buildPassError = (logs, pass, label, frameworkNames, isIncremental) => {
|
|
31283
31344
|
const { column, file: file5, line, message, specifier } = summarizeBuildFailure(logs, label);
|
|
31284
31345
|
const err = new Error(message);
|
|
@@ -32610,6 +32671,21 @@ ${content.slice(firstUseIdx)}`;
|
|
|
32610
32671
|
const { rewriteBuildOutputs: rewriteBuildOutputs2 } = await Promise.resolve().then(() => (init_rewriteImportsPlugin(), exports_rewriteImportsPlugin));
|
|
32611
32672
|
await tracePhase("postprocess/island-vendor-imports", () => rewriteBuildOutputs2(islandClientOutputs, allIslandVendorPaths));
|
|
32612
32673
|
}
|
|
32674
|
+
if (!hmr) {
|
|
32675
|
+
const reactVendorDir = join40(buildPath, "react", "vendor");
|
|
32676
|
+
const vendorChunkPaths = existsSync30(reactVendorDir) ? [
|
|
32677
|
+
...new Glob8("**/*.js").scanSync({
|
|
32678
|
+
absolute: true,
|
|
32679
|
+
cwd: reactVendorDir
|
|
32680
|
+
})
|
|
32681
|
+
] : [];
|
|
32682
|
+
verifyBrowserImportsVendored([
|
|
32683
|
+
...reactClientOutputPaths,
|
|
32684
|
+
...nonReactClientOutputPaths,
|
|
32685
|
+
...islandClientOutputPaths,
|
|
32686
|
+
...vendorChunkPaths
|
|
32687
|
+
]);
|
|
32688
|
+
}
|
|
32613
32689
|
if (serverOutputs.length > 0 && angularServerVendorPaths2 && Object.keys(angularServerVendorPaths2).length > 0) {
|
|
32614
32690
|
const { rewriteBuildOutputsWith: rewriteBuildOutputsWith2 } = await Promise.resolve().then(() => (init_rewriteImportsPlugin(), exports_rewriteImportsPlugin));
|
|
32615
32691
|
await tracePhase("postprocess/server-angular-vendor-imports", () => rewriteBuildOutputsWith2(serverOutputs, (artifact) => {
|
|
@@ -32936,6 +33012,7 @@ var init_build = __esm(() => {
|
|
|
32936
33012
|
init_updateAssetPaths();
|
|
32937
33013
|
init_buildHMRClient();
|
|
32938
33014
|
init_rewriteReactImports();
|
|
33015
|
+
init_maskLiterals();
|
|
32939
33016
|
init_telemetryEvent();
|
|
32940
33017
|
init_angularLinkerPlugin();
|
|
32941
33018
|
init_externalAssetPlugin();
|
|
@@ -32950,6 +33027,14 @@ var init_build = __esm(() => {
|
|
|
32950
33027
|
init_validateSafePath();
|
|
32951
33028
|
init_spaRouteManifest();
|
|
32952
33029
|
isDev2 = env3.NODE_ENV === "development";
|
|
33030
|
+
REACT_VENDOR_SPECIFIERS = [
|
|
33031
|
+
"react-dom/client",
|
|
33032
|
+
"react-refresh/runtime",
|
|
33033
|
+
"react/jsx-dev-runtime",
|
|
33034
|
+
"react/jsx-runtime",
|
|
33035
|
+
"react-dom",
|
|
33036
|
+
"react"
|
|
33037
|
+
];
|
|
32953
33038
|
SKIP_DIRS5 = new Set([
|
|
32954
33039
|
"build",
|
|
32955
33040
|
"node_modules",
|
|
@@ -43238,12 +43323,12 @@ function Iterator3(items, options) {
|
|
|
43238
43323
|
function RequiredArray(properties) {
|
|
43239
43324
|
return globalThis.Object.keys(properties).filter((key) => !IsOptional4(properties[key]));
|
|
43240
43325
|
}
|
|
43241
|
-
function
|
|
43326
|
+
function _Object_(properties, options) {
|
|
43242
43327
|
const required2 = RequiredArray(properties);
|
|
43243
43328
|
const schema = required2.length > 0 ? { [Kind2]: "Object", type: "object", required: required2, properties } : { [Kind2]: "Object", type: "object", properties };
|
|
43244
43329
|
return CreateType2(schema, options);
|
|
43245
43330
|
}
|
|
43246
|
-
var Object3 =
|
|
43331
|
+
var Object3 = _Object_;
|
|
43247
43332
|
|
|
43248
43333
|
// node_modules/@sinclair/typebox/build/esm/type/promise/promise.mjs
|
|
43249
43334
|
function Promise4(item, options) {
|
|
@@ -48343,5 +48428,5 @@ export {
|
|
|
48343
48428
|
ANGULAR_INIT_TIMEOUT_MS
|
|
48344
48429
|
};
|
|
48345
48430
|
|
|
48346
|
-
//# debugId=
|
|
48431
|
+
//# debugId=44A1C7CC46571ACA64756E2164756E21
|
|
48347
48432
|
//# sourceMappingURL=index.js.map
|