@absolutejs/absolute 0.19.0-beta.941 → 0.19.0-beta.942
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 +48 -3
- package/dist/build.js.map +4 -4
- package/dist/index.js +48 -3
- package/dist/index.js.map +4 -4
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -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-QvrRiW/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-QvrRiW/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-QvrRiW/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
|
@@ -13645,6 +13645,10 @@ var fail = (reason, detail, location) => ({
|
|
|
13645
13645
|
return false;
|
|
13646
13646
|
if (a.viewProvidersArraySig !== b2.viewProvidersArraySig)
|
|
13647
13647
|
return false;
|
|
13648
|
+
if (a.decoratorInputsArraySig !== b2.decoratorInputsArraySig)
|
|
13649
|
+
return false;
|
|
13650
|
+
if (a.decoratorOutputsArraySig !== b2.decoratorOutputsArraySig)
|
|
13651
|
+
return false;
|
|
13648
13652
|
return true;
|
|
13649
13653
|
}, recordFingerprint = (id, fp) => {
|
|
13650
13654
|
fingerprintCache.set(id, fp);
|
|
@@ -13939,6 +13943,8 @@ var fail = (reason, detail, location) => ({
|
|
|
13939
13943
|
const animationsExpr = getProperty(args, "animations");
|
|
13940
13944
|
const providersExpr = getProperty(args, "providers");
|
|
13941
13945
|
const viewProvidersExpr = getProperty(args, "viewProviders");
|
|
13946
|
+
const inputsArrayExpr = getProperty(args, "inputs");
|
|
13947
|
+
const outputsArrayExpr = getProperty(args, "outputs");
|
|
13942
13948
|
const styleUrls = [];
|
|
13943
13949
|
if (styleUrlsExpr && ts6.isArrayLiteralExpression(styleUrlsExpr)) {
|
|
13944
13950
|
for (const el of styleUrlsExpr.elements) {
|
|
@@ -13972,6 +13978,8 @@ var fail = (reason, detail, location) => ({
|
|
|
13972
13978
|
animationsExpr: animationsExpr && ts6.isArrayLiteralExpression(animationsExpr) ? animationsExpr : null,
|
|
13973
13979
|
providersExpr: providersExpr && ts6.isArrayLiteralExpression(providersExpr) ? providersExpr : null,
|
|
13974
13980
|
viewProvidersExpr: viewProvidersExpr && ts6.isArrayLiteralExpression(viewProvidersExpr) ? viewProvidersExpr : null,
|
|
13981
|
+
inputsArrayExpr: inputsArrayExpr && ts6.isArrayLiteralExpression(inputsArrayExpr) ? inputsArrayExpr : null,
|
|
13982
|
+
outputsArrayExpr: outputsArrayExpr && ts6.isArrayLiteralExpression(outputsArrayExpr) ? outputsArrayExpr : null,
|
|
13975
13983
|
preserveWhitespaces: getBooleanProperty(args, "preserveWhitespaces") ?? projectDefaults.preserveWhitespaces ?? false,
|
|
13976
13984
|
selector: getStringProperty(args, "selector"),
|
|
13977
13985
|
standalone: getBooleanProperty(args, "standalone") ?? true,
|
|
@@ -14985,12 +14993,16 @@ var fail = (reason, detail, location) => ({
|
|
|
14985
14993
|
const animationsArraySig = decoratorMeta.animationsExpr ? djb2Hash(decoratorMeta.animationsExpr.getText()) : "";
|
|
14986
14994
|
const providersArraySig = decoratorMeta.providersExpr ? djb2Hash(decoratorMeta.providersExpr.getText()) : "";
|
|
14987
14995
|
const viewProvidersArraySig = decoratorMeta.viewProvidersExpr ? djb2Hash(decoratorMeta.viewProvidersExpr.getText()) : "";
|
|
14996
|
+
const decoratorInputsArraySig = decoratorMeta.inputsArrayExpr ? djb2Hash(decoratorMeta.inputsArrayExpr.getText()) : "";
|
|
14997
|
+
const decoratorOutputsArraySig = decoratorMeta.outputsArrayExpr ? djb2Hash(decoratorMeta.outputsArrayExpr.getText()) : "";
|
|
14988
14998
|
return {
|
|
14989
14999
|
animationsArraySig,
|
|
14990
15000
|
arrowFieldSig,
|
|
14991
15001
|
changeDetection: decoratorMeta.changeDetection,
|
|
14992
15002
|
className,
|
|
14993
15003
|
ctorParamTypes,
|
|
15004
|
+
decoratorInputsArraySig,
|
|
15005
|
+
decoratorOutputsArraySig,
|
|
14994
15006
|
encapsulation: decoratorMeta.encapsulation,
|
|
14995
15007
|
hasProviders: decoratorMeta.hasProviders,
|
|
14996
15008
|
hasViewProviders: decoratorMeta.hasViewProviders,
|
|
@@ -15257,7 +15269,7 @@ ${block}
|
|
|
15257
15269
|
const currentFingerprint = extractFingerprint(classNode, className, decoratorMeta, inputs, outputs, sourceFile, componentDir);
|
|
15258
15270
|
const cachedFingerprint = fingerprintCache.get(fingerprintId);
|
|
15259
15271
|
const fingerprintChanged = cachedFingerprint !== undefined && !fingerprintsEqual(cachedFingerprint, currentFingerprint);
|
|
15260
|
-
const rebootstrapRequired = !currentFingerprint.standalone || cachedFingerprint !== undefined && (cachedFingerprint.importsArraySig !== currentFingerprint.importsArraySig || cachedFingerprint.hostDirectivesSig !== currentFingerprint.hostDirectivesSig || cachedFingerprint.providersArraySig !== currentFingerprint.providersArraySig || cachedFingerprint.viewProvidersArraySig !== currentFingerprint.viewProvidersArraySig || cachedFingerprint.standalone !== currentFingerprint.standalone);
|
|
15272
|
+
const rebootstrapRequired = !currentFingerprint.standalone || cachedFingerprint !== undefined && (cachedFingerprint.importsArraySig !== currentFingerprint.importsArraySig || cachedFingerprint.hostDirectivesSig !== currentFingerprint.hostDirectivesSig || cachedFingerprint.providersArraySig !== currentFingerprint.providersArraySig || cachedFingerprint.viewProvidersArraySig !== currentFingerprint.viewProvidersArraySig || cachedFingerprint.selector !== currentFingerprint.selector || cachedFingerprint.standalone !== currentFingerprint.standalone);
|
|
15261
15273
|
const sourceFileObj = new compiler.ParseSourceFile(tsSource, componentFilePath);
|
|
15262
15274
|
const zeroLoc = new compiler.ParseLocation(sourceFileObj, 0, 0, 0);
|
|
15263
15275
|
const typeSourceSpan = new compiler.ParseSourceSpan(zeroLoc, zeroLoc);
|
|
@@ -15390,7 +15402,29 @@ ${block}
|
|
|
15390
15402
|
for (const entry of resolvedImports) {
|
|
15391
15403
|
referencedNames.add(entry.identifier.text);
|
|
15392
15404
|
}
|
|
15393
|
-
const
|
|
15405
|
+
const allImportedNames = new Set;
|
|
15406
|
+
for (const stmt of sourceFile.statements) {
|
|
15407
|
+
if (!ts6.isImportDeclaration(stmt))
|
|
15408
|
+
continue;
|
|
15409
|
+
const clause = stmt.importClause;
|
|
15410
|
+
if (!clause || clause.isTypeOnly)
|
|
15411
|
+
continue;
|
|
15412
|
+
if (clause.name)
|
|
15413
|
+
allImportedNames.add(clause.name.text);
|
|
15414
|
+
const bindings = clause.namedBindings;
|
|
15415
|
+
if (!bindings)
|
|
15416
|
+
continue;
|
|
15417
|
+
if (ts6.isNamespaceImport(bindings)) {
|
|
15418
|
+
allImportedNames.add(bindings.name.text);
|
|
15419
|
+
} else {
|
|
15420
|
+
for (const el of bindings.elements) {
|
|
15421
|
+
if (el.isTypeOnly)
|
|
15422
|
+
continue;
|
|
15423
|
+
allImportedNames.add(el.name.text);
|
|
15424
|
+
}
|
|
15425
|
+
}
|
|
15426
|
+
}
|
|
15427
|
+
const depsToDestructure = [...sourceScopeNames].filter((n) => referencedNames.has(n) || allImportedNames.has(n));
|
|
15394
15428
|
const tsSourceText = fnText;
|
|
15395
15429
|
const transpiled = ts6.transpileModule(tsSourceText, {
|
|
15396
15430
|
compilerOptions: {
|
|
@@ -21546,6 +21580,17 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, runSequent
|
|
|
21546
21580
|
tier: 1
|
|
21547
21581
|
};
|
|
21548
21582
|
}
|
|
21583
|
+
if (owners.length === 0 && editedFile.endsWith(".ts") && !editedFile.endsWith(".d.ts")) {
|
|
21584
|
+
const normalized = editedFile.replace(/\\/g, "/");
|
|
21585
|
+
const angularDirAbs = resolve37(angularDir).replace(/\\/g, "/");
|
|
21586
|
+
if (normalized.startsWith(angularDirAbs + "/")) {
|
|
21587
|
+
return {
|
|
21588
|
+
kind: "rebootstrap",
|
|
21589
|
+
reason: `non-decorated angular file edited (${editedFile}) \u2014 consumers may hold stale resolved values`,
|
|
21590
|
+
tier: 1
|
|
21591
|
+
};
|
|
21592
|
+
}
|
|
21593
|
+
}
|
|
21549
21594
|
for (const { componentFilePath, className, kind } of owners) {
|
|
21550
21595
|
const id = encodeHmrComponentId2(componentFilePath, className);
|
|
21551
21596
|
if (queueIds.has(id))
|
|
@@ -23598,5 +23643,5 @@ export {
|
|
|
23598
23643
|
build
|
|
23599
23644
|
};
|
|
23600
23645
|
|
|
23601
|
-
//# debugId=
|
|
23646
|
+
//# debugId=F2F7819D5956C6C964756E2164756E21
|
|
23602
23647
|
//# sourceMappingURL=build.js.map
|