@angular/compiler-cli 20.1.5 → 20.1.7

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.
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-JRJZMY3G.js";
15
+ } from "./chunk-6CT454W6.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-6SNDDF7J.js";
7
+ } from "./chunk-OMOHQ5WA.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-RO5VAPEI.js";
95
+ } from "./chunk-DV5EQ6QS.js";
96
96
  import {
97
97
  LogicalFileSystem,
98
98
  absoluteFrom,
@@ -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.1.5";
458
+ var PLACEHOLDER_VERSION = "20.1.7";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -13874,11 +13874,19 @@ var TcbDirectiveCtorOp = class extends TcbOp {
13874
13874
  return true;
13875
13875
  }
13876
13876
  execute() {
13877
+ const genericInputs = /* @__PURE__ */ new Map();
13877
13878
  const id = this.tcb.allocateId();
13879
+ let boundAttrs;
13880
+ let span;
13881
+ if (this.node instanceof TmplAstHostElement2) {
13882
+ boundAttrs = [];
13883
+ span = this.node.sourceSpan;
13884
+ } else {
13885
+ boundAttrs = getBoundAttributes(this.dir, this.node);
13886
+ span = this.node.startSourceSpan || this.node.sourceSpan;
13887
+ }
13878
13888
  addExpressionIdentifier(id, ExpressionIdentifier.DIRECTIVE);
13879
- addParseSpanInfo(id, this.node.startSourceSpan || this.node.sourceSpan);
13880
- const genericInputs = /* @__PURE__ */ new Map();
13881
- const boundAttrs = getBoundAttributes(this.dir, this.node);
13889
+ addParseSpanInfo(id, span);
13882
13890
  for (const attr of boundAttrs) {
13883
13891
  if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TmplAstTextAttribute2) {
13884
13892
  continue;
@@ -15102,20 +15110,20 @@ var Scope = class _Scope {
15102
15110
  }
15103
15111
  }
15104
15112
  appendDirectiveInputs(dir, node, dirMap) {
15105
- let directiveOp;
15106
- const host = this.tcb.env.reflector;
15107
- const dirRef = dir.ref;
15108
- if (!dir.isGeneric) {
15109
- directiveOp = new TcbNonGenericDirectiveTypeOp(this.tcb, this, node, dir);
15110
- } else if (!requiresInlineTypeCtor(dirRef.node, host, this.tcb.env) || this.tcb.env.config.useInlineTypeConstructors) {
15111
- directiveOp = new TcbDirectiveCtorOp(this.tcb, this, node, dir);
15112
- } else {
15113
- directiveOp = new TcbGenericDirectiveTypeWithAnyParamsOp(this.tcb, this, node, dir);
15114
- }
15113
+ const directiveOp = this.getDirectiveOp(dir, node);
15115
15114
  const dirIndex = this.opQueue.push(directiveOp) - 1;
15116
15115
  dirMap.set(dir, dirIndex);
15117
15116
  this.opQueue.push(new TcbDirectiveInputsOp(this.tcb, this, node, dir));
15118
15117
  }
15118
+ getDirectiveOp(dir, node) {
15119
+ const dirRef = dir.ref;
15120
+ if (!dir.isGeneric) {
15121
+ return new TcbNonGenericDirectiveTypeOp(this.tcb, this, node, dir);
15122
+ } else if (!requiresInlineTypeCtor(dirRef.node, this.tcb.env.reflector, this.tcb.env) || this.tcb.env.config.useInlineTypeConstructors) {
15123
+ return new TcbDirectiveCtorOp(this.tcb, this, node, dir);
15124
+ }
15125
+ return new TcbGenericDirectiveTypeWithAnyParamsOp(this.tcb, this, node, dir);
15126
+ }
15119
15127
  appendSelectorlessDirectives(node) {
15120
15128
  for (const directive of node.directives) {
15121
15129
  if (!this.tcb.boundTarget.referencedDirectiveExists(directive.name)) {
@@ -15240,7 +15248,7 @@ var Scope = class _Scope {
15240
15248
  if (directives !== null && directives.length > 0) {
15241
15249
  const directiveOpMap = /* @__PURE__ */ new Map();
15242
15250
  for (const directive of directives) {
15243
- const directiveOp = new TcbNonGenericDirectiveTypeOp(this.tcb, this, node, directive);
15251
+ const directiveOp = this.getDirectiveOp(directive, node);
15244
15252
  directiveOpMap.set(directive, this.opQueue.push(directiveOp) - 1);
15245
15253
  }
15246
15254
  this.directiveOpMap.set(node, directiveOpMap);
@@ -16,7 +16,7 @@ import {
16
16
  tryParseSignalInputMapping,
17
17
  tryParseSignalModelMapping,
18
18
  tryParseSignalQueryFromInitializer
19
- } from "./chunk-RO5VAPEI.js";
19
+ } from "./chunk-DV5EQ6QS.js";
20
20
 
21
21
  // packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
22
22
  import ts from "typescript";
@@ -424,10 +424,10 @@ var initializerApiOutputTransform = (member, sourceFile, host, factory, importTr
424
424
 
425
425
  // packages/compiler-cli/src/ngtsc/transform/jit/src/initializer_api_transforms/query_functions.js
426
426
  var queryFunctionToDecorator = {
427
- viewChild: "ViewChild",
428
- viewChildren: "ViewChildren",
429
- contentChild: "ContentChild",
430
- contentChildren: "ContentChildren"
427
+ "viewChild": "ViewChild",
428
+ "viewChildren": "ViewChildren",
429
+ "contentChild": "ContentChild",
430
+ "contentChildren": "ContentChildren"
431
431
  };
432
432
  var queryFunctionsTransforms = (member, sourceFile, host, factory, importTracker, importManager, classDecorator, isCore) => {
433
433
  const decorators = host.getDecoratorsOfDeclaration(member.node);
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-JRJZMY3G.js";
31
+ } from "./chunk-6CT454W6.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-6SNDDF7J.js";
40
+ } from "./chunk-OMOHQ5WA.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-RO5VAPEI.js";
49
+ } from "./chunk-DV5EQ6QS.js";
50
50
  import "./chunk-I2BHWRAU.js";
51
51
  import {
52
52
  InvalidFileSystem,
@@ -77,7 +77,7 @@ import "./chunk-DWRM7PIK.js";
77
77
 
78
78
  // packages/compiler-cli/src/version.js
79
79
  import { Version } from "@angular/compiler";
80
- var VERSION = new Version("20.1.5");
80
+ var VERSION = new Version("20.1.7");
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-RO5VAPEI.js";
16
+ } from "../chunk-DV5EQ6QS.js";
17
17
  import "../chunk-I2BHWRAU.js";
18
18
  import "../chunk-GWZQLAGK.js";
19
19
  import "../chunk-SZY7NM6F.js";
@@ -4,8 +4,8 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "../chunk-6SNDDF7J.js";
8
- import "../chunk-RO5VAPEI.js";
7
+ } from "../chunk-OMOHQ5WA.js";
8
+ import "../chunk-DV5EQ6QS.js";
9
9
  import "../chunk-I2BHWRAU.js";
10
10
  import "../chunk-GWZQLAGK.js";
11
11
  import "../chunk-SZY7NM6F.js";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-XRIKE6FE.js";
9
+ } from "../../chunk-4HW7YIBG.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-JRJZMY3G.js";
13
- import "../../chunk-6SNDDF7J.js";
14
- import "../../chunk-RO5VAPEI.js";
12
+ } from "../../chunk-6CT454W6.js";
13
+ import "../../chunk-OMOHQ5WA.js";
14
+ import "../../chunk-DV5EQ6QS.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-XRIKE6FE.js";
9
- import "../../chunk-JRJZMY3G.js";
10
- import "../../chunk-6SNDDF7J.js";
11
- import "../../chunk-RO5VAPEI.js";
8
+ } from "../../chunk-4HW7YIBG.js";
9
+ import "../../chunk-6CT454W6.js";
10
+ import "../../chunk-OMOHQ5WA.js";
11
+ import "../../chunk-DV5EQ6QS.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.1.5";
10
+ export declare const PLACEHOLDER_VERSION = "20.1.7";
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.1.5",
3
+ "version": "20.1.7",
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.1.5",
51
+ "@angular/compiler": "20.1.7",
52
52
  "typescript": ">=5.8 <5.9"
53
53
  },
54
54
  "peerDependenciesMeta": {
@@ -296,6 +296,7 @@ declare class Scope {
296
296
  private appendInputsOfSelectorlessNode;
297
297
  private appendOutputsOfSelectorlessNode;
298
298
  private appendDirectiveInputs;
299
+ private getDirectiveOp;
299
300
  private appendSelectorlessDirectives;
300
301
  private appendDeepSchemaChecks;
301
302
  private appendIcuExpressions;