@absolutejs/absolute 0.19.0-beta.1107 → 0.19.0-beta.1108
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/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 +31 -0
- package/dist/index.js +86 -1
- package/dist/index.js.map +4 -4
- 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/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 +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -170644,6 +170644,9 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
|
|
|
170644
170644
|
const endOfInterp = (start) => {
|
|
170645
170645
|
let j = start;
|
|
170646
170646
|
let depth = 1;
|
|
170647
|
+
let ipChar = "";
|
|
170648
|
+
let ipWord = "";
|
|
170649
|
+
let ipSpace = false;
|
|
170647
170650
|
while (j < n && depth > 0) {
|
|
170648
170651
|
const c = src[j];
|
|
170649
170652
|
if (c === "\\") {
|
|
@@ -170652,10 +170655,16 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
|
|
|
170652
170655
|
}
|
|
170653
170656
|
if (c === "`") {
|
|
170654
170657
|
j = endOfTemplate(j);
|
|
170658
|
+
ipChar = ")";
|
|
170659
|
+
ipWord = "";
|
|
170660
|
+
ipSpace = false;
|
|
170655
170661
|
continue;
|
|
170656
170662
|
}
|
|
170657
170663
|
if (c === '"' || c === "'") {
|
|
170658
170664
|
j = endOfString(j);
|
|
170665
|
+
ipChar = '"';
|
|
170666
|
+
ipWord = "";
|
|
170667
|
+
ipSpace = false;
|
|
170659
170668
|
continue;
|
|
170660
170669
|
}
|
|
170661
170670
|
if (c === "/" && src[j + 1] === "/") {
|
|
@@ -170669,11 +170678,33 @@ var SENTINEL, RISKY_STRING_CONTENT, isIdentChar = (c) => /[A-Za-z0-9_$]/.test(c)
|
|
|
170669
170678
|
j = e < 0 ? n : e + 2;
|
|
170670
170679
|
continue;
|
|
170671
170680
|
}
|
|
170681
|
+
if (c === "/" && (ipChar === "" || REGEX_OK_AFTER_CHAR.has(ipChar) || REGEX_OK_AFTER_WORD.has(ipWord))) {
|
|
170682
|
+
const e = endOfRegex(j);
|
|
170683
|
+
if (e > 0) {
|
|
170684
|
+
j = e;
|
|
170685
|
+
ipChar = ")";
|
|
170686
|
+
ipWord = "";
|
|
170687
|
+
ipSpace = false;
|
|
170688
|
+
continue;
|
|
170689
|
+
}
|
|
170690
|
+
}
|
|
170672
170691
|
if (c === "{")
|
|
170673
170692
|
depth++;
|
|
170674
170693
|
else if (c === "}")
|
|
170675
170694
|
depth--;
|
|
170676
170695
|
j++;
|
|
170696
|
+
if (c === " " || c === "\t" || c === "\r" || c === `
|
|
170697
|
+
`) {
|
|
170698
|
+
ipSpace = true;
|
|
170699
|
+
continue;
|
|
170700
|
+
}
|
|
170701
|
+
if (isIdentChar(c)) {
|
|
170702
|
+
ipWord = isIdentChar(ipChar) && !ipSpace ? ipWord + c : c;
|
|
170703
|
+
} else {
|
|
170704
|
+
ipWord = "";
|
|
170705
|
+
}
|
|
170706
|
+
ipChar = c;
|
|
170707
|
+
ipSpace = false;
|
|
170677
170708
|
}
|
|
170678
170709
|
return j;
|
|
170679
170710
|
};
|
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",
|
|
@@ -48343,5 +48428,5 @@ export {
|
|
|
48343
48428
|
ANGULAR_INIT_TIMEOUT_MS
|
|
48344
48429
|
};
|
|
48345
48430
|
|
|
48346
|
-
//# debugId=
|
|
48431
|
+
//# debugId=2FE1BD8E5DBBE66764756E2164756E21
|
|
48347
48432
|
//# sourceMappingURL=index.js.map
|