@angular/compiler-cli 20.2.0-next.6 → 20.2.0-rc.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.
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-CUS65HPI.js";
15
+ } from "./chunk-ZLMD23VK.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -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.2.0-next.6";
458
+ var PLACEHOLDER_VERSION = "20.2.0-rc.0";
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-OQ7T4N5O.js";
19
+ } from "./chunk-O2J2FHVK.js";
20
20
 
21
21
  // packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
22
22
  import ts from "typescript";
@@ -13900,11 +13900,19 @@ var TcbDirectiveCtorOp = class extends TcbOp {
13900
13900
  return true;
13901
13901
  }
13902
13902
  execute() {
13903
+ const genericInputs = /* @__PURE__ */ new Map();
13903
13904
  const id = this.tcb.allocateId();
13905
+ let boundAttrs;
13906
+ let span;
13907
+ if (this.node instanceof TmplAstHostElement2) {
13908
+ boundAttrs = [];
13909
+ span = this.node.sourceSpan;
13910
+ } else {
13911
+ boundAttrs = getBoundAttributes(this.dir, this.node);
13912
+ span = this.node.startSourceSpan || this.node.sourceSpan;
13913
+ }
13904
13914
  addExpressionIdentifier(id, ExpressionIdentifier.DIRECTIVE);
13905
- addParseSpanInfo(id, this.node.startSourceSpan || this.node.sourceSpan);
13906
- const genericInputs = /* @__PURE__ */ new Map();
13907
- const boundAttrs = getBoundAttributes(this.dir, this.node);
13915
+ addParseSpanInfo(id, span);
13908
13916
  for (const attr of boundAttrs) {
13909
13917
  if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TmplAstTextAttribute2) {
13910
13918
  continue;
@@ -15124,20 +15132,20 @@ var Scope = class _Scope {
15124
15132
  }
15125
15133
  }
15126
15134
  appendDirectiveInputs(dir, node, dirMap) {
15127
- let directiveOp;
15128
- const host = this.tcb.env.reflector;
15129
- const dirRef = dir.ref;
15130
- if (!dir.isGeneric) {
15131
- directiveOp = new TcbNonGenericDirectiveTypeOp(this.tcb, this, node, dir);
15132
- } else if (!requiresInlineTypeCtor(dirRef.node, host, this.tcb.env) || this.tcb.env.config.useInlineTypeConstructors) {
15133
- directiveOp = new TcbDirectiveCtorOp(this.tcb, this, node, dir);
15134
- } else {
15135
- directiveOp = new TcbGenericDirectiveTypeWithAnyParamsOp(this.tcb, this, node, dir);
15136
- }
15135
+ const directiveOp = this.getDirectiveOp(dir, node);
15137
15136
  const dirIndex = this.opQueue.push(directiveOp) - 1;
15138
15137
  dirMap.set(dir, dirIndex);
15139
15138
  this.opQueue.push(new TcbDirectiveInputsOp(this.tcb, this, node, dir));
15140
15139
  }
15140
+ getDirectiveOp(dir, node) {
15141
+ const dirRef = dir.ref;
15142
+ if (!dir.isGeneric) {
15143
+ return new TcbNonGenericDirectiveTypeOp(this.tcb, this, node, dir);
15144
+ } else if (!requiresInlineTypeCtor(dirRef.node, this.tcb.env.reflector, this.tcb.env) || this.tcb.env.config.useInlineTypeConstructors) {
15145
+ return new TcbDirectiveCtorOp(this.tcb, this, node, dir);
15146
+ }
15147
+ return new TcbGenericDirectiveTypeWithAnyParamsOp(this.tcb, this, node, dir);
15148
+ }
15141
15149
  appendSelectorlessDirectives(node) {
15142
15150
  for (const directive of node.directives) {
15143
15151
  if (!this.tcb.boundTarget.referencedDirectiveExists(directive.name)) {
@@ -15262,7 +15270,7 @@ var Scope = class _Scope {
15262
15270
  if (directives !== null && directives.length > 0) {
15263
15271
  const directiveOpMap = /* @__PURE__ */ new Map();
15264
15272
  for (const directive of directives) {
15265
- const directiveOp = new TcbNonGenericDirectiveTypeOp(this.tcb, this, node, directive);
15273
+ const directiveOp = this.getDirectiveOp(directive, node);
15266
15274
  directiveOpMap.set(directive, this.opQueue.push(directiveOp) - 1);
15267
15275
  }
15268
15276
  this.directiveOpMap.set(node, directiveOpMap);
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-FX2ZPVFW.js";
7
+ } from "./chunk-LRXHLPJA.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-OQ7T4N5O.js";
95
+ } from "./chunk-O2J2FHVK.js";
96
96
  import {
97
97
  LogicalFileSystem,
98
98
  absoluteFrom,
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-CUS65HPI.js";
31
+ } from "./chunk-ZLMD23VK.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-FX2ZPVFW.js";
40
+ } from "./chunk-LRXHLPJA.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-OQ7T4N5O.js";
49
+ } from "./chunk-O2J2FHVK.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.2.0-next.6");
80
+ var VERSION = new Version("20.2.0-rc.0");
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-OQ7T4N5O.js";
16
+ } from "../chunk-O2J2FHVK.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-FX2ZPVFW.js";
8
- import "../chunk-OQ7T4N5O.js";
7
+ } from "../chunk-LRXHLPJA.js";
8
+ import "../chunk-O2J2FHVK.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-T7J4JWJ3.js";
9
+ } from "../../chunk-B64MJ47E.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-CUS65HPI.js";
13
- import "../../chunk-FX2ZPVFW.js";
14
- import "../../chunk-OQ7T4N5O.js";
12
+ } from "../../chunk-ZLMD23VK.js";
13
+ import "../../chunk-LRXHLPJA.js";
14
+ import "../../chunk-O2J2FHVK.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-T7J4JWJ3.js";
9
- import "../../chunk-CUS65HPI.js";
10
- import "../../chunk-FX2ZPVFW.js";
11
- import "../../chunk-OQ7T4N5O.js";
8
+ } from "../../chunk-B64MJ47E.js";
9
+ import "../../chunk-ZLMD23VK.js";
10
+ import "../../chunk-LRXHLPJA.js";
11
+ import "../../chunk-O2J2FHVK.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.2.0-next.6";
10
+ export declare const PLACEHOLDER_VERSION = "20.2.0-rc.0";
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.2.0-next.6",
3
+ "version": "20.2.0-rc.0",
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.2.0-next.6",
51
+ "@angular/compiler": "20.2.0-rc.0",
52
52
  "typescript": ">=5.8 <6.0"
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;