@angular/compiler-cli 20.0.0 → 20.0.2

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.
Files changed (48) hide show
  1. package/bundles/{chunk-U5SKOFKE.js → chunk-3NKMA2JO.js} +2 -2
  2. package/bundles/{chunk-TSBVO2TY.js → chunk-4RDNOL2U.js} +399 -173
  3. package/bundles/chunk-4RDNOL2U.js.map +6 -0
  4. package/bundles/{chunk-YZVRRB6E.js → chunk-5K43KTXL.js} +86 -88
  5. package/bundles/chunk-5K43KTXL.js.map +6 -0
  6. package/bundles/{chunk-5PLBB4J5.js → chunk-LKPFTZAW.js} +3 -3
  7. package/bundles/{chunk-5PLBB4J5.js.map → chunk-LKPFTZAW.js.map} +1 -1
  8. package/bundles/{chunk-M3WWDK6S.js → chunk-LMRFLQ2K.js} +3 -3
  9. package/bundles/{chunk-4OIPE63R.js → chunk-LYJARAHL.js} +31 -31
  10. package/bundles/{chunk-4OIPE63R.js.map → chunk-LYJARAHL.js.map} +1 -1
  11. package/bundles/{chunk-NVYT6OPE.js → chunk-PML5JK7B.js} +7 -7
  12. package/bundles/{chunk-H5Y7P5GQ.js → chunk-SEKYV57I.js} +3 -3
  13. package/bundles/{chunk-3AHGFMNS.js → chunk-TPEB2IXF.js} +7 -7
  14. package/bundles/{chunk-A7TLTAA4.js → chunk-XQCMDSKE.js} +5 -5
  15. package/bundles/{chunk-A7TLTAA4.js.map → chunk-XQCMDSKE.js.map} +1 -1
  16. package/bundles/{chunk-T36IFLGD.js → chunk-ZY4GZNHC.js} +11 -11
  17. package/bundles/index.js +21 -23
  18. package/bundles/index.js.map +2 -2
  19. package/bundles/linker/babel/index.js +12 -12
  20. package/bundles/linker/babel/index.js.map +1 -1
  21. package/bundles/linker/index.js +3 -3
  22. package/bundles/private/localize.js +4 -4
  23. package/bundles/private/migrations.js +4 -5
  24. package/bundles/private/tooling.js +6 -7
  25. package/bundles/src/bin/ng_xi18n.js +10 -11
  26. package/bundles/src/bin/ng_xi18n.js.map +2 -2
  27. package/bundles/src/bin/ngc.js +8 -9
  28. package/bundles/src/bin/ngc.js.map +2 -2
  29. package/index.d.ts +1 -1
  30. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  31. package/package.json +4 -11
  32. package/src/ngtsc/diagnostics/src/error_code.d.ts +24 -0
  33. package/src/ngtsc/typecheck/src/oob.d.ts +11 -0
  34. package/src/ngtsc/typecheck/src/type_check_block.d.ts +1 -1
  35. package/bundles/chunk-TSBVO2TY.js.map +0 -6
  36. package/bundles/chunk-WUCT7QTW.js +0 -216
  37. package/bundles/chunk-WUCT7QTW.js.map +0 -6
  38. package/bundles/chunk-YZVRRB6E.js.map +0 -6
  39. package/bundles/private/bazel.js +0 -19
  40. package/bundles/private/bazel.js.map +0 -6
  41. package/private/babel.d.ts +0 -28
  42. package/private/bazel.d.ts +0 -12
  43. /package/bundles/{chunk-U5SKOFKE.js.map → chunk-3NKMA2JO.js.map} +0 -0
  44. /package/bundles/{chunk-M3WWDK6S.js.map → chunk-LMRFLQ2K.js.map} +0 -0
  45. /package/bundles/{chunk-NVYT6OPE.js.map → chunk-PML5JK7B.js.map} +0 -0
  46. /package/bundles/{chunk-H5Y7P5GQ.js.map → chunk-SEKYV57I.js.map} +0 -0
  47. /package/bundles/{chunk-3AHGFMNS.js.map → chunk-TPEB2IXF.js.map} +0 -0
  48. /package/bundles/{chunk-T36IFLGD.js.map → chunk-ZY4GZNHC.js.map} +0 -0
@@ -6,13 +6,12 @@ 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";
12
- import "../chunk-M3WWDK6S.js";
13
- import "../chunk-WUCT7QTW.js";
14
- import "../chunk-3AHGFMNS.js";
15
- import "../chunk-U5SKOFKE.js";
9
+ } from "../chunk-LKPFTZAW.js";
10
+ import "../chunk-ZY4GZNHC.js";
11
+ import "../chunk-4RDNOL2U.js";
12
+ import "../chunk-LMRFLQ2K.js";
13
+ import "../chunk-TPEB2IXF.js";
14
+ import "../chunk-3NKMA2JO.js";
16
15
  import "../chunk-KPQ72R34.js";
17
16
  export {
18
17
  GLOBAL_DEFS_FOR_TERSER,
@@ -6,26 +6,25 @@
6
6
  import {
7
7
  main,
8
8
  readCommandLineAndConfiguration
9
- } from "../../chunk-A7TLTAA4.js";
9
+ } from "../../chunk-XQCMDSKE.js";
10
10
  import {
11
11
  EmitFlags
12
- } from "../../chunk-YZVRRB6E.js";
13
- import "../../chunk-T36IFLGD.js";
14
- import "../../chunk-TSBVO2TY.js";
15
- import "../../chunk-M3WWDK6S.js";
16
- import "../../chunk-WUCT7QTW.js";
12
+ } from "../../chunk-5K43KTXL.js";
13
+ import "../../chunk-ZY4GZNHC.js";
14
+ import "../../chunk-4RDNOL2U.js";
15
+ import "../../chunk-LMRFLQ2K.js";
17
16
  import {
18
17
  setFileSystem
19
- } from "../../chunk-3AHGFMNS.js";
18
+ } from "../../chunk-TPEB2IXF.js";
20
19
  import {
21
20
  NodeJSFileSystem
22
- } from "../../chunk-U5SKOFKE.js";
21
+ } from "../../chunk-3NKMA2JO.js";
23
22
  import "../../chunk-KPQ72R34.js";
24
23
 
25
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.mjs
24
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js
26
25
  import "reflect-metadata";
27
26
 
28
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/extract_i18n.mjs
27
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/extract_i18n.js
29
28
  import yargs from "yargs";
30
29
  function mainXi18n(args2, consoleError = console.error) {
31
30
  const config = readXi18nCommandLineAndConfiguration(args2);
@@ -48,7 +47,7 @@ function readXi18nCommandLineAndConfiguration(args2) {
48
47
  return { ...config, emitFlags: EmitFlags.I18nBundle };
49
48
  }
50
49
 
51
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.mjs
50
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js
52
51
  process.title = "Angular i18n Message Extractor (ng-xi18n)";
53
52
  var args = process.argv.slice(2);
54
53
  setFileSystem(new NodeJSFileSystem());
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../../../../packages/compiler-cli/src/bin/ng_xi18n.ts", "../../../../../../../../packages/compiler-cli/src/extract_i18n.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAUA,OAAO;;;ACEP,OAAO,WAAW;AAMZ,SAAU,UACdA,OACA,eAAsC,QAAQ,OAAK;AAEnD,QAAM,SAAS,qCAAqCA,KAAI;AACxD,SAAO,KAAKA,OAAM,cAAc,QAAQ,QAAW,QAAW,MAAS;AACzE;AAEA,SAAS,qCAAqCA,OAAc;AAC1D,QAAM,UAA+B,CAAA;AACrC,QAAM,aAAa,MAAMA,KAAI,EAC1B,OAAO,cAAc,EAAC,MAAM,SAAQ,CAAC,EACrC,OAAO,UAAU,EAAC,MAAM,SAAQ,CAAC,EACjC,OAAO,WAAW,EAAC,MAAM,SAAQ,CAAC,EAClC,UAAS;AAEZ,MAAI,WAAW;AAAS,YAAQ,cAAc,WAAW;AACzD,MAAI,WAAW;AAAY,YAAQ,gBAAgB,WAAW;AAC9D,MAAI,WAAW;AAAQ,YAAQ,gBAAgB,WAAW;AAE1D,QAAM,SAAS,gCAAgCA,OAAM,SAAS;IAC5D;IACA;IACA;GACD;AAED,SAAO,EAAC,GAAG,QAAQ,WAAe,UAAU,WAAU;AACxD;;;AD9BA,QAAQ,QAAQ;AAChB,IAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,cAAc,IAAI,iBAAgB,CAAE;AACpC,QAAQ,WAAW,UAAU,IAAI;",
3
+ "sources": ["../../../src/bin/ng_xi18n.ts", "../../../src/extract_i18n.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAUA,OAAO;;;ACEP,OAAO,WAAW;AAMZ,SAAU,UACdA,OACA,eAAsC,QAAQ,OAAK;AAEnD,QAAM,SAAS,qCAAqCA,KAAI;AACxD,SAAO,KAAKA,OAAM,cAAc,QAAQ,QAAW,QAAW,MAAS;AACzE;AAEA,SAAS,qCAAqCA,OAAc;AAC1D,QAAM,UAA+B,CAAA;AACrC,QAAM,aAAa,MAAMA,KAAI,EAC1B,OAAO,cAAc,EAAC,MAAM,SAAQ,CAAC,EACrC,OAAO,UAAU,EAAC,MAAM,SAAQ,CAAC,EACjC,OAAO,WAAW,EAAC,MAAM,SAAQ,CAAC,EAClC,UAAS;AAEZ,MAAI,WAAW;AAAS,YAAQ,cAAc,WAAW;AACzD,MAAI,WAAW;AAAY,YAAQ,gBAAgB,WAAW;AAC9D,MAAI,WAAW;AAAQ,YAAQ,gBAAgB,WAAW;AAE1D,QAAM,SAAS,gCAAgCA,OAAM,SAAS;IAC5D;IACA;IACA;GACD;AAED,SAAO,EAAC,GAAG,QAAQ,WAAe,UAAU,WAAU;AACxD;;;AD9BA,QAAQ,QAAQ;AAChB,IAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,cAAc,IAAI,iBAAgB,CAAE;AACpC,QAAQ,WAAW,UAAU,IAAI;",
5
5
  "names": ["args"]
6
6
  }
@@ -5,21 +5,20 @@
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";
12
- import "../../chunk-M3WWDK6S.js";
13
- import "../../chunk-WUCT7QTW.js";
8
+ } from "../../chunk-XQCMDSKE.js";
9
+ import "../../chunk-5K43KTXL.js";
10
+ import "../../chunk-ZY4GZNHC.js";
11
+ import "../../chunk-4RDNOL2U.js";
12
+ import "../../chunk-LMRFLQ2K.js";
14
13
  import {
15
14
  setFileSystem
16
- } from "../../chunk-3AHGFMNS.js";
15
+ } from "../../chunk-TPEB2IXF.js";
17
16
  import {
18
17
  NodeJSFileSystem
19
- } from "../../chunk-U5SKOFKE.js";
18
+ } from "../../chunk-3NKMA2JO.js";
20
19
  import "../../chunk-KPQ72R34.js";
21
20
 
22
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/bin/ngc.mjs
21
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ngc.js
23
22
  import "reflect-metadata";
24
23
  async function runNgcComamnd() {
25
24
  process.title = "Angular Compiler (ngc)";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../../../../../packages/compiler-cli/src/bin/ngc.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAUA,OAAO;AAKP,eAAe,gBAAa;AAC1B,UAAQ,QAAQ;AAChB,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,gBAAc,IAAI,iBAAgB,CAAE;AAEpC,UAAQ,WAAW,KAAK,MAAM,QAAW,QAAW,QAAW,QAAW,MAAS;AACrF;AAEA,cAAa,EAAG,MAAM,CAAC,MAAK;AAC1B,UAAQ,MAAM,CAAC;AACf,UAAQ,WAAW;AACrB,CAAC;",
3
+ "sources": ["../../../src/bin/ngc.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAUA,OAAO;AAKP,eAAe,gBAAa;AAC1B,UAAQ,QAAQ;AAChB,QAAM,OAAO,QAAQ,KAAK,MAAM,CAAC;AAEjC,gBAAc,IAAI,iBAAgB,CAAE;AAEpC,UAAQ,WAAW,KAAK,MAAM,QAAW,QAAW,QAAW,QAAW,MAAS;AACrF;AAEA,cAAa,EAAG,MAAM,CAAC,MAAK;AAC1B,UAAQ,MAAM,CAAC;AACf,UAAQ,WAAW;AACrB,CAAC;",
5
5
  "names": []
6
6
  }
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.2";
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.2",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -24,10 +24,6 @@
24
24
  "types": "./linker/babel/index.d.ts",
25
25
  "default": "./bundles/linker/babel/index.js"
26
26
  },
27
- "./private/bazel": {
28
- "types": "./private/bazel.d.ts",
29
- "default": "./bundles/private/bazel.js"
30
- },
31
27
  "./private/localize": {
32
28
  "types": "./private/localize.d.ts",
33
29
  "default": "./bundles/private/localize.js"
@@ -42,17 +38,17 @@
42
38
  }
43
39
  },
44
40
  "dependencies": {
45
- "@babel/core": "7.27.1",
41
+ "@babel/core": "7.27.4",
46
42
  "@jridgewell/sourcemap-codec": "^1.4.14",
47
43
  "reflect-metadata": "^0.2.0",
48
44
  "chokidar": "^4.0.0",
49
45
  "convert-source-map": "^1.5.1",
50
46
  "semver": "^7.0.0",
51
47
  "tslib": "^2.3.0",
52
- "yargs": "^17.2.1"
48
+ "yargs": "^18.0.0"
53
49
  },
54
50
  "peerDependencies": {
55
- "@angular/compiler": "20.0.0",
51
+ "@angular/compiler": "20.0.2",
56
52
  "typescript": ">=5.8 <5.9"
57
53
  },
58
54
  "peerDependenciesMeta": {
@@ -60,9 +56,6 @@
60
56
  "optional": true
61
57
  }
62
58
  },
63
- "devDependencies": {
64
- "@angular/compiler": "workspace:*"
65
- },
66
59
  "repository": {
67
60
  "type": "git",
68
61
  "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
  }