@angular/compiler-cli 14.1.0-rc.0 → 14.1.0
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-ATB3HJXN.js +2 -2
- package/bundles/{chunk-WAXJ3P3Y.js → chunk-BCXYCOVM.js} +10 -4
- package/bundles/{chunk-WAXJ3P3Y.js.map → chunk-BCXYCOVM.js.map} +1 -1
- package/bundles/{chunk-J6ZMRNVQ.js → chunk-C6DN5BLC.js} +2 -2
- package/bundles/{chunk-J6ZMRNVQ.js.map → chunk-C6DN5BLC.js.map} +0 -0
- package/bundles/{chunk-LPUQQ2CH.js → chunk-KPEPSPYQ.js} +3 -6
- package/bundles/chunk-KPEPSPYQ.js.map +6 -0
- package/bundles/{chunk-GDAOEMFN.js → chunk-MN3YDSGE.js} +3 -3
- package/bundles/{chunk-GDAOEMFN.js.map → chunk-MN3YDSGE.js.map} +0 -0
- package/bundles/{chunk-F2UCYAES.js → chunk-S2H6ZNBD.js} +3 -3
- package/bundles/{chunk-F2UCYAES.js.map → chunk-S2H6ZNBD.js.map} +0 -0
- package/bundles/index.js +3 -3
- package/bundles/ngcc/index.js +4 -4
- package/bundles/ngcc/main-ngcc.js +4 -4
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +3 -3
- package/bundles/private/migrations.js +1 -1
- package/bundles/src/bin/ng_xi18n.js +3 -3
- package/bundles/src/bin/ngc.js +3 -3
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +10 -0
- package/bundles/chunk-LPUQQ2CH.js.map +0 -6
|
@@ -827,7 +827,7 @@ var declarationFunctions = [
|
|
|
827
827
|
];
|
|
828
828
|
function createLinkerMap(environment, sourceUrl, code) {
|
|
829
829
|
const linkers = /* @__PURE__ */ new Map();
|
|
830
|
-
const LATEST_VERSION_RANGE = getRange("<=", "14.1.0
|
|
830
|
+
const LATEST_VERSION_RANGE = getRange("<=", "14.1.0");
|
|
831
831
|
linkers.set(\u0275\u0275ngDeclareDirective, [
|
|
832
832
|
{ range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
|
|
833
833
|
]);
|
|
@@ -874,7 +874,7 @@ var PartialLinkerSelector = class {
|
|
|
874
874
|
throw new Error(`Unknown partial declaration function ${functionName}.`);
|
|
875
875
|
}
|
|
876
876
|
const linkerRanges = this.linkers.get(functionName);
|
|
877
|
-
if (version === "14.1.0
|
|
877
|
+
if (version === "14.1.0") {
|
|
878
878
|
return linkerRanges[linkerRanges.length - 1].linker;
|
|
879
879
|
}
|
|
880
880
|
const declarationRange = getRange(">=", minVersion);
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
aliasTransformFactory,
|
|
31
31
|
declarationTransformFactory,
|
|
32
32
|
ivyTransformFactory
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KPEPSPYQ.js";
|
|
34
34
|
import {
|
|
35
35
|
TypeScriptReflectionHost,
|
|
36
36
|
isNamedClassDeclaration
|
|
@@ -5895,7 +5895,12 @@ var factory = {
|
|
|
5895
5895
|
|
|
5896
5896
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.mjs
|
|
5897
5897
|
import { TmplAstTemplate as TmplAstTemplate4 } from "@angular/compiler";
|
|
5898
|
-
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new
|
|
5898
|
+
var KNOWN_CONTROL_FLOW_DIRECTIVES = /* @__PURE__ */ new Map([
|
|
5899
|
+
["ngIf", "NgIf"],
|
|
5900
|
+
["ngFor", "NgForOf"],
|
|
5901
|
+
["ngSwitchCase", "NgSwitchCase"],
|
|
5902
|
+
["ngSwitchDefault", "NgSwitchDefault"]
|
|
5903
|
+
]);
|
|
5899
5904
|
var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
5900
5905
|
constructor() {
|
|
5901
5906
|
super(...arguments);
|
|
@@ -5919,7 +5924,8 @@ var MissingControlFlowDirectiveCheck = class extends TemplateCheckWithVisitor {
|
|
|
5919
5924
|
return [];
|
|
5920
5925
|
}
|
|
5921
5926
|
const sourceSpan = controlFlowAttr.keySpan || controlFlowAttr.sourceSpan;
|
|
5922
|
-
const
|
|
5927
|
+
const correspondingImport = KNOWN_CONTROL_FLOW_DIRECTIVES.get(controlFlowAttr.name);
|
|
5928
|
+
const errorMessage = `The \`*${controlFlowAttr.name}\` directive was used in the template, but neither the \`${correspondingImport}\` directive nor the \`CommonModule\` was imported. Please make sure that either the \`${correspondingImport}\` directive or the \`CommonModule\` is included in the \`@Component.imports\` array of this component.`;
|
|
5923
5929
|
const diagnostic = ctx.makeTemplateDiagnostic(sourceSpan, errorMessage);
|
|
5924
5930
|
return [diagnostic];
|
|
5925
5931
|
}
|
|
@@ -7483,4 +7489,4 @@ export {
|
|
|
7483
7489
|
* found in the LICENSE file at https://angular.io/license
|
|
7484
7490
|
*/
|
|
7485
7491
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
7486
|
-
//# sourceMappingURL=chunk-
|
|
7492
|
+
//# sourceMappingURL=chunk-BCXYCOVM.js.map
|