@absolutejs/absolute 0.19.0-beta.943 → 0.19.0-beta.945
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 +100 -2
- package/dist/build.js.map +5 -5
- package/dist/index.js +100 -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-rUfdB4/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-rUfdB4/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-rUfdB4/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);
|
|
@@ -21197,6 +21228,12 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21197
21228
|
const { cssChanged } = await incrementalTailwindBuild(config.tailwind, state.resolvedPaths.buildDir, files, getStyleTransformConfig(config));
|
|
21198
21229
|
if (!cssChanged)
|
|
21199
21230
|
return;
|
|
21231
|
+
try {
|
|
21232
|
+
const outputPath = resolve37(state.resolvedPaths.buildDir, config.tailwind.output);
|
|
21233
|
+
const bytes = await Bun.file(outputPath).bytes();
|
|
21234
|
+
const webPath = `/${config.tailwind.output.replace(/^\/+/, "")}`;
|
|
21235
|
+
state.assetStore.set(webPath, bytes);
|
|
21236
|
+
} catch {}
|
|
21200
21237
|
broadcastToClients(state, {
|
|
21201
21238
|
data: { framework: "tailwind", manifest: state.manifest },
|
|
21202
21239
|
message: "Tailwind utilities recompiled",
|
|
@@ -21459,7 +21496,48 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21459
21496
|
invalidate(resolve37(filePath));
|
|
21460
21497
|
const relPath = relative16(process.cwd(), filePath);
|
|
21461
21498
|
logHmrUpdate(relPath);
|
|
21462
|
-
|
|
21499
|
+
const angularDir = state.resolvedPaths.angularDir;
|
|
21500
|
+
let hasAngularDependent = false;
|
|
21501
|
+
if (angularDir && state.dependencyGraph) {
|
|
21502
|
+
try {
|
|
21503
|
+
const { addFileToGraph: addFileToGraph2 } = await Promise.resolve().then(() => (init_dependencyGraph(), exports_dependencyGraph));
|
|
21504
|
+
addFileToGraph2(state.dependencyGraph, resolve37(filePath));
|
|
21505
|
+
const affected = getAffectedFiles(state.dependencyGraph, resolve37(filePath));
|
|
21506
|
+
for (const dependent of affected) {
|
|
21507
|
+
if (dependent === resolve37(filePath))
|
|
21508
|
+
continue;
|
|
21509
|
+
const dependentFramework = detectFramework(dependent, state.resolvedPaths);
|
|
21510
|
+
if (dependentFramework !== "angular")
|
|
21511
|
+
continue;
|
|
21512
|
+
hasAngularDependent = true;
|
|
21513
|
+
if (!state.fileChangeQueue.has("angular")) {
|
|
21514
|
+
state.fileChangeQueue.set("angular", []);
|
|
21515
|
+
}
|
|
21516
|
+
const angularQueue = state.fileChangeQueue.get("angular");
|
|
21517
|
+
if (angularQueue && !angularQueue.includes(dependent)) {
|
|
21518
|
+
angularQueue.push(dependent);
|
|
21519
|
+
}
|
|
21520
|
+
}
|
|
21521
|
+
} catch {}
|
|
21522
|
+
}
|
|
21523
|
+
if (!hasAngularDependent) {
|
|
21524
|
+
return;
|
|
21525
|
+
}
|
|
21526
|
+
try {
|
|
21527
|
+
const { getFrameworkGeneratedDir: getFrameworkGeneratedDir2 } = await Promise.resolve().then(() => (init_generatedDir(), exports_generatedDir));
|
|
21528
|
+
const { invalidateModule: invalidateModuleServer } = await Promise.resolve().then(() => (init_moduleServer(), exports_moduleServer));
|
|
21529
|
+
const generatedAngularRoot = getFrameworkGeneratedDir2("angular");
|
|
21530
|
+
const sourceAbs = resolve37(filePath).replace(/\\/g, "/");
|
|
21531
|
+
const generatedTwin = `${generatedAngularRoot.replace(/\\/g, "/")}${sourceAbs.replace(/\.ts$/, ".js")}`;
|
|
21532
|
+
invalidateModuleServer(generatedTwin);
|
|
21533
|
+
} catch {}
|
|
21534
|
+
if (!state.fileChangeQueue.has("unknown")) {
|
|
21535
|
+
state.fileChangeQueue.set("unknown", []);
|
|
21536
|
+
}
|
|
21537
|
+
const unknownQueue = state.fileChangeQueue.get("unknown");
|
|
21538
|
+
if (unknownQueue && !unknownQueue.includes(filePath)) {
|
|
21539
|
+
unknownQueue.push(filePath);
|
|
21540
|
+
}
|
|
21463
21541
|
}
|
|
21464
21542
|
if (!state.fileChangeQueue.has(framework)) {
|
|
21465
21543
|
state.fileChangeQueue.set(framework, []);
|
|
@@ -21643,6 +21721,26 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21643
21721
|
break;
|
|
21644
21722
|
}
|
|
21645
21723
|
}
|
|
21724
|
+
for (const editedFile of userEdited) {
|
|
21725
|
+
if (!editedFile.endsWith(".ts"))
|
|
21726
|
+
continue;
|
|
21727
|
+
if (editedFile.endsWith(".d.ts"))
|
|
21728
|
+
continue;
|
|
21729
|
+
const detected = detectFramework(editedFile, state.resolvedPaths);
|
|
21730
|
+
if (detected !== "unknown")
|
|
21731
|
+
continue;
|
|
21732
|
+
try {
|
|
21733
|
+
const affected = getAffectedFiles(state.dependencyGraph, resolve37(editedFile));
|
|
21734
|
+
const hasAngularConsumer = affected.some((dep) => dep !== resolve37(editedFile) && detectFramework(dep, state.resolvedPaths) === "angular");
|
|
21735
|
+
if (hasAngularConsumer) {
|
|
21736
|
+
return {
|
|
21737
|
+
kind: "rebootstrap",
|
|
21738
|
+
reason: `non-angular helper edited (${editedFile}) \u2014 angular dependents need fresh bundle for __abs_deps to point at new exports`,
|
|
21739
|
+
tier: 1
|
|
21740
|
+
};
|
|
21741
|
+
}
|
|
21742
|
+
} catch {}
|
|
21743
|
+
}
|
|
21646
21744
|
const queue = [];
|
|
21647
21745
|
const queueIds = new Set;
|
|
21648
21746
|
let anyFingerprintChanged = false;
|
|
@@ -23742,5 +23840,5 @@ export {
|
|
|
23742
23840
|
build
|
|
23743
23841
|
};
|
|
23744
23842
|
|
|
23745
|
-
//# debugId=
|
|
23843
|
+
//# debugId=8684D1812337845164756E2164756E21
|
|
23746
23844
|
//# sourceMappingURL=build.js.map
|