@angular/compiler-cli 20.0.0-rc.0 → 20.0.0-rc.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 (40) hide show
  1. package/bundles/{chunk-WNWOEBZS.js → chunk-6KZLR5QB.js} +164 -144
  2. package/bundles/chunk-6KZLR5QB.js.map +6 -0
  3. package/bundles/{chunk-SBWQVXJA.js → chunk-B24NLAZZ.js} +42 -42
  4. package/bundles/{chunk-SBWQVXJA.js.map → chunk-B24NLAZZ.js.map} +1 -1
  5. package/bundles/{chunk-Q6YAKOMH.js → chunk-EQBHFEMJ.js} +5 -5
  6. package/bundles/{chunk-FKXFEX7K.js → chunk-H5Y7P5GQ.js} +3 -3
  7. package/bundles/{chunk-FKXFEX7K.js.map → chunk-H5Y7P5GQ.js.map} +1 -1
  8. package/bundles/{chunk-2F5IGGXH.js → chunk-KO3EYK2V.js} +12 -12
  9. package/bundles/{chunk-2F5IGGXH.js.map → chunk-KO3EYK2V.js.map} +1 -1
  10. package/bundles/{chunk-UTYYMB4Z.js → chunk-N2PFGKJK.js} +3 -3
  11. package/bundles/{chunk-77D5CI2U.js → chunk-NVYT6OPE.js} +7 -7
  12. package/bundles/{chunk-77D5CI2U.js.map → chunk-NVYT6OPE.js.map} +1 -1
  13. package/bundles/{chunk-5HL3AR4R.js → chunk-Q5HXNOYJ.js} +84 -84
  14. package/bundles/{chunk-5HL3AR4R.js.map → chunk-Q5HXNOYJ.js.map} +1 -1
  15. package/bundles/{chunk-KIC4TVVW.js → chunk-TQ6LMH6Y.js} +31 -31
  16. package/bundles/{chunk-37JMVF7H.js → chunk-WIAPFYJX.js} +8 -8
  17. package/bundles/{chunk-37JMVF7H.js.map → chunk-WIAPFYJX.js.map} +1 -1
  18. package/bundles/{chunk-Q2WE7ECN.js → chunk-WUCT7QTW.js} +5 -5
  19. package/bundles/{chunk-Q2WE7ECN.js.map → chunk-WUCT7QTW.js.map} +1 -1
  20. package/bundles/index.js +12 -12
  21. package/bundles/index.js.map +1 -1
  22. package/bundles/linker/babel/index.js +12 -12
  23. package/bundles/linker/index.js +4 -4
  24. package/bundles/private/bazel.js +1 -1
  25. package/bundles/private/localize.js +3 -3
  26. package/bundles/private/migrations.js +4 -4
  27. package/bundles/private/tooling.js +6 -6
  28. package/bundles/src/bin/ng_xi18n.js +10 -10
  29. package/bundles/src/bin/ngc.js +8 -8
  30. package/bundles_metadata.json +1 -1
  31. package/index.d.ts +0 -1
  32. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  33. package/package.json +7 -4
  34. package/src/ngtsc/annotations/directive/src/query_functions.d.ts +4 -5
  35. package/src/ngtsc/docs/index.d.ts +1 -1
  36. package/src/ngtsc/typecheck/src/checker.d.ts +2 -1
  37. package/bundles/chunk-WNWOEBZS.js.map +0 -6
  38. /package/bundles/{chunk-Q6YAKOMH.js.map → chunk-EQBHFEMJ.js.map} +0 -0
  39. /package/bundles/{chunk-UTYYMB4Z.js.map → chunk-N2PFGKJK.js.map} +0 -0
  40. /package/bundles/{chunk-KIC4TVVW.js.map → chunk-TQ6LMH6Y.js.map} +0 -0
package/index.d.ts CHANGED
@@ -12,6 +12,5 @@ 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
14
  export { NodeJSFileSystem, absoluteFrom } from './src/ngtsc/file_system';
15
- export * from './src/ngtsc/docs/src/entities';
16
15
  export * from './src/ngtsc/docs';
17
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-rc.0";
10
+ export declare const PLACEHOLDER_VERSION = "20.0.0-rc.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-rc.0",
3
+ "version": "20.0.0-rc.2",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -42,7 +42,7 @@
42
42
  }
43
43
  },
44
44
  "dependencies": {
45
- "@babel/core": "7.26.10",
45
+ "@babel/core": "7.27.1",
46
46
  "@jridgewell/sourcemap-codec": "^1.4.14",
47
47
  "reflect-metadata": "^0.2.0",
48
48
  "chokidar": "^4.0.0",
@@ -52,9 +52,12 @@
52
52
  "yargs": "^17.2.1"
53
53
  },
54
54
  "peerDependencies": {
55
- "@angular/compiler": "20.0.0-rc.0",
55
+ "@angular/compiler": "20.0.0-rc.2",
56
56
  "typescript": ">=5.8 <5.9"
57
57
  },
58
+ "devDependencies": {
59
+ "@angular/compiler": "workspace:*"
60
+ },
58
61
  "repository": {
59
62
  "type": "git",
60
63
  "url": "https://github.com/angular/angular.git",
@@ -66,7 +69,7 @@
66
69
  ],
67
70
  "license": "MIT",
68
71
  "engines": {
69
- "node": "^20.11.1 || ^22.11.0 || >=24.0.0"
72
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
70
73
  },
71
74
  "bugs": {
72
75
  "url": "https://github.com/angular/angular/issues"
@@ -8,15 +8,14 @@
8
8
  import { R3QueryMetadata } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
10
  import { ImportedSymbolsTracker } from '../../../imports';
11
- import { ClassMember, ClassMemberAccessLevel, ReflectionHost } from '../../../reflection';
11
+ import { ClassMember, ReflectionHost } from '../../../reflection';
12
+ import { InitializerApiFunction } from './initializer_functions';
12
13
  /** Possible query initializer API functions. */
13
14
  export type QueryFunctionName = 'viewChild' | 'contentChild' | 'viewChildren' | 'contentChildren';
14
15
  /** Possible query initializer API functions. */
15
- export declare const QUERY_INITIALIZER_FNS: {
16
+ export declare const QUERY_INITIALIZER_FNS: (InitializerApiFunction & {
16
17
  functionName: QueryFunctionName;
17
- owningModule: "@angular/core";
18
- allowedAccessLevels: ClassMemberAccessLevel[];
19
- }[];
18
+ })[];
20
19
  /**
21
20
  * Attempts to detect a possible query definition for the given class member.
22
21
  *
@@ -5,5 +5,5 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- export { DocEntry } from './src/entities';
8
+ export * from './src/entities';
9
9
  export { DocsExtractor } from './src/extractor';
@@ -74,6 +74,7 @@ export declare class TemplateTypeCheckerImpl implements TemplateTypeChecker {
74
74
  */
75
75
  private elementTagCache;
76
76
  private isComplete;
77
+ private priorResultsAdopted;
77
78
  constructor(originalProgram: ts.Program, programDriver: ProgramDriver, typeCheckAdapter: ProgramTypeCheckAdapter, config: TypeCheckingConfig, refEmitter: ReferenceEmitter, reflector: ReflectionHost, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>, priorBuild: IncrementalBuild<unknown, FileTypeCheckingData>, metaReader: MetadataReader, localMetaReader: MetadataReaderWithIndex, ngModuleIndex: NgModuleIndex, componentScopeReader: ComponentScopeReader, typeCheckScopeRegistry: TypeCheckScopeRegistry, perf: PerfRecorder);
78
79
  getTemplate(component: ts.ClassDeclaration, optimizeFor?: OptimizeFor): TmplAstNode[] | null;
79
80
  getHostElement(directive: ts.ClassDeclaration, optimizeFor?: OptimizeFor): TmplAstHostElement | null;
@@ -104,7 +105,7 @@ export declare class TemplateTypeCheckerImpl implements TemplateTypeChecker {
104
105
  sourceFile: ts.SourceFile;
105
106
  }[]): NgTemplateDiagnostic<T>;
106
107
  private getOrCreateCompletionEngine;
107
- private maybeAdoptPriorResultsForFile;
108
+ private maybeAdoptPriorResults;
108
109
  private ensureAllShimsForAllFiles;
109
110
  private ensureAllShimsForOneFile;
110
111
  private ensureShimForComponent;