@angular/compiler-cli 20.1.6 → 20.1.8

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.
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-6SNDDF7J.js";
7
+ } from "./chunk-FLJVPTCP.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-GBUL6DZM.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.6";
458
+ var PLACEHOLDER_VERSION = "20.1.8";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -16,7 +16,7 @@ import {
16
16
  tryParseSignalInputMapping,
17
17
  tryParseSignalModelMapping,
18
18
  tryParseSignalQueryFromInitializer
19
- } from "./chunk-RO5VAPEI.js";
19
+ } from "./chunk-GBUL6DZM.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);
@@ -7553,7 +7553,7 @@ var SemanticDepGraph = class {
7553
7553
  files = /* @__PURE__ */ new Map();
7554
7554
  // Note: the explicit type annotation is used to work around a CI failure on Windows:
7555
7555
  // error TS2742: The inferred type of 'symbolByDecl' cannot be named without a reference to
7556
- // '../../../../../../../external/angular/node_modules/typescript/lib/typescript'. This is likely
7556
+ // '../../../../../../../external/_main/node_modules/typescript/lib/typescript'. This is likely
7557
7557
  // not portable. A type annotation is necessary.
7558
7558
  symbolByDecl = /* @__PURE__ */ new Map();
7559
7559
  /**
@@ -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);
@@ -19520,7 +19528,7 @@ var PotentialTopLevelReadsVisitor = class extends o3.RecursiveAstVisitor {
19520
19528
  if (ts70.isCallExpression(parent)) {
19521
19529
  return parent.expression === node || parent.arguments.includes(node);
19522
19530
  }
19523
- if (ts70.isExpressionStatement(parent) || ts70.isPropertyAccessExpression(parent) || ts70.isComputedPropertyName(parent) || ts70.isTemplateSpan(parent) || ts70.isSpreadAssignment(parent) || ts70.isSpreadElement(parent) || ts70.isAwaitExpression(parent) || ts70.isNonNullExpression(parent) || ts70.isIfStatement(parent) || ts70.isDoStatement(parent) || ts70.isWhileStatement(parent) || ts70.isSwitchStatement(parent) || ts70.isCaseClause(parent) || ts70.isThrowStatement(parent) || ts70.isNewExpression(parent)) {
19531
+ if (ts70.isExpressionStatement(parent) || ts70.isPropertyAccessExpression(parent) || ts70.isComputedPropertyName(parent) || ts70.isTemplateSpan(parent) || ts70.isSpreadAssignment(parent) || ts70.isSpreadElement(parent) || ts70.isAwaitExpression(parent) || ts70.isNonNullExpression(parent) || ts70.isIfStatement(parent) || ts70.isDoStatement(parent) || ts70.isWhileStatement(parent) || ts70.isSwitchStatement(parent) || ts70.isCaseClause(parent) || ts70.isThrowStatement(parent) || ts70.isNewExpression(parent) || ts70.isExpressionWithTypeArguments(parent)) {
19524
19532
  return parent.expression === node;
19525
19533
  }
19526
19534
  if (ts70.isArrayLiteralExpression(parent)) {
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-JRJZMY3G.js";
15
+ } from "./chunk-7MSP2PVL.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
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-7MSP2PVL.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-FLJVPTCP.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-GBUL6DZM.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.6");
80
+ var VERSION = new Version("20.1.8");
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-GBUL6DZM.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-FLJVPTCP.js";
8
+ import "../chunk-GBUL6DZM.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-S7GCHKIU.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-7MSP2PVL.js";
13
+ import "../../chunk-FLJVPTCP.js";
14
+ import "../../chunk-GBUL6DZM.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-S7GCHKIU.js";
9
+ import "../../chunk-7MSP2PVL.js";
10
+ import "../../chunk-FLJVPTCP.js";
11
+ import "../../chunk-GBUL6DZM.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.6";
10
+ export declare const PLACEHOLDER_VERSION = "20.1.8";
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.6",
3
+ "version": "20.1.8",
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.6",
51
+ "@angular/compiler": "20.1.8",
52
52
  "typescript": ">=5.8 <5.9"
53
53
  },
54
54
  "peerDependenciesMeta": {
@@ -11,6 +11,8 @@ export interface EntryCollection {
11
11
  normalizedModuleName: string;
12
12
  moduleLabel: string;
13
13
  entries: DocEntry[];
14
+ repo: string;
15
+ symbols?: string[][];
14
16
  }
15
17
  /** Type of top-level documentation entry. */
16
18
  export declare enum EntryType {
@@ -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;