@angular/compiler-cli 20.3.9 → 20.3.11

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.
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
455
455
  // packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
456
456
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
457
457
  import semver from "semver";
458
- var PLACEHOLDER_VERSION = "20.3.9";
458
+ var PLACEHOLDER_VERSION = "20.3.11";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-WLUQ7BOF.js";
15
+ } from "./chunk-VLDYFQRU.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-2WL2LMYD.js";
7
+ } from "./chunk-XC6P36QJ.js";
8
8
  import {
9
9
  AbsoluteModuleStrategy,
10
10
  ActivePerfRecorder,
@@ -92,7 +92,7 @@ import {
92
92
  toUnredirectedSourceFile,
93
93
  tryParseInitializerApi,
94
94
  untagAllTsFiles
95
- } from "./chunk-NR7S7ISS.js";
95
+ } from "./chunk-YDQJH54W.js";
96
96
  import {
97
97
  LogicalFileSystem,
98
98
  absoluteFrom,
@@ -16,7 +16,7 @@ import {
16
16
  tryParseSignalInputMapping,
17
17
  tryParseSignalModelMapping,
18
18
  tryParseSignalQueryFromInitializer
19
- } from "./chunk-NR7S7ISS.js";
19
+ } from "./chunk-YDQJH54W.js";
20
20
 
21
21
  // packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
22
22
  import ts from "typescript";
@@ -12995,7 +12995,7 @@ var Environment = class extends ReferenceEmitEnvironment {
12995
12995
  };
12996
12996
 
12997
12997
  // packages/compiler-cli/src/ngtsc/typecheck/src/oob.js
12998
- import { AbsoluteSourceSpan as AbsoluteSourceSpan3, TmplAstBoundEvent as TmplAstBoundEvent2, TmplAstComponent, TmplAstDirective, TmplAstElement } from "@angular/compiler";
12998
+ import { AbsoluteSourceSpan as AbsoluteSourceSpan3, TmplAstBoundEvent as TmplAstBoundEvent2, TmplAstComponent, TmplAstDirective, TmplAstElement, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
12999
12999
  import ts56 from "typescript";
13000
13000
  var OutOfBandDiagnosticRecorderImpl = class {
13001
13001
  resolver;
@@ -13163,7 +13163,23 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
13163
13163
  }
13164
13164
  missingRequiredInputs(id, element, directiveName, isComponent, inputAliases) {
13165
13165
  const message = `Required input${inputAliases.length === 1 ? "" : "s"} ${inputAliases.map((n2) => `'${n2}'`).join(", ")} from ${isComponent ? "component" : "directive"} ${directiveName} must be specified.`;
13166
- this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), element.startSourceSpan, ts56.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
13166
+ let span;
13167
+ let name;
13168
+ if (element instanceof TmplAstElement || element instanceof TmplAstDirective) {
13169
+ name = element.name;
13170
+ } else if (element instanceof TmplAstComponent) {
13171
+ name = element.componentName;
13172
+ } else {
13173
+ name = null;
13174
+ }
13175
+ if (name === null) {
13176
+ span = element.startSourceSpan;
13177
+ } else {
13178
+ const start = element.startSourceSpan.start.moveBy(1);
13179
+ const end = element.startSourceSpan.end.moveBy(start.offset + name.length - element.startSourceSpan.end.offset);
13180
+ span = new ParseSourceSpan2(start, end);
13181
+ }
13182
+ this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), span, ts56.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
13167
13183
  }
13168
13184
  illegalForLoopTrackAccess(id, block, access) {
13169
13185
  const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, access.sourceSpan);
@@ -16252,7 +16268,7 @@ var TypeCtorOp = class {
16252
16268
  };
16253
16269
 
16254
16270
  // packages/compiler-cli/src/ngtsc/typecheck/src/source.js
16255
- import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
16271
+ import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan3 } from "@angular/compiler";
16256
16272
 
16257
16273
  // packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.js
16258
16274
  var LF_CHAR = 10;
@@ -16307,7 +16323,7 @@ var Source = class {
16307
16323
  toParseSourceSpan(start, end) {
16308
16324
  const startLoc = this.toParseLocation(start);
16309
16325
  const endLoc = this.toParseLocation(end);
16310
- return new ParseSourceSpan2(startLoc, endLoc);
16326
+ return new ParseSourceSpan3(startLoc, endLoc);
16311
16327
  }
16312
16328
  toParseLocation(position) {
16313
16329
  const lineStarts = this.acquireLineStarts();
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-WLUQ7BOF.js";
31
+ } from "./chunk-VLDYFQRU.js";
32
32
  import {
33
33
  ConsoleLogger,
34
34
  LogLevel
@@ -37,7 +37,7 @@ import {
37
37
  angularJitApplicationTransform,
38
38
  getDownlevelDecoratorsTransform,
39
39
  getInitializerApiJitTransform
40
- } from "./chunk-2WL2LMYD.js";
40
+ } from "./chunk-XC6P36QJ.js";
41
41
  import {
42
42
  ActivePerfRecorder,
43
43
  ErrorCode,
@@ -46,7 +46,7 @@ import {
46
46
  TsCreateProgramDriver,
47
47
  isLocalCompilationDiagnostics,
48
48
  ngErrorCode
49
- } from "./chunk-NR7S7ISS.js";
49
+ } from "./chunk-YDQJH54W.js";
50
50
  import "./chunk-I2BHWRAU.js";
51
51
  import {
52
52
  InvalidFileSystem,
@@ -77,7 +77,7 @@ import "./chunk-G7GFT6BU.js";
77
77
 
78
78
  // packages/compiler-cli/src/version.js
79
79
  import { Version } from "@angular/compiler";
80
- var VERSION = new Version("20.3.9");
80
+ var VERSION = new Version("20.3.11");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -13,7 +13,7 @@ import {
13
13
  TypeScriptReflectionHost,
14
14
  createForwardRefResolver,
15
15
  reflectObjectLiteral
16
- } from "../chunk-NR7S7ISS.js";
16
+ } from "../chunk-YDQJH54W.js";
17
17
  import "../chunk-I2BHWRAU.js";
18
18
  import "../chunk-GWZQLAGK.js";
19
19
  import "../chunk-XYYEESKY.js";
@@ -4,8 +4,8 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "../chunk-2WL2LMYD.js";
8
- import "../chunk-NR7S7ISS.js";
7
+ } from "../chunk-XC6P36QJ.js";
8
+ import "../chunk-YDQJH54W.js";
9
9
  import "../chunk-I2BHWRAU.js";
10
10
  import "../chunk-GWZQLAGK.js";
11
11
  import "../chunk-XYYEESKY.js";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-YCKNQVIQ.js";
9
+ } from "../../chunk-ERIHYHWB.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-WLUQ7BOF.js";
13
- import "../../chunk-2WL2LMYD.js";
14
- import "../../chunk-NR7S7ISS.js";
12
+ } from "../../chunk-VLDYFQRU.js";
13
+ import "../../chunk-XC6P36QJ.js";
14
+ import "../../chunk-YDQJH54W.js";
15
15
  import "../../chunk-I2BHWRAU.js";
16
16
  import {
17
17
  setFileSystem
@@ -5,10 +5,10 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-YCKNQVIQ.js";
9
- import "../../chunk-WLUQ7BOF.js";
10
- import "../../chunk-2WL2LMYD.js";
11
- import "../../chunk-NR7S7ISS.js";
8
+ } from "../../chunk-ERIHYHWB.js";
9
+ import "../../chunk-VLDYFQRU.js";
10
+ import "../../chunk-XC6P36QJ.js";
11
+ import "../../chunk-YDQJH54W.js";
12
12
  import "../../chunk-I2BHWRAU.js";
13
13
  import {
14
14
  setFileSystem
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
9
9
  import { AstObject, AstValue } from '../../ast/ast_value';
10
- export declare const PLACEHOLDER_VERSION = "20.3.9";
10
+ export declare const PLACEHOLDER_VERSION = "20.3.11";
11
11
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
12
12
  /**
13
13
  * Parses the value of an enum from the AST value's symbol name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "20.3.9",
3
+ "version": "20.3.11",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -48,7 +48,7 @@
48
48
  "yargs": "^18.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@angular/compiler": "20.3.9",
51
+ "@angular/compiler": "20.3.11",
52
52
  "typescript": ">=5.8 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {