@angular/compiler-cli 20.2.0-next.4 → 20.2.0-next.5

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.
@@ -17803,11 +17803,11 @@ function getClassDeclFromSymbol(symbol, checker) {
17803
17803
  return null;
17804
17804
  }
17805
17805
  if (ts64.isExportAssignment(decl)) {
17806
- const symbol2 = checker.getTypeAtLocation(decl.expression).symbol;
17806
+ const symbol2 = checker.getTypeAtLocation(decl.expression).getSymbol();
17807
17807
  return getClassDeclFromSymbol(symbol2, checker);
17808
17808
  }
17809
17809
  if (ts64.isExportSpecifier(decl)) {
17810
- const symbol2 = checker.getTypeAtLocation(decl).symbol;
17810
+ const symbol2 = checker.getTypeAtLocation(decl).getSymbol();
17811
17811
  return getClassDeclFromSymbol(symbol2, checker);
17812
17812
  }
17813
17813
  if (isNamedClassDeclaration(decl)) {
@@ -17837,7 +17837,7 @@ function getTheElementTagDeprecatedSuggestionDiagnostics(shimPath, program, file
17837
17837
  for (const tsDiag of diags) {
17838
17838
  const diagNode = getTokenAtPosition(sourceFile, tsDiag.start);
17839
17839
  const nodeType = typeChecker.getTypeAtLocation(diagNode);
17840
- const nodeSymbolDeclarations = nodeType.symbol.declarations;
17840
+ const nodeSymbolDeclarations = nodeType.getSymbol()?.declarations;
17841
17841
  const decl = nodeSymbolDeclarations !== void 0 && nodeSymbolDeclarations.length > 0 ? nodeSymbolDeclarations[0] : void 0;
17842
17842
  if (decl === void 0 || !ts64.isClassDeclaration(decl)) {
17843
17843
  continue;
@@ -17854,7 +17854,7 @@ function getTheElementTagDeprecatedSuggestionDiagnostics(shimPath, program, file
17854
17854
  const templateDiagnostics = [];
17855
17855
  for (const directive of directiveNodesInTcb) {
17856
17856
  const directiveType = typeChecker.getTypeAtLocation(directive);
17857
- const directiveSymbolDeclarations = directiveType.symbol.declarations;
17857
+ const directiveSymbolDeclarations = directiveType.getSymbol()?.declarations;
17858
17858
  const decl = directiveSymbolDeclarations !== void 0 && directiveSymbolDeclarations.length > 0 ? directiveSymbolDeclarations[0] : void 0;
17859
17859
  if (decl === void 0) {
17860
17860
  continue;
@@ -20221,7 +20221,7 @@ var ComponentDecoratorHandler = class {
20221
20221
  diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.expression, resourceType).toDiagnostic());
20222
20222
  }
20223
20223
  }
20224
- if (encapsulation === ViewEncapsulation2.ShadowDom && metadata.selector !== null) {
20224
+ if ((encapsulation === ViewEncapsulation2.ShadowDom || encapsulation === ViewEncapsulation2.IsolatedShadowDom) && metadata.selector !== null) {
20225
20225
  const selectorError = checkCustomElementSelectorForErrors(metadata.selector);
20226
20226
  if (selectorError !== null) {
20227
20227
  if (diagnostics === void 0) {
@@ -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.4";
458
+ var PLACEHOLDER_VERSION = "20.2.0-next.5";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-YY2EEYJQ.js";
7
+ } from "./chunk-WLT4GJPA.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-UJ4H6WFJ.js";
95
+ } from "./chunk-7DWCEZ6T.js";
96
96
  import {
97
97
  LogicalFileSystem,
98
98
  absoluteFrom,
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-5F2CCT3V.js";
15
+ } from "./chunk-EVMG2NVT.js";
16
16
 
17
17
  // packages/compiler-cli/src/main.js
18
18
  import ts2 from "typescript";
@@ -16,7 +16,7 @@ import {
16
16
  tryParseSignalInputMapping,
17
17
  tryParseSignalModelMapping,
18
18
  tryParseSignalQueryFromInitializer
19
- } from "./chunk-UJ4H6WFJ.js";
19
+ } from "./chunk-7DWCEZ6T.js";
20
20
 
21
21
  // packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
22
22
  import ts from "typescript";
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-5F2CCT3V.js";
31
+ } from "./chunk-EVMG2NVT.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-YY2EEYJQ.js";
40
+ } from "./chunk-WLT4GJPA.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-UJ4H6WFJ.js";
49
+ } from "./chunk-7DWCEZ6T.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.4");
80
+ var VERSION = new Version("20.2.0-next.5");
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-UJ4H6WFJ.js";
16
+ } from "../chunk-7DWCEZ6T.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-YY2EEYJQ.js";
8
- import "../chunk-UJ4H6WFJ.js";
7
+ } from "../chunk-WLT4GJPA.js";
8
+ import "../chunk-7DWCEZ6T.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-45U5FWGN.js";
9
+ } from "../../chunk-O4DJC7UC.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-5F2CCT3V.js";
13
- import "../../chunk-YY2EEYJQ.js";
14
- import "../../chunk-UJ4H6WFJ.js";
12
+ } from "../../chunk-EVMG2NVT.js";
13
+ import "../../chunk-WLT4GJPA.js";
14
+ import "../../chunk-7DWCEZ6T.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-45U5FWGN.js";
9
- import "../../chunk-5F2CCT3V.js";
10
- import "../../chunk-YY2EEYJQ.js";
11
- import "../../chunk-UJ4H6WFJ.js";
8
+ } from "../../chunk-O4DJC7UC.js";
9
+ import "../../chunk-EVMG2NVT.js";
10
+ import "../../chunk-WLT4GJPA.js";
11
+ import "../../chunk-7DWCEZ6T.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.4";
10
+ export declare const PLACEHOLDER_VERSION = "20.2.0-next.5";
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.4",
3
+ "version": "20.2.0-next.5",
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.4",
51
+ "@angular/compiler": "20.2.0-next.5",
52
52
  "typescript": ">=5.8 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {