@absolutejs/absolute 0.19.0-beta.943 → 0.19.0-beta.944
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/build.js +94 -2
- package/dist/build.js.map +5 -5
- package/dist/index.js +94 -2
- package/dist/index.js.map +5 -5
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13863,6 +13863,8 @@ var fail = (reason, detail, location) => ({
|
|
|
13863
13863
|
return false;
|
|
13864
13864
|
if (a.pageExportsSig !== b2.pageExportsSig)
|
|
13865
13865
|
return false;
|
|
13866
|
+
if (a.schemasSig !== b2.schemasSig)
|
|
13867
|
+
return false;
|
|
13866
13868
|
return true;
|
|
13867
13869
|
}, recordFingerprint = (id, fp) => {
|
|
13868
13870
|
fingerprintCache.set(id, fp);
|
|
@@ -14182,6 +14184,7 @@ var fail = (reason, detail, location) => ({
|
|
|
14182
14184
|
const inputsArrayExpr = getProperty(args, "inputs");
|
|
14183
14185
|
const outputsArrayExpr = getProperty(args, "outputs");
|
|
14184
14186
|
const hostExpr = getProperty(args, "host");
|
|
14187
|
+
const schemasExpr = getProperty(args, "schemas");
|
|
14185
14188
|
const styleUrls = [];
|
|
14186
14189
|
if (styleUrlsExpr && ts6.isArrayLiteralExpression(styleUrlsExpr)) {
|
|
14187
14190
|
for (const el of styleUrlsExpr.elements) {
|
|
@@ -14218,6 +14221,7 @@ var fail = (reason, detail, location) => ({
|
|
|
14218
14221
|
inputsArrayExpr: inputsArrayExpr && ts6.isArrayLiteralExpression(inputsArrayExpr) ? inputsArrayExpr : null,
|
|
14219
14222
|
outputsArrayExpr: outputsArrayExpr && ts6.isArrayLiteralExpression(outputsArrayExpr) ? outputsArrayExpr : null,
|
|
14220
14223
|
hostExpr: hostExpr && ts6.isObjectLiteralExpression(hostExpr) ? hostExpr : null,
|
|
14224
|
+
schemasExpr: schemasExpr && ts6.isArrayLiteralExpression(schemasExpr) ? schemasExpr : null,
|
|
14221
14225
|
preserveWhitespaces: getBooleanProperty(args, "preserveWhitespaces") ?? projectDefaults.preserveWhitespaces ?? false,
|
|
14222
14226
|
selector: getStringProperty(args, "selector"),
|
|
14223
14227
|
standalone: getBooleanProperty(args, "standalone") ?? true,
|
|
@@ -15234,6 +15238,7 @@ var fail = (reason, detail, location) => ({
|
|
|
15234
15238
|
const decoratorInputsArraySig = decoratorMeta.inputsArrayExpr ? djb2Hash(decoratorMeta.inputsArrayExpr.getText()) : "";
|
|
15235
15239
|
const decoratorOutputsArraySig = decoratorMeta.outputsArrayExpr ? djb2Hash(decoratorMeta.outputsArrayExpr.getText()) : "";
|
|
15236
15240
|
const hostBindingsSig = decoratorMeta.hostExpr ? djb2Hash(decoratorMeta.hostExpr.getText()) : "";
|
|
15241
|
+
const schemasSig = decoratorMeta.schemasExpr ? djb2Hash(decoratorMeta.schemasExpr.getText()) : "";
|
|
15237
15242
|
const PAGE_EXPORT_NAMES = new Set(["providers", "routes"]);
|
|
15238
15243
|
const pageExportEntries = [];
|
|
15239
15244
|
for (const stmt of sourceFile.statements) {
|
|
@@ -15275,6 +15280,7 @@ var fail = (reason, detail, location) => ({
|
|
|
15275
15280
|
propertyFieldNames,
|
|
15276
15281
|
providerImportSig,
|
|
15277
15282
|
providersArraySig,
|
|
15283
|
+
schemasSig,
|
|
15278
15284
|
selector: decoratorMeta.selector,
|
|
15279
15285
|
standalone: decoratorMeta.standalone,
|
|
15280
15286
|
topLevelImports,
|
|
@@ -18853,6 +18859,15 @@ var init_buildEmberVendor = __esm(() => {
|
|
|
18853
18859
|
});
|
|
18854
18860
|
|
|
18855
18861
|
// src/dev/dependencyGraph.ts
|
|
18862
|
+
var exports_dependencyGraph = {};
|
|
18863
|
+
__export(exports_dependencyGraph, {
|
|
18864
|
+
removeFileFromGraph: () => removeFileFromGraph,
|
|
18865
|
+
getAffectedFiles: () => getAffectedFiles,
|
|
18866
|
+
extractDependencies: () => extractDependencies,
|
|
18867
|
+
emptyDependencyGraph: () => emptyDependencyGraph,
|
|
18868
|
+
buildInitialDependencyGraph: () => buildInitialDependencyGraph,
|
|
18869
|
+
addFileToGraph: () => addFileToGraph
|
|
18870
|
+
});
|
|
18856
18871
|
import { existsSync as existsSync23, readFileSync as readFileSync16 } from "fs";
|
|
18857
18872
|
var {Glob: Glob8 } = globalThis.Bun;
|
|
18858
18873
|
import { resolve as resolve27 } from "path";
|
|
@@ -19350,6 +19365,22 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
19350
19365
|
if (existsSync24(abs) && !roots.includes(abs))
|
|
19351
19366
|
roots.push(abs);
|
|
19352
19367
|
}
|
|
19368
|
+
try {
|
|
19369
|
+
const { readdirSync: readdirSync2 } = __require("fs");
|
|
19370
|
+
const entries = readdirSync2(cwd2, { withFileTypes: true });
|
|
19371
|
+
for (const entry of entries) {
|
|
19372
|
+
if (!entry.isDirectory())
|
|
19373
|
+
continue;
|
|
19374
|
+
if (entry.name.startsWith("."))
|
|
19375
|
+
continue;
|
|
19376
|
+
const abs = normalizePath(resolve29(cwd2, entry.name));
|
|
19377
|
+
if (roots.includes(abs))
|
|
19378
|
+
continue;
|
|
19379
|
+
if (shouldIgnorePath(abs, resolved))
|
|
19380
|
+
continue;
|
|
19381
|
+
roots.push(abs);
|
|
19382
|
+
}
|
|
19383
|
+
} catch {}
|
|
19353
19384
|
const extraDirs = config.dev?.watchDirs ?? [];
|
|
19354
19385
|
for (const dir of extraDirs)
|
|
19355
19386
|
push(dir);
|
|
@@ -21556,7 +21587,48 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21556
21587
|
invalidate(resolve39(filePath));
|
|
21557
21588
|
const relPath = relative16(process.cwd(), filePath);
|
|
21558
21589
|
logHmrUpdate(relPath);
|
|
21559
|
-
|
|
21590
|
+
const angularDir = state.resolvedPaths.angularDir;
|
|
21591
|
+
let hasAngularDependent = false;
|
|
21592
|
+
if (angularDir && state.dependencyGraph) {
|
|
21593
|
+
try {
|
|
21594
|
+
const { addFileToGraph: addFileToGraph2 } = await Promise.resolve().then(() => (init_dependencyGraph(), exports_dependencyGraph));
|
|
21595
|
+
addFileToGraph2(state.dependencyGraph, resolve39(filePath));
|
|
21596
|
+
const affected = getAffectedFiles(state.dependencyGraph, resolve39(filePath));
|
|
21597
|
+
for (const dependent of affected) {
|
|
21598
|
+
if (dependent === resolve39(filePath))
|
|
21599
|
+
continue;
|
|
21600
|
+
const dependentFramework = detectFramework(dependent, state.resolvedPaths);
|
|
21601
|
+
if (dependentFramework !== "angular")
|
|
21602
|
+
continue;
|
|
21603
|
+
hasAngularDependent = true;
|
|
21604
|
+
if (!state.fileChangeQueue.has("angular")) {
|
|
21605
|
+
state.fileChangeQueue.set("angular", []);
|
|
21606
|
+
}
|
|
21607
|
+
const angularQueue = state.fileChangeQueue.get("angular");
|
|
21608
|
+
if (angularQueue && !angularQueue.includes(dependent)) {
|
|
21609
|
+
angularQueue.push(dependent);
|
|
21610
|
+
}
|
|
21611
|
+
}
|
|
21612
|
+
} catch {}
|
|
21613
|
+
}
|
|
21614
|
+
if (!hasAngularDependent) {
|
|
21615
|
+
return;
|
|
21616
|
+
}
|
|
21617
|
+
try {
|
|
21618
|
+
const { getFrameworkGeneratedDir: getFrameworkGeneratedDir2 } = await Promise.resolve().then(() => (init_generatedDir(), exports_generatedDir));
|
|
21619
|
+
const { invalidateModule: invalidateModuleServer } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
21620
|
+
const generatedAngularRoot = getFrameworkGeneratedDir2("angular");
|
|
21621
|
+
const sourceAbs = resolve39(filePath).replace(/\\/g, "/");
|
|
21622
|
+
const generatedTwin = `${generatedAngularRoot.replace(/\\/g, "/")}${sourceAbs.replace(/\.ts$/, ".js")}`;
|
|
21623
|
+
invalidateModuleServer(generatedTwin);
|
|
21624
|
+
} catch {}
|
|
21625
|
+
if (!state.fileChangeQueue.has("unknown")) {
|
|
21626
|
+
state.fileChangeQueue.set("unknown", []);
|
|
21627
|
+
}
|
|
21628
|
+
const unknownQueue = state.fileChangeQueue.get("unknown");
|
|
21629
|
+
if (unknownQueue && !unknownQueue.includes(filePath)) {
|
|
21630
|
+
unknownQueue.push(filePath);
|
|
21631
|
+
}
|
|
21560
21632
|
}
|
|
21561
21633
|
if (!state.fileChangeQueue.has(framework)) {
|
|
21562
21634
|
state.fileChangeQueue.set(framework, []);
|
|
@@ -21740,6 +21812,26 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21740
21812
|
break;
|
|
21741
21813
|
}
|
|
21742
21814
|
}
|
|
21815
|
+
for (const editedFile of userEdited) {
|
|
21816
|
+
if (!editedFile.endsWith(".ts"))
|
|
21817
|
+
continue;
|
|
21818
|
+
if (editedFile.endsWith(".d.ts"))
|
|
21819
|
+
continue;
|
|
21820
|
+
const detected = detectFramework(editedFile, state.resolvedPaths);
|
|
21821
|
+
if (detected !== "unknown")
|
|
21822
|
+
continue;
|
|
21823
|
+
try {
|
|
21824
|
+
const affected = getAffectedFiles(state.dependencyGraph, resolve39(editedFile));
|
|
21825
|
+
const hasAngularConsumer = affected.some((dep) => dep !== resolve39(editedFile) && detectFramework(dep, state.resolvedPaths) === "angular");
|
|
21826
|
+
if (hasAngularConsumer) {
|
|
21827
|
+
return {
|
|
21828
|
+
kind: "rebootstrap",
|
|
21829
|
+
reason: `non-angular helper edited (${editedFile}) \u2014 angular dependents need fresh bundle for __abs_deps to point at new exports`,
|
|
21830
|
+
tier: 1
|
|
21831
|
+
};
|
|
21832
|
+
}
|
|
21833
|
+
} catch {}
|
|
21834
|
+
}
|
|
21743
21835
|
const queue = [];
|
|
21744
21836
|
const queueIds = new Set;
|
|
21745
21837
|
let anyFingerprintChanged = false;
|
|
@@ -32451,5 +32543,5 @@ export {
|
|
|
32451
32543
|
ANGULAR_INIT_TIMEOUT_MS
|
|
32452
32544
|
};
|
|
32453
32545
|
|
|
32454
|
-
//# debugId=
|
|
32546
|
+
//# debugId=2AE6E8B266B7022864756E2164756E21
|
|
32455
32547
|
//# sourceMappingURL=index.js.map
|