@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-6iEoyX/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-6iEoyX/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-6iEoyX/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -13671,6 +13671,8 @@ var fail = (reason, detail, location) => ({
|
|
|
13671
13671
|
return false;
|
|
13672
13672
|
if (a.pageExportsSig !== b2.pageExportsSig)
|
|
13673
13673
|
return false;
|
|
13674
|
+
if (a.schemasSig !== b2.schemasSig)
|
|
13675
|
+
return false;
|
|
13674
13676
|
return true;
|
|
13675
13677
|
}, recordFingerprint = (id, fp) => {
|
|
13676
13678
|
fingerprintCache.set(id, fp);
|
|
@@ -13990,6 +13992,7 @@ var fail = (reason, detail, location) => ({
|
|
|
13990
13992
|
const inputsArrayExpr = getProperty(args, "inputs");
|
|
13991
13993
|
const outputsArrayExpr = getProperty(args, "outputs");
|
|
13992
13994
|
const hostExpr = getProperty(args, "host");
|
|
13995
|
+
const schemasExpr = getProperty(args, "schemas");
|
|
13993
13996
|
const styleUrls = [];
|
|
13994
13997
|
if (styleUrlsExpr && ts6.isArrayLiteralExpression(styleUrlsExpr)) {
|
|
13995
13998
|
for (const el of styleUrlsExpr.elements) {
|
|
@@ -14026,6 +14029,7 @@ var fail = (reason, detail, location) => ({
|
|
|
14026
14029
|
inputsArrayExpr: inputsArrayExpr && ts6.isArrayLiteralExpression(inputsArrayExpr) ? inputsArrayExpr : null,
|
|
14027
14030
|
outputsArrayExpr: outputsArrayExpr && ts6.isArrayLiteralExpression(outputsArrayExpr) ? outputsArrayExpr : null,
|
|
14028
14031
|
hostExpr: hostExpr && ts6.isObjectLiteralExpression(hostExpr) ? hostExpr : null,
|
|
14032
|
+
schemasExpr: schemasExpr && ts6.isArrayLiteralExpression(schemasExpr) ? schemasExpr : null,
|
|
14029
14033
|
preserveWhitespaces: getBooleanProperty(args, "preserveWhitespaces") ?? projectDefaults.preserveWhitespaces ?? false,
|
|
14030
14034
|
selector: getStringProperty(args, "selector"),
|
|
14031
14035
|
standalone: getBooleanProperty(args, "standalone") ?? true,
|
|
@@ -15042,6 +15046,7 @@ var fail = (reason, detail, location) => ({
|
|
|
15042
15046
|
const decoratorInputsArraySig = decoratorMeta.inputsArrayExpr ? djb2Hash(decoratorMeta.inputsArrayExpr.getText()) : "";
|
|
15043
15047
|
const decoratorOutputsArraySig = decoratorMeta.outputsArrayExpr ? djb2Hash(decoratorMeta.outputsArrayExpr.getText()) : "";
|
|
15044
15048
|
const hostBindingsSig = decoratorMeta.hostExpr ? djb2Hash(decoratorMeta.hostExpr.getText()) : "";
|
|
15049
|
+
const schemasSig = decoratorMeta.schemasExpr ? djb2Hash(decoratorMeta.schemasExpr.getText()) : "";
|
|
15045
15050
|
const PAGE_EXPORT_NAMES = new Set(["providers", "routes"]);
|
|
15046
15051
|
const pageExportEntries = [];
|
|
15047
15052
|
for (const stmt of sourceFile.statements) {
|
|
@@ -15083,6 +15088,7 @@ var fail = (reason, detail, location) => ({
|
|
|
15083
15088
|
propertyFieldNames,
|
|
15084
15089
|
providerImportSig,
|
|
15085
15090
|
providersArraySig,
|
|
15091
|
+
schemasSig,
|
|
15086
15092
|
selector: decoratorMeta.selector,
|
|
15087
15093
|
standalone: decoratorMeta.standalone,
|
|
15088
15094
|
topLevelImports,
|
|
@@ -18661,6 +18667,15 @@ var init_buildEmberVendor = __esm(() => {
|
|
|
18661
18667
|
});
|
|
18662
18668
|
|
|
18663
18669
|
// src/dev/dependencyGraph.ts
|
|
18670
|
+
var exports_dependencyGraph = {};
|
|
18671
|
+
__export(exports_dependencyGraph, {
|
|
18672
|
+
removeFileFromGraph: () => removeFileFromGraph,
|
|
18673
|
+
getAffectedFiles: () => getAffectedFiles,
|
|
18674
|
+
extractDependencies: () => extractDependencies,
|
|
18675
|
+
emptyDependencyGraph: () => emptyDependencyGraph,
|
|
18676
|
+
buildInitialDependencyGraph: () => buildInitialDependencyGraph,
|
|
18677
|
+
addFileToGraph: () => addFileToGraph
|
|
18678
|
+
});
|
|
18664
18679
|
import { existsSync as existsSync22, readFileSync as readFileSync14 } from "fs";
|
|
18665
18680
|
var {Glob: Glob8 } = globalThis.Bun;
|
|
18666
18681
|
import { resolve as resolve24 } from "path";
|
|
@@ -19158,6 +19173,22 @@ var STYLE_EXTENSION_PATTERN2, detectFramework = (filePath, resolved) => {
|
|
|
19158
19173
|
if (existsSync23(abs) && !roots.includes(abs))
|
|
19159
19174
|
roots.push(abs);
|
|
19160
19175
|
}
|
|
19176
|
+
try {
|
|
19177
|
+
const { readdirSync: readdirSync2 } = __require("fs");
|
|
19178
|
+
const entries = readdirSync2(cwd2, { withFileTypes: true });
|
|
19179
|
+
for (const entry of entries) {
|
|
19180
|
+
if (!entry.isDirectory())
|
|
19181
|
+
continue;
|
|
19182
|
+
if (entry.name.startsWith("."))
|
|
19183
|
+
continue;
|
|
19184
|
+
const abs = normalizePath(resolve26(cwd2, entry.name));
|
|
19185
|
+
if (roots.includes(abs))
|
|
19186
|
+
continue;
|
|
19187
|
+
if (shouldIgnorePath(abs, resolved))
|
|
19188
|
+
continue;
|
|
19189
|
+
roots.push(abs);
|
|
19190
|
+
}
|
|
19191
|
+
} catch {}
|
|
19161
19192
|
const extraDirs = config.dev?.watchDirs ?? [];
|
|
19162
19193
|
for (const dir of extraDirs)
|
|
19163
19194
|
push(dir);
|
|
@@ -21459,7 +21490,48 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21459
21490
|
invalidate(resolve37(filePath));
|
|
21460
21491
|
const relPath = relative16(process.cwd(), filePath);
|
|
21461
21492
|
logHmrUpdate(relPath);
|
|
21462
|
-
|
|
21493
|
+
const angularDir = state.resolvedPaths.angularDir;
|
|
21494
|
+
let hasAngularDependent = false;
|
|
21495
|
+
if (angularDir && state.dependencyGraph) {
|
|
21496
|
+
try {
|
|
21497
|
+
const { addFileToGraph: addFileToGraph2 } = await Promise.resolve().then(() => (init_dependencyGraph(), exports_dependencyGraph));
|
|
21498
|
+
addFileToGraph2(state.dependencyGraph, resolve37(filePath));
|
|
21499
|
+
const affected = getAffectedFiles(state.dependencyGraph, resolve37(filePath));
|
|
21500
|
+
for (const dependent of affected) {
|
|
21501
|
+
if (dependent === resolve37(filePath))
|
|
21502
|
+
continue;
|
|
21503
|
+
const dependentFramework = detectFramework(dependent, state.resolvedPaths);
|
|
21504
|
+
if (dependentFramework !== "angular")
|
|
21505
|
+
continue;
|
|
21506
|
+
hasAngularDependent = true;
|
|
21507
|
+
if (!state.fileChangeQueue.has("angular")) {
|
|
21508
|
+
state.fileChangeQueue.set("angular", []);
|
|
21509
|
+
}
|
|
21510
|
+
const angularQueue = state.fileChangeQueue.get("angular");
|
|
21511
|
+
if (angularQueue && !angularQueue.includes(dependent)) {
|
|
21512
|
+
angularQueue.push(dependent);
|
|
21513
|
+
}
|
|
21514
|
+
}
|
|
21515
|
+
} catch {}
|
|
21516
|
+
}
|
|
21517
|
+
if (!hasAngularDependent) {
|
|
21518
|
+
return;
|
|
21519
|
+
}
|
|
21520
|
+
try {
|
|
21521
|
+
const { getFrameworkGeneratedDir: getFrameworkGeneratedDir2 } = await Promise.resolve().then(() => (init_generatedDir(), exports_generatedDir));
|
|
21522
|
+
const { invalidateModule: invalidateModuleServer } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
21523
|
+
const generatedAngularRoot = getFrameworkGeneratedDir2("angular");
|
|
21524
|
+
const sourceAbs = resolve37(filePath).replace(/\\/g, "/");
|
|
21525
|
+
const generatedTwin = `${generatedAngularRoot.replace(/\\/g, "/")}${sourceAbs.replace(/\.ts$/, ".js")}`;
|
|
21526
|
+
invalidateModuleServer(generatedTwin);
|
|
21527
|
+
} catch {}
|
|
21528
|
+
if (!state.fileChangeQueue.has("unknown")) {
|
|
21529
|
+
state.fileChangeQueue.set("unknown", []);
|
|
21530
|
+
}
|
|
21531
|
+
const unknownQueue = state.fileChangeQueue.get("unknown");
|
|
21532
|
+
if (unknownQueue && !unknownQueue.includes(filePath)) {
|
|
21533
|
+
unknownQueue.push(filePath);
|
|
21534
|
+
}
|
|
21463
21535
|
}
|
|
21464
21536
|
if (!state.fileChangeQueue.has(framework)) {
|
|
21465
21537
|
state.fileChangeQueue.set(framework, []);
|
|
@@ -21643,6 +21715,26 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21643
21715
|
break;
|
|
21644
21716
|
}
|
|
21645
21717
|
}
|
|
21718
|
+
for (const editedFile of userEdited) {
|
|
21719
|
+
if (!editedFile.endsWith(".ts"))
|
|
21720
|
+
continue;
|
|
21721
|
+
if (editedFile.endsWith(".d.ts"))
|
|
21722
|
+
continue;
|
|
21723
|
+
const detected = detectFramework(editedFile, state.resolvedPaths);
|
|
21724
|
+
if (detected !== "unknown")
|
|
21725
|
+
continue;
|
|
21726
|
+
try {
|
|
21727
|
+
const affected = getAffectedFiles(state.dependencyGraph, resolve37(editedFile));
|
|
21728
|
+
const hasAngularConsumer = affected.some((dep) => dep !== resolve37(editedFile) && detectFramework(dep, state.resolvedPaths) === "angular");
|
|
21729
|
+
if (hasAngularConsumer) {
|
|
21730
|
+
return {
|
|
21731
|
+
kind: "rebootstrap",
|
|
21732
|
+
reason: `non-angular helper edited (${editedFile}) \u2014 angular dependents need fresh bundle for __abs_deps to point at new exports`,
|
|
21733
|
+
tier: 1
|
|
21734
|
+
};
|
|
21735
|
+
}
|
|
21736
|
+
} catch {}
|
|
21737
|
+
}
|
|
21646
21738
|
const queue = [];
|
|
21647
21739
|
const queueIds = new Set;
|
|
21648
21740
|
let anyFingerprintChanged = false;
|
|
@@ -23742,5 +23834,5 @@ export {
|
|
|
23742
23834
|
build
|
|
23743
23835
|
};
|
|
23744
23836
|
|
|
23745
|
-
//# debugId=
|
|
23837
|
+
//# debugId=DACC30B88A8A516D64756E2164756E21
|
|
23746
23838
|
//# sourceMappingURL=build.js.map
|