@angular/compiler-cli 20.0.0 → 20.0.1

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.
@@ -311,7 +311,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
311
311
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/linker/src/file_linker/partial_linkers/util.mjs
312
312
  import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
313
313
  import semver from "semver";
314
- var PLACEHOLDER_VERSION = "20.0.0";
314
+ var PLACEHOLDER_VERSION = "20.0.1";
315
315
  function wrapReference(wrapped) {
316
316
  return { value: wrapped, type: wrapped };
317
317
  }
@@ -12,7 +12,7 @@ import {
12
12
  formatDiagnostics,
13
13
  performCompilation,
14
14
  readConfiguration
15
- } from "./chunk-YZVRRB6E.js";
15
+ } from "./chunk-KGJOQ7ZK.js";
16
16
 
17
17
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
18
18
  import ts2 from "typescript";
@@ -363,4 +363,4 @@ export {
363
363
  * Use of this source code is governed by an MIT-style license that can be
364
364
  * found in the LICENSE file at https://angular.dev/license
365
365
  */
366
- //# sourceMappingURL=chunk-A7TLTAA4.js.map
366
+ //# sourceMappingURL=chunk-C5GIHHVB.js.map
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-T36IFLGD.js";
7
+ } from "./chunk-QAGJD3X3.js";
8
8
  import {
9
9
  AbsoluteModuleStrategy,
10
10
  AliasStrategy,
@@ -85,7 +85,7 @@ import {
85
85
  toUnredirectedSourceFile,
86
86
  tryParseInitializerApi,
87
87
  untagAllTsFiles
88
- } from "./chunk-TSBVO2TY.js";
88
+ } from "./chunk-3TXROOKD.js";
89
89
  import {
90
90
  ActivePerfRecorder,
91
91
  DelegatingPerfRecorder,
@@ -5166,4 +5166,4 @@ export {
5166
5166
  * Use of this source code is governed by an MIT-style license that can be
5167
5167
  * found in the LICENSE file at https://angular.dev/license
5168
5168
  */
5169
- //# sourceMappingURL=chunk-YZVRRB6E.js.map
5169
+ //# sourceMappingURL=chunk-KGJOQ7ZK.js.map
@@ -4,7 +4,7 @@
4
4
 
5
5
  import {
6
6
  angularJitApplicationTransform
7
- } from "./chunk-T36IFLGD.js";
7
+ } from "./chunk-QAGJD3X3.js";
8
8
 
9
9
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/private/tooling.mjs
10
10
  var GLOBAL_DEFS_FOR_TERSER = {
@@ -31,4 +31,4 @@ export {
31
31
  * Use of this source code is governed by an MIT-style license that can be
32
32
  * found in the LICENSE file at https://angular.dev/license
33
33
  */
34
- //# sourceMappingURL=chunk-5PLBB4J5.js.map
34
+ //# sourceMappingURL=chunk-NODL47CE.js.map
@@ -16,7 +16,7 @@ import {
16
16
  tryParseSignalInputMapping,
17
17
  tryParseSignalModelMapping,
18
18
  tryParseSignalQueryFromInitializer
19
- } from "./chunk-TSBVO2TY.js";
19
+ } from "./chunk-3TXROOKD.js";
20
20
 
21
21
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
22
22
  import ts from "typescript";
@@ -529,4 +529,4 @@ export {
529
529
  * Use of this source code is governed by an MIT-style license that can be
530
530
  * found in the LICENSE file at https://angular.dev/license
531
531
  */
532
- //# sourceMappingURL=chunk-T36IFLGD.js.map
532
+ //# sourceMappingURL=chunk-QAGJD3X3.js.map
package/bundles/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  GLOBAL_DEFS_FOR_TERSER,
7
7
  GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
8
8
  constructorParametersDownlevelTransform
9
- } from "./chunk-5PLBB4J5.js";
9
+ } from "./chunk-NODL47CE.js";
10
10
  import {
11
11
  DEFAULT_ERROR_CODE,
12
12
  DecoratorType,
@@ -33,12 +33,12 @@ import {
33
33
  isTsDiagnostic,
34
34
  performCompilation,
35
35
  readConfiguration
36
- } from "./chunk-YZVRRB6E.js";
36
+ } from "./chunk-KGJOQ7ZK.js";
37
37
  import {
38
38
  angularJitApplicationTransform,
39
39
  getDownlevelDecoratorsTransform,
40
40
  getInitializerApiJitTransform
41
- } from "./chunk-T36IFLGD.js";
41
+ } from "./chunk-QAGJD3X3.js";
42
42
  import {
43
43
  ConsoleLogger,
44
44
  LogLevel
@@ -49,7 +49,7 @@ import {
49
49
  TsCreateProgramDriver,
50
50
  isLocalCompilationDiagnostics,
51
51
  ngErrorCode
52
- } from "./chunk-TSBVO2TY.js";
52
+ } from "./chunk-3TXROOKD.js";
53
53
  import "./chunk-M3WWDK6S.js";
54
54
  import {
55
55
  ActivePerfRecorder,
@@ -84,7 +84,7 @@ import "./chunk-KPQ72R34.js";
84
84
 
85
85
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/version.mjs
86
86
  import { Version } from "@angular/compiler";
87
- var VERSION = new Version("20.0.0");
87
+ var VERSION = new Version("20.0.1");
88
88
 
89
89
  // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/tsc_plugin.mjs
90
90
  var NgTscPlugin = class {
@@ -13,7 +13,7 @@ import {
13
13
  TypeScriptReflectionHost,
14
14
  createForwardRefResolver,
15
15
  reflectObjectLiteral
16
- } from "../chunk-TSBVO2TY.js";
16
+ } from "../chunk-3TXROOKD.js";
17
17
  import "../chunk-M3WWDK6S.js";
18
18
  import "../chunk-WUCT7QTW.js";
19
19
  import "../chunk-3AHGFMNS.js";
@@ -6,9 +6,9 @@ import {
6
6
  GLOBAL_DEFS_FOR_TERSER,
7
7
  GLOBAL_DEFS_FOR_TERSER_WITH_AOT,
8
8
  constructorParametersDownlevelTransform
9
- } from "../chunk-5PLBB4J5.js";
10
- import "../chunk-T36IFLGD.js";
11
- import "../chunk-TSBVO2TY.js";
9
+ } from "../chunk-NODL47CE.js";
10
+ import "../chunk-QAGJD3X3.js";
11
+ import "../chunk-3TXROOKD.js";
12
12
  import "../chunk-M3WWDK6S.js";
13
13
  import "../chunk-WUCT7QTW.js";
14
14
  import "../chunk-3AHGFMNS.js";
@@ -6,12 +6,12 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-A7TLTAA4.js";
9
+ } from "../../chunk-C5GIHHVB.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-YZVRRB6E.js";
13
- import "../../chunk-T36IFLGD.js";
14
- import "../../chunk-TSBVO2TY.js";
12
+ } from "../../chunk-KGJOQ7ZK.js";
13
+ import "../../chunk-QAGJD3X3.js";
14
+ import "../../chunk-3TXROOKD.js";
15
15
  import "../../chunk-M3WWDK6S.js";
16
16
  import "../../chunk-WUCT7QTW.js";
17
17
  import {
@@ -5,10 +5,10 @@
5
5
 
6
6
  import {
7
7
  main
8
- } from "../../chunk-A7TLTAA4.js";
9
- import "../../chunk-YZVRRB6E.js";
10
- import "../../chunk-T36IFLGD.js";
11
- import "../../chunk-TSBVO2TY.js";
8
+ } from "../../chunk-C5GIHHVB.js";
9
+ import "../../chunk-KGJOQ7ZK.js";
10
+ import "../../chunk-QAGJD3X3.js";
11
+ import "../../chunk-3TXROOKD.js";
12
12
  import "../../chunk-M3WWDK6S.js";
13
13
  import "../../chunk-WUCT7QTW.js";
14
14
  import {
package/index.d.ts CHANGED
@@ -11,6 +11,6 @@ export { NgTscPlugin, PluginCompilerHost } from './src/ngtsc/tsc_plugin';
11
11
  export { NgtscProgram } from './src/ngtsc/program';
12
12
  export { OptimizeFor } from './src/ngtsc/typecheck/api';
13
13
  export { ConsoleLogger, Logger, LogLevel } from './src/ngtsc/logging';
14
- export { NodeJSFileSystem, absoluteFrom } from './src/ngtsc/file_system';
14
+ export { NodeJSFileSystem, absoluteFrom, FileSystem, AbsoluteFsPath } from './src/ngtsc/file_system';
15
15
  export * from './src/ngtsc/docs';
16
16
  export { isLocalCompilationDiagnostics, ErrorCode, ngErrorCode } from './src/ngtsc/diagnostics';
@@ -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.0.0";
10
+ export declare const PLACEHOLDER_VERSION = "20.0.1";
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.0.0",
3
+ "version": "20.0.1",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -49,10 +49,10 @@
49
49
  "convert-source-map": "^1.5.1",
50
50
  "semver": "^7.0.0",
51
51
  "tslib": "^2.3.0",
52
- "yargs": "^17.2.1"
52
+ "yargs": "^18.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "@angular/compiler": "20.0.0",
55
+ "@angular/compiler": "20.0.1",
56
56
  "typescript": ">=5.8 <5.9"
57
57
  },
58
58
  "peerDependenciesMeta": {
@@ -60,9 +60,6 @@
60
60
  "optional": true
61
61
  }
62
62
  },
63
- "devDependencies": {
64
- "@angular/compiler": "workspace:*"
65
- },
66
63
  "repository": {
67
64
  "type": "git",
68
65
  "url": "https://github.com/angular/angular.git",
@@ -325,6 +325,30 @@ export declare enum ErrorCode {
325
325
  * not match any inputs/outputs of the directive.
326
326
  */
327
327
  UNCLAIMED_DIRECTIVE_BINDING = 8018,
328
+ /**
329
+ * An `@defer` block with an implicit trigger does not have a placeholder, for example:
330
+ *
331
+ * ```
332
+ * @defer(on viewport) {
333
+ * Hello
334
+ * }
335
+ * ```
336
+ */
337
+ DEFER_IMPLICIT_TRIGGER_MISSING_PLACEHOLDER = 8019,
338
+ /**
339
+ * The `@placeholder` for an implicit `@defer` trigger is not set up correctly, for example:
340
+ *
341
+ * ```
342
+ * @defer(on viewport) {
343
+ * Hello
344
+ * } @placeholder {
345
+ * <!-- Multiple root nodes. -->
346
+ * <button></button>
347
+ * <div></div>
348
+ * }
349
+ * ```
350
+ */
351
+ DEFER_IMPLICIT_TRIGGER_INVALID_PLACEHOLDER = 8020,
328
352
  /**
329
353
  * A two way binding in a template has an incorrect syntax,
330
354
  * parentheses outside brackets. For example:
@@ -119,6 +119,15 @@ export interface OutOfBandDiagnosticRecorder {
119
119
  * @param node Node declaring the binding.
120
120
  */
121
121
  unclaimedDirectiveBinding(id: TypeCheckId, directive: TmplAstDirective, node: TmplAstBoundAttribute | TmplAstTextAttribute | TmplAstBoundEvent): void;
122
+ /**
123
+ * Reports that an implicit deferred trigger is set on a block that does not have a placeholder.
124
+ */
125
+ deferImplicitTriggerMissingPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
126
+ /**
127
+ * Reports that an implicit deferred trigger is set on a block whose placeholder is not set up
128
+ * correctly (e.g. more than one root node).
129
+ */
130
+ deferImplicitTriggerInvalidPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
122
131
  }
123
132
  export declare class OutOfBandDiagnosticRecorderImpl implements OutOfBandDiagnosticRecorder {
124
133
  private resolver;
@@ -149,4 +158,6 @@ export declare class OutOfBandDiagnosticRecorderImpl implements OutOfBandDiagnos
149
158
  missingNamedTemplateDependency(id: TypeCheckId, node: TmplAstComponent | TmplAstDirective): void;
150
159
  incorrectTemplateDependencyType(id: TypeCheckId, node: TmplAstComponent | TmplAstDirective): void;
151
160
  unclaimedDirectiveBinding(id: TypeCheckId, directive: TmplAstDirective, node: TmplAstBoundAttribute | TmplAstTextAttribute | TmplAstBoundEvent): void;
161
+ deferImplicitTriggerMissingPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
162
+ deferImplicitTriggerInvalidPlaceholder(id: TypeCheckId, trigger: TmplAstHoverDeferredTrigger | TmplAstInteractionDeferredTrigger | TmplAstViewportDeferredTrigger): void;
152
163
  }
@@ -301,7 +301,7 @@ declare class Scope {
301
301
  private appendComponentNode;
302
302
  private appendDeferredBlock;
303
303
  private appendDeferredTriggers;
304
- private appendReferenceBasedDeferredTrigger;
304
+ private validateReferenceBasedDeferredTrigger;
305
305
  /** Reports a diagnostic if there are any `@let` declarations that conflict with a node. */
306
306
  private static checkConflictingLet;
307
307
  }