@angular/compiler-cli 20.2.4 → 20.3.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.
@@ -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.4";
458
+ var PLACEHOLDER_VERSION = "20.3.0-rc.0";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -2804,7 +2804,7 @@ var StandaloneComponentScopeReader = class {
2804
2804
  };
2805
2805
 
2806
2806
  // packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.js
2807
- import { ASTWithSource as ASTWithSource2, BindingType, Interpolation, PrefixNot, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
2807
+ import { ASTWithSource as ASTWithSource2, BindingType, Interpolation, PrefixNot, PropertyRead as PropertyRead2, TmplAstBoundAttribute, TmplAstIfBlock, TmplAstSwitchBlock } from "@angular/compiler";
2808
2808
 
2809
2809
  // packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.js
2810
2810
  import ts18 from "typescript";
@@ -2912,6 +2912,16 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
2912
2912
  ) {
2913
2913
  return buildDiagnosticForSignal(ctx, nodeAst, component);
2914
2914
  }
2915
+ } else if (node instanceof TmplAstIfBlock) {
2916
+ return node.branches.map((branch) => branch.expression).filter((expr) => expr instanceof ASTWithSource2).map((expr) => {
2917
+ const ast = expr.ast;
2918
+ return ast instanceof PrefixNot ? ast.expression : ast;
2919
+ }).filter((ast) => ast instanceof PropertyRead2).flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
2920
+ } else if (node instanceof TmplAstSwitchBlock && node.expression instanceof ASTWithSource2) {
2921
+ const expression = node.expression.ast instanceof PrefixNot ? node.expression.ast.expression : node.expression.ast;
2922
+ if (expression instanceof PropertyRead2) {
2923
+ return buildDiagnosticForSignal(ctx, expression, component);
2924
+ }
2915
2925
  }
2916
2926
  return [];
2917
2927
  }
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-6UJHDDQR.js";
15
+ } from "./chunk-ES5JHT4S.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-6UJHDDQR.js";
31
+ } from "./chunk-ES5JHT4S.js";
32
32
  import {
33
33
  ConsoleLogger,
34
34
  LogLevel
@@ -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.2.4");
80
+ var VERSION = new Version("20.3.0-rc.0");
81
81
 
82
82
  // packages/compiler-cli/private/tooling.js
83
83
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -6,10 +6,10 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-UDLBQFEE.js";
9
+ } from "../../chunk-OLESUCWZ.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-6UJHDDQR.js";
12
+ } from "../../chunk-ES5JHT4S.js";
13
13
  import "../../chunk-6DF2AWLX.js";
14
14
  import "../../chunk-PVSLT73R.js";
15
15
  import "../../chunk-I2BHWRAU.js";
@@ -5,8 +5,8 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-UDLBQFEE.js";
9
- import "../../chunk-6UJHDDQR.js";
8
+ } from "../../chunk-OLESUCWZ.js";
9
+ import "../../chunk-ES5JHT4S.js";
10
10
  import "../../chunk-6DF2AWLX.js";
11
11
  import "../../chunk-PVSLT73R.js";
12
12
  import "../../chunk-I2BHWRAU.js";
@@ -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.4";
10
+ export declare const PLACEHOLDER_VERSION = "20.3.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.4",
3
+ "version": "20.3.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.4",
51
+ "@angular/compiler": "20.3.0-rc.0",
52
52
  "typescript": ">=5.8 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {