@angular/compiler-cli 22.0.0-next.3 → 22.0.0-next.4
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/bundles/{chunk-EAE5KCUR.js → chunk-33PKOB6H.js} +4 -4
- package/bundles/{chunk-NPMPTFII.js → chunk-6IEU2J75.js} +37 -7
- package/bundles/{chunk-NPMPTFII.js.map → chunk-6IEU2J75.js.map} +1 -1
- package/bundles/{chunk-HFKTR5QY.js → chunk-AI2LKYE3.js} +3 -3
- package/bundles/chunk-AI2LKYE3.js.map +6 -0
- package/bundles/{chunk-XSRMZ57L.js → chunk-ARNGIZEA.js} +47 -50
- package/bundles/chunk-ARNGIZEA.js.map +6 -0
- package/bundles/{chunk-5EGV6MZF.js → chunk-BCQGTZBZ.js} +127 -92
- package/bundles/chunk-BCQGTZBZ.js.map +6 -0
- package/bundles/{chunk-I6T4FEIP.js → chunk-L35AQF75.js} +84 -37
- package/bundles/chunk-L35AQF75.js.map +6 -0
- package/bundles/{chunk-UUQRZWDP.js → chunk-TXJNNYJ4.js} +2 -2
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +69 -12
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +2 -2
- package/bundles/private/hybrid_analysis.js +2 -2
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/testing.js +38 -11
- package/bundles/private/testing.js.map +2 -2
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +6 -6
- package/bundles/src/bin/ngc.js +6 -6
- package/linker/babel/src/ast/babel_ast_factory.d.ts +15 -8
- package/linker/src/file_linker/emit_scopes/emit_scope.d.ts +3 -3
- package/linker/src/file_linker/emit_scopes/local_emit_scope.d.ts +1 -1
- package/linker/src/file_linker/file_linker.d.ts +2 -2
- package/linker/src/file_linker/linker_environment.d.ts +4 -4
- package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/linker/src/file_linker/translator.d.ts +2 -2
- package/linker/src/linker_import_generator.d.ts +2 -2
- package/package.json +2 -2
- package/src/ngtsc/file_system/testing/index.d.ts +1 -1
- package/src/ngtsc/file_system/testing/src/test_helper.d.ts +1 -0
- package/src/ngtsc/translator/src/api/ast_factory.d.ts +38 -6
- package/src/ngtsc/translator/src/translator.d.ts +8 -2
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +12 -6
- package/src/ngtsc/typecheck/api/api.d.ts +2 -1
- package/src/ngtsc/typecheck/src/tcb_adapter.d.ts +2 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -2
- package/bundles/chunk-5EGV6MZF.js.map +0 -6
- package/bundles/chunk-HFKTR5QY.js.map +0 -6
- package/bundles/chunk-I6T4FEIP.js.map +0 -6
- package/bundles/chunk-XSRMZ57L.js.map +0 -6
- /package/bundles/{chunk-EAE5KCUR.js.map → chunk-33PKOB6H.js.map} +0 -0
- /package/bundles/{chunk-UUQRZWDP.js.map → chunk-TXJNNYJ4.js.map} +0 -0
|
@@ -8,19 +8,19 @@ import {
|
|
|
8
8
|
TrackedIncrementalBuildStrategy,
|
|
9
9
|
freshCompilationTicket,
|
|
10
10
|
incrementalFromCompilerTicket
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6IEU2J75.js";
|
|
12
12
|
import {
|
|
13
13
|
OptimizeFor,
|
|
14
14
|
TsCreateProgramDriver,
|
|
15
15
|
retagAllTsFiles
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ARNGIZEA.js";
|
|
17
17
|
import {
|
|
18
18
|
ActivePerfRecorder,
|
|
19
19
|
PerfCheckpoint,
|
|
20
20
|
PerfEvent,
|
|
21
21
|
PerfPhase,
|
|
22
22
|
replaceTsWithNgInErrors
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-BCQGTZBZ.js";
|
|
24
24
|
import {
|
|
25
25
|
absoluteFrom,
|
|
26
26
|
createFileSystemTsReadDirectoryFn,
|
|
@@ -644,4 +644,4 @@ export {
|
|
|
644
644
|
* Use of this source code is governed by an MIT-style license that can be
|
|
645
645
|
* found in the LICENSE file at https://angular.dev/license
|
|
646
646
|
*/
|
|
647
|
-
//# sourceMappingURL=chunk-
|
|
647
|
+
//# sourceMappingURL=chunk-33PKOB6H.js.map
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
isShim,
|
|
31
31
|
tryParseInitializerApi,
|
|
32
32
|
untagAllTsFiles
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ARNGIZEA.js";
|
|
34
34
|
import {
|
|
35
35
|
AbsoluteModuleStrategy,
|
|
36
36
|
ActivePerfRecorder,
|
|
@@ -90,7 +90,7 @@ import {
|
|
|
90
90
|
relativePathBetween,
|
|
91
91
|
signalMetadataTransform,
|
|
92
92
|
toUnredirectedSourceFile
|
|
93
|
-
} from "./chunk-
|
|
93
|
+
} from "./chunk-BCQGTZBZ.js";
|
|
94
94
|
import {
|
|
95
95
|
LogicalFileSystem,
|
|
96
96
|
absoluteFromSourceFile,
|
|
@@ -3582,7 +3582,37 @@ var factory15 = {
|
|
|
3582
3582
|
};
|
|
3583
3583
|
|
|
3584
3584
|
// packages/compiler-cli/src/ngtsc/typecheck/extended/checks/defer_trigger_misconfiguration/index.js
|
|
3585
|
-
import { TmplAstDeferredBlock, TmplAstHoverDeferredTrigger, TmplAstImmediateDeferredTrigger, TmplAstInteractionDeferredTrigger, TmplAstTimerDeferredTrigger, TmplAstViewportDeferredTrigger } from "@angular/compiler";
|
|
3585
|
+
import { TmplAstDeferredBlock, TmplAstHoverDeferredTrigger, TmplAstImmediateDeferredTrigger, TmplAstInteractionDeferredTrigger, TmplAstTimerDeferredTrigger, TmplAstViewportDeferredTrigger, LiteralPrimitive } from "@angular/compiler";
|
|
3586
|
+
function areLiteralMapsEqual(a, b) {
|
|
3587
|
+
const aIsEmpty = a === null || a.keys.length === 0;
|
|
3588
|
+
const bIsEmpty = b === null || b.keys.length === 0;
|
|
3589
|
+
if (aIsEmpty && bIsEmpty)
|
|
3590
|
+
return true;
|
|
3591
|
+
if (aIsEmpty || bIsEmpty)
|
|
3592
|
+
return false;
|
|
3593
|
+
if (a.keys.length !== b.keys.length)
|
|
3594
|
+
return false;
|
|
3595
|
+
const bMap = /* @__PURE__ */ new Map();
|
|
3596
|
+
for (let i = 0; i < b.keys.length; i++) {
|
|
3597
|
+
const bKey = b.keys[i];
|
|
3598
|
+
if (bKey.kind !== "property")
|
|
3599
|
+
continue;
|
|
3600
|
+
const bVal = b.values[i];
|
|
3601
|
+
bMap.set(bKey.key, bVal instanceof LiteralPrimitive ? bVal.value : null);
|
|
3602
|
+
}
|
|
3603
|
+
for (let i = 0; i < a.keys.length; i++) {
|
|
3604
|
+
const aKey = a.keys[i];
|
|
3605
|
+
if (aKey.kind !== "property")
|
|
3606
|
+
continue;
|
|
3607
|
+
const aVal = a.values[i];
|
|
3608
|
+
const aValue = aVal instanceof LiteralPrimitive ? aVal.value : null;
|
|
3609
|
+
if (!bMap.has(aKey.key))
|
|
3610
|
+
return false;
|
|
3611
|
+
if (bMap.get(aKey.key) !== aValue)
|
|
3612
|
+
return false;
|
|
3613
|
+
}
|
|
3614
|
+
return true;
|
|
3615
|
+
}
|
|
3586
3616
|
var DeferTriggerMisconfiguration = class extends TemplateCheckWithVisitor {
|
|
3587
3617
|
code = ErrorCode.DEFER_TRIGGER_MISCONFIGURATION;
|
|
3588
3618
|
visitNode(ctx, component, node) {
|
|
@@ -3620,9 +3650,9 @@ var DeferTriggerMisconfiguration = class extends TemplateCheckWithVisitor {
|
|
|
3620
3650
|
const isInteractionTrigger = main instanceof TmplAstInteractionDeferredTrigger && pre instanceof TmplAstInteractionDeferredTrigger;
|
|
3621
3651
|
const isViewportTrigger = main instanceof TmplAstViewportDeferredTrigger && pre instanceof TmplAstViewportDeferredTrigger;
|
|
3622
3652
|
if (isHoverTrigger || isInteractionTrigger || isViewportTrigger) {
|
|
3623
|
-
const
|
|
3624
|
-
const
|
|
3625
|
-
if (
|
|
3653
|
+
const referencesMatch = main.reference === pre.reference;
|
|
3654
|
+
const optionsMatch = isViewportTrigger ? areLiteralMapsEqual(main.options, pre.options) : true;
|
|
3655
|
+
if (referencesMatch && optionsMatch) {
|
|
3626
3656
|
const kindName = main.constructor.name.replace("DeferredTrigger", "").toLowerCase();
|
|
3627
3657
|
const msg = `Prefetch '${kindName}' matches the main trigger and provides no benefit. Remove the prefetch modifier.`;
|
|
3628
3658
|
diags.push(ctx.makeTemplateDiagnostic(pre.sourceSpan ?? node.sourceSpan, formatExtendedError(ErrorCode.DEFER_TRIGGER_MISCONFIGURATION, msg)));
|
|
@@ -5376,4 +5406,4 @@ export {
|
|
|
5376
5406
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5377
5407
|
* found in the LICENSE file at https://angular.dev/license
|
|
5378
5408
|
*/
|
|
5379
|
-
//# sourceMappingURL=chunk-
|
|
5409
|
+
//# sourceMappingURL=chunk-6IEU2J75.js.map
|