@angular/compiler-cli 20.2.0 → 21.0.0-next.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.
@@ -69,6 +69,7 @@ var ErrorCode;
69
69
  ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES"] = 4003] = "CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES";
70
70
  ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL"] = 4004] = "CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL";
71
71
  ErrorCode2[ErrorCode2["CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK"] = 4005] = "CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK";
72
+ ErrorCode2[ErrorCode2["CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED"] = 4006] = "CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED";
72
73
  ErrorCode2[ErrorCode2["HOST_BINDING_PARSE_ERROR"] = 5001] = "HOST_BINDING_PARSE_ERROR";
73
74
  ErrorCode2[ErrorCode2["TEMPLATE_PARSE_ERROR"] = 5002] = "TEMPLATE_PARSE_ERROR";
74
75
  ErrorCode2[ErrorCode2["NGMODULE_INVALID_DECLARATION"] = 6001] = "NGMODULE_INVALID_DECLARATION";
@@ -20359,7 +20360,7 @@ var ComponentDecoratorHandler = class {
20359
20360
  diagnostics.push(makeResourceNotFoundError(styleUrl.url, styleUrl.expression, resourceType).toDiagnostic());
20360
20361
  }
20361
20362
  }
20362
- if (encapsulation === ViewEncapsulation2.ShadowDom && metadata.selector !== null) {
20363
+ if ((encapsulation === ViewEncapsulation2.ShadowDom || encapsulation === ViewEncapsulation2.IsolatedShadowDom) && metadata.selector !== null) {
20363
20364
  const selectorError = checkCustomElementSelectorForErrors(metadata.selector);
20364
20365
  if (selectorError !== null) {
20365
20366
  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";
458
+ var PLACEHOLDER_VERSION = "21.0.0-next.0";
459
459
  function wrapReference(wrapped) {
460
460
  return { value: wrapped, type: wrapped };
461
461
  }
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-6E57N6DK.js";
15
+ } from "./chunk-UGSARQ4S.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-SDVA75LV.js";
19
+ } from "./chunk-5Y5LZ46S.js";
20
20
 
21
21
  // packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
22
22
  import ts from "typescript";
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-JY5R6NDM.js";
7
+ } from "./chunk-N3VWF7MH.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-SDVA75LV.js";
95
+ } from "./chunk-5Y5LZ46S.js";
96
96
  import {
97
97
  LogicalFileSystem,
98
98
  absoluteFrom,
@@ -3992,7 +3992,7 @@ var NgCompiler = class _NgCompiler {
3992
3992
  this.emitDeclarationOnly = !!options.emitDeclarationOnly && !!options._experimentalAllowEmitDeclarationOnly;
3993
3993
  this.implicitStandaloneValue = this.angularCoreVersion === null || coreVersionSupportsFeature(this.angularCoreVersion, ">= 19.0.0");
3994
3994
  this.enableHmr = !!options["_enableHmr"];
3995
- this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options));
3995
+ this.constructionDiagnostics.push(...this.adapter.constructionDiagnostics, ...verifyCompatibleTypeCheckOptions(this.options), ...verifyEmitDeclarationOnly(this.options));
3996
3996
  this.currentProgram = inputProgram;
3997
3997
  this.closureCompilerEnabled = !!this.options.annotateForClosureCompiler;
3998
3998
  this.entryPoint = adapter.entryPoint !== null ? getSourceFileOrNull(inputProgram, adapter.entryPoint) : null;
@@ -4820,6 +4820,18 @@ ${allowedCategoryLabels.join("\n")}
4820
4820
  }
4821
4821
  }
4822
4822
  }
4823
+ function verifyEmitDeclarationOnly(options) {
4824
+ if (!options.emitDeclarationOnly || !!options._experimentalAllowEmitDeclarationOnly) {
4825
+ return [];
4826
+ }
4827
+ return [
4828
+ makeConfigDiagnostic({
4829
+ category: ts25.DiagnosticCategory.Error,
4830
+ code: ErrorCode.CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED,
4831
+ messageText: 'TS compiler option "emitDeclarationOnly" is not supported.'
4832
+ })
4833
+ ];
4834
+ }
4823
4835
  function makeConfigDiagnostic({ category, code, messageText }) {
4824
4836
  return {
4825
4837
  category,
package/bundles/index.js CHANGED
@@ -28,7 +28,7 @@ import {
28
28
  isTsDiagnostic,
29
29
  performCompilation,
30
30
  readConfiguration
31
- } from "./chunk-6E57N6DK.js";
31
+ } from "./chunk-UGSARQ4S.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-JY5R6NDM.js";
40
+ } from "./chunk-N3VWF7MH.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-SDVA75LV.js";
49
+ } from "./chunk-5Y5LZ46S.js";
50
50
  import "./chunk-I2BHWRAU.js";
51
51
  import {
52
52
  InvalidFileSystem,
@@ -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.0");
80
+ var VERSION = new Version("21.0.0-next.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-SDVA75LV.js";
16
+ } from "../chunk-5Y5LZ46S.js";
17
17
  import "../chunk-I2BHWRAU.js";
18
18
  import "../chunk-GWZQLAGK.js";
19
19
  import "../chunk-XYYEESKY.js";
@@ -4,8 +4,8 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "../chunk-JY5R6NDM.js";
8
- import "../chunk-SDVA75LV.js";
7
+ } from "../chunk-N3VWF7MH.js";
8
+ import "../chunk-5Y5LZ46S.js";
9
9
  import "../chunk-I2BHWRAU.js";
10
10
  import "../chunk-GWZQLAGK.js";
11
11
  import "../chunk-XYYEESKY.js";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-BBUN6IOV.js";
9
+ } from "../../chunk-L4DVGWMZ.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-6E57N6DK.js";
13
- import "../../chunk-JY5R6NDM.js";
14
- import "../../chunk-SDVA75LV.js";
12
+ } from "../../chunk-UGSARQ4S.js";
13
+ import "../../chunk-N3VWF7MH.js";
14
+ import "../../chunk-5Y5LZ46S.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-BBUN6IOV.js";
9
- import "../../chunk-6E57N6DK.js";
10
- import "../../chunk-JY5R6NDM.js";
11
- import "../../chunk-SDVA75LV.js";
8
+ } from "../../chunk-L4DVGWMZ.js";
9
+ import "../../chunk-UGSARQ4S.js";
10
+ import "../../chunk-N3VWF7MH.js";
11
+ import "../../chunk-5Y5LZ46S.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";
10
+ export declare const PLACEHOLDER_VERSION = "21.0.0-next.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",
3
+ "version": "21.0.0-next.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",
51
+ "@angular/compiler": "21.0.0-next.0",
52
52
  "typescript": ">=5.8 <6.0"
53
53
  },
54
54
  "peerDependenciesMeta": {
@@ -160,6 +160,7 @@ export declare enum ErrorCode {
160
160
  CONFIG_EXTENDED_DIAGNOSTICS_IMPLIES_STRICT_TEMPLATES = 4003,
161
161
  CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CATEGORY_LABEL = 4004,
162
162
  CONFIG_EXTENDED_DIAGNOSTICS_UNKNOWN_CHECK = 4005,
163
+ CONFIG_EMIT_DECLARATION_ONLY_UNSUPPORTED = 4006,
163
164
  /**
164
165
  * Raised when a host expression has a parse error, such as a host listener or host binding
165
166
  * expression containing a pipe.