@angular/compiler-cli 19.0.0-next.9 → 19.0.0-rc.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.
Files changed (65) hide show
  1. package/bundles/{chunk-5W3ITOS7.js → chunk-4W4CWRSP.js} +5 -5
  2. package/bundles/{chunk-3Z25BX6N.js → chunk-5UDS2TPQ.js} +25 -18
  3. package/bundles/chunk-5UDS2TPQ.js.map +6 -0
  4. package/bundles/{chunk-RT2QTF73.js → chunk-GBKXY6BH.js} +4 -3
  5. package/bundles/{chunk-RT2QTF73.js.map → chunk-GBKXY6BH.js.map} +1 -1
  6. package/bundles/{chunk-XSNUHRLJ.js → chunk-I6R3GL3L.js} +12 -6
  7. package/bundles/{chunk-XSNUHRLJ.js.map → chunk-I6R3GL3L.js.map} +1 -1
  8. package/bundles/{chunk-XI2RTGAL.js → chunk-KPQ72R34.js} +9 -2
  9. package/bundles/{chunk-XP6IMCQP.js → chunk-NS33RCEE.js} +12 -12
  10. package/bundles/{chunk-JF4LKQQP.js → chunk-PXQLBKVP.js} +88 -51
  11. package/bundles/chunk-PXQLBKVP.js.map +6 -0
  12. package/bundles/{chunk-GCXHOI3T.js → chunk-S2JI2WY5.js} +948 -365
  13. package/bundles/chunk-S2JI2WY5.js.map +6 -0
  14. package/bundles/{chunk-UJ2J6WV4.js → chunk-STORTTKY.js} +16 -14
  15. package/bundles/chunk-STORTTKY.js.map +6 -0
  16. package/bundles/{chunk-U6J7NRJM.js → chunk-TQQOHNLL.js} +288 -173
  17. package/bundles/chunk-TQQOHNLL.js.map +6 -0
  18. package/bundles/{chunk-OSPR7JSU.js → chunk-TRCFFQ47.js} +147 -82
  19. package/bundles/chunk-TRCFFQ47.js.map +6 -0
  20. package/bundles/{chunk-ZQ7CP635.js → chunk-V2Z4WDVR.js} +3 -3
  21. package/bundles/index.js +18 -17
  22. package/bundles/index.js.map +1 -1
  23. package/bundles/linker/babel/index.js +32 -32
  24. package/bundles/linker/babel/index.js.map +1 -1
  25. package/bundles/linker/index.js +5 -5
  26. package/bundles/ngcc/index.js +1 -1
  27. package/bundles/private/bazel.js +2 -2
  28. package/bundles/private/localize.js +4 -4
  29. package/bundles/private/migrations.js +5 -5
  30. package/bundles/private/tooling.js +7 -7
  31. package/bundles/src/bin/ng_xi18n.js +11 -11
  32. package/bundles/src/bin/ngc.js +9 -9
  33. package/bundles_metadata.json +1 -1
  34. package/linker/babel/src/ast/babel_ast_factory.d.ts +2 -2
  35. package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +2 -2
  36. package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +2 -2
  37. package/linker/src/file_linker/partial_linkers/util.d.ts +2 -1
  38. package/package.json +2 -2
  39. package/src/ngtsc/annotations/common/src/debug_info.d.ts +2 -1
  40. package/src/ngtsc/annotations/common/src/util.d.ts +1 -1
  41. package/src/ngtsc/annotations/component/src/handler.d.ts +8 -3
  42. package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -1
  43. package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -1
  44. package/src/ngtsc/annotations/src/pipe.d.ts +2 -1
  45. package/src/ngtsc/core/src/compiler.d.ts +7 -0
  46. package/src/ngtsc/hmr/index.d.ts +9 -0
  47. package/src/ngtsc/hmr/src/extract_locals.d.ts +20 -0
  48. package/src/ngtsc/hmr/src/metadata.d.ts +23 -0
  49. package/src/ngtsc/hmr/src/update_declaration.d.ts +17 -0
  50. package/src/ngtsc/imports/src/core.d.ts +6 -0
  51. package/src/ngtsc/transform/src/api.d.ts +4 -0
  52. package/src/ngtsc/transform/src/compilation.d.ts +1 -0
  53. package/src/ngtsc/translator/src/api/ast_factory.d.ts +2 -2
  54. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +2 -2
  55. package/src/ngtsc/util/src/path.d.ts +9 -0
  56. package/bundles/chunk-3Z25BX6N.js.map +0 -6
  57. package/bundles/chunk-GCXHOI3T.js.map +0 -6
  58. package/bundles/chunk-JF4LKQQP.js.map +0 -6
  59. package/bundles/chunk-OSPR7JSU.js.map +0 -6
  60. package/bundles/chunk-U6J7NRJM.js.map +0 -6
  61. package/bundles/chunk-UJ2J6WV4.js.map +0 -6
  62. /package/bundles/{chunk-5W3ITOS7.js.map → chunk-4W4CWRSP.js.map} +0 -0
  63. /package/bundles/{chunk-XI2RTGAL.js.map → chunk-KPQ72R34.js.map} +0 -0
  64. /package/bundles/{chunk-XP6IMCQP.js.map → chunk-NS33RCEE.js.map} +0 -0
  65. /package/bundles/{chunk-ZQ7CP635.js.map → chunk-V2Z4WDVR.js.map} +0 -0
@@ -16,7 +16,7 @@ export declare class BabelAstFactory implements AstFactory<t.Statement, t.Expres
16
16
  constructor(
17
17
  /** The absolute path to the source file being compiled. */
18
18
  sourceUrl: string);
19
- attachComments(statement: t.Statement, leadingComments: LeadingComment[]): void;
19
+ attachComments(statement: t.Statement | t.Expression, leadingComments: LeadingComment[]): void;
20
20
  createArrayLiteral: typeof t.arrayExpression;
21
21
  createAssignment(target: t.Expression, value: t.Expression): t.Expression;
22
22
  createBinaryExpression(leftOperand: t.Expression, operator: BinaryOperator, rightOperand: t.Expression): t.Expression;
@@ -30,7 +30,7 @@ export declare class BabelAstFactory implements AstFactory<t.Statement, t.Expres
30
30
  createFunctionExpression(functionName: string | null, parameters: string[], body: t.Statement): t.Expression;
31
31
  createIdentifier: typeof t.identifier;
32
32
  createIfStatement: typeof t.ifStatement;
33
- createDynamicImport(url: string): t.Expression;
33
+ createDynamicImport(url: string | t.Expression): t.Expression;
34
34
  createLiteral(value: string | number | boolean | null | undefined): t.Expression;
35
35
  createNewExpression: typeof t.newExpression;
36
36
  createObjectLiteral(properties: ObjectLiteralProperty<t.Expression>[]): t.Expression;
@@ -17,10 +17,10 @@ export declare class PartialDirectiveLinkerVersion1<TExpression> implements Part
17
17
  private sourceUrl;
18
18
  private code;
19
19
  constructor(sourceUrl: AbsoluteFsPath, code: string);
20
- linkPartialDeclaration(constantPool: ConstantPool, metaObj: AstObject<R3PartialDeclaration, TExpression>): LinkedDefinition;
20
+ linkPartialDeclaration(constantPool: ConstantPool, metaObj: AstObject<R3PartialDeclaration, TExpression>, version: string): LinkedDefinition;
21
21
  }
22
22
  /**
23
23
  * Derives the `R3DirectiveMetadata` structure from the AST object.
24
24
  */
25
- export declare function toR3DirectiveMeta<TExpression>(metaObj: AstObject<R3DeclareDirectiveMetadata, TExpression>, code: string, sourceUrl: AbsoluteFsPath): R3DirectiveMetadata;
25
+ export declare function toR3DirectiveMeta<TExpression>(metaObj: AstObject<R3DeclareDirectiveMetadata, TExpression>, code: string, sourceUrl: AbsoluteFsPath, version: string): R3DirectiveMetadata;
26
26
  export declare function createSourceSpan(range: Range, code: string, sourceUrl: string): ParseSourceSpan;
@@ -13,9 +13,9 @@ import { LinkedDefinition, PartialLinker } from './partial_linker';
13
13
  */
14
14
  export declare class PartialPipeLinkerVersion1<TExpression> implements PartialLinker<TExpression> {
15
15
  constructor();
16
- linkPartialDeclaration(constantPool: ConstantPool, metaObj: AstObject<R3PartialDeclaration, TExpression>): LinkedDefinition;
16
+ linkPartialDeclaration(constantPool: ConstantPool, metaObj: AstObject<R3PartialDeclaration, TExpression>, version: string): LinkedDefinition;
17
17
  }
18
18
  /**
19
19
  * Derives the `R3PipeMetadata` structure from the AST object.
20
20
  */
21
- export declare function toR3PipeMeta<TExpression>(metaObj: AstObject<R3DeclarePipeMetadata, TExpression>): R3PipeMetadata;
21
+ export declare function toR3PipeMeta<TExpression>(metaObj: AstObject<R3DeclarePipeMetadata, TExpression>, version: string): R3PipeMetadata;
@@ -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 = "19.0.0-next.9";
10
+ export declare const PLACEHOLDER_VERSION = "19.0.0-rc.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.
@@ -28,3 +28,4 @@ export declare function getDependency<TExpression>(depObj: AstObject<R3DeclareDe
28
28
  * If there is no forwardRef call expression then we just return the opaque type.
29
29
  */
30
30
  export declare function extractForwardRef<TExpression>(expr: AstValue<unknown, TExpression>): MaybeForwardRefExpression<o.WrappedNodeExpr<TExpression>>;
31
+ export declare function getDefaultStandaloneValue(version: string): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "19.0.0-next.9",
3
+ "version": "19.0.0-rc.0",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -53,7 +53,7 @@
53
53
  "yargs": "^17.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/compiler": "19.0.0-next.9",
56
+ "@angular/compiler": "19.0.0-rc.0",
57
57
  "typescript": ">=5.5 <5.7"
58
58
  },
59
59
  "repository": {
@@ -6,5 +6,6 @@
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
8
  import { R3ClassDebugInfo } from '@angular/compiler';
9
+ import ts from 'typescript';
9
10
  import { DeclarationNode, ReflectionHost } from '../../../reflection';
10
- export declare function extractClassDebugInfo(clazz: DeclarationNode, reflection: ReflectionHost, rootDirs: ReadonlyArray<string>, forbidOrphanRendering: boolean): R3ClassDebugInfo | null;
11
+ export declare function extractClassDebugInfo(clazz: DeclarationNode, reflection: ReflectionHost, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>, rootDirs: ReadonlyArray<string>, forbidOrphanRendering: boolean): R3ClassDebugInfo | null;
@@ -93,7 +93,7 @@ export declare function createSourceSpan(node: ts.Node): ParseSourceSpan;
93
93
  /**
94
94
  * Collate the factory and definition compiled results into an array of CompileResult objects.
95
95
  */
96
- export declare function compileResults(fac: CompileResult, def: R3CompiledExpression, metadataStmt: Statement | null, propName: string, additionalFields: CompileResult[] | null, deferrableImports: Set<ts.ImportDeclaration> | null, debugInfo?: Statement | null): CompileResult[];
96
+ export declare function compileResults(fac: CompileResult, def: R3CompiledExpression, metadataStmt: Statement | null, propName: string, additionalFields: CompileResult[] | null, deferrableImports: Set<ts.ImportDeclaration> | null, debugInfo?: Statement | null, hmrInitializer?: Statement | null): CompileResult[];
97
97
  export declare function toFactoryMetadata(meta: Omit<R3FactoryMetadata, 'target'>, target: FactoryTarget): R3FactoryMetadata;
98
98
  export declare function resolveImportedFile(moduleResolver: ModuleResolver, importedFile: ImportedFile, expr: Expression, origin: ts.SourceFile): ts.SourceFile | null;
99
99
  /**
@@ -16,7 +16,7 @@ import { HostDirectivesResolver, MetadataReader, MetadataRegistry, ResourceRegis
16
16
  import { PartialEvaluator } from '../../../partial_evaluator';
17
17
  import { PerfRecorder } from '../../../perf';
18
18
  import { ClassDeclaration, Decorator, ReflectionHost } from '../../../reflection';
19
- import { ComponentScopeReader, DtsModuleScopeResolver, LocalModuleScopeRegistry, TypeCheckScopeRegistry } from '../../../scope';
19
+ import { ComponentScopeReader, LocalModuleScopeRegistry, TypeCheckScopeRegistry } from '../../../scope';
20
20
  import { AnalysisOutput, CompilationMode, CompileResult, DecoratorHandler, DetectResult, HandlerPrecedence, ResolveResult } from '../../../transform';
21
21
  import { TypeCheckContext } from '../../../typecheck/api';
22
22
  import { ExtendedTemplateChecker } from '../../../typecheck/extended/api';
@@ -35,7 +35,7 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
35
35
  private metaRegistry;
36
36
  private metaReader;
37
37
  private scopeReader;
38
- private dtsScopeReader;
38
+ private compilerHost;
39
39
  private scopeRegistry;
40
40
  private typeCheckScopeRegistry;
41
41
  private resourceRegistry;
@@ -71,7 +71,9 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
71
71
  private readonly jitDeclarationRegistry;
72
72
  private readonly i18nPreserveSignificantWhitespace;
73
73
  private readonly strictStandalone;
74
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, metaReader: MetadataReader, scopeReader: ComponentScopeReader, dtsScopeReader: DtsModuleScopeResolver, scopeRegistry: LocalModuleScopeRegistry, typeCheckScopeRegistry: TypeCheckScopeRegistry, resourceRegistry: ResourceRegistry, isCore: boolean, strictCtorDeps: boolean, resourceLoader: ResourceLoader, rootDirs: ReadonlyArray<string>, defaultPreserveWhitespaces: boolean, i18nUseExternalIds: boolean, enableI18nLegacyMessageIdFormat: boolean, usePoisonedData: boolean, i18nNormalizeLineEndingsInICUs: boolean, moduleResolver: ModuleResolver, cycleAnalyzer: CycleAnalyzer, cycleHandlingStrategy: CycleHandlingStrategy, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, depTracker: DependencyTracker | null, injectableRegistry: InjectableClassRegistry, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, hostDirectivesResolver: HostDirectivesResolver, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, deferredSymbolTracker: DeferredSymbolTracker, forbidOrphanRendering: boolean, enableBlockSyntax: boolean, enableLetSyntax: boolean, externalRuntimeStyles: boolean, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null, jitDeclarationRegistry: JitDeclarationRegistry, i18nPreserveSignificantWhitespace: boolean, strictStandalone: boolean);
74
+ private readonly enableHmr;
75
+ private readonly implicitStandaloneValue;
76
+ constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, metaReader: MetadataReader, scopeReader: ComponentScopeReader, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>, scopeRegistry: LocalModuleScopeRegistry, typeCheckScopeRegistry: TypeCheckScopeRegistry, resourceRegistry: ResourceRegistry, isCore: boolean, strictCtorDeps: boolean, resourceLoader: ResourceLoader, rootDirs: ReadonlyArray<string>, defaultPreserveWhitespaces: boolean, i18nUseExternalIds: boolean, enableI18nLegacyMessageIdFormat: boolean, usePoisonedData: boolean, i18nNormalizeLineEndingsInICUs: boolean, moduleResolver: ModuleResolver, cycleAnalyzer: CycleAnalyzer, cycleHandlingStrategy: CycleHandlingStrategy, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, depTracker: DependencyTracker | null, injectableRegistry: InjectableClassRegistry, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, hostDirectivesResolver: HostDirectivesResolver, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, deferredSymbolTracker: DeferredSymbolTracker, forbidOrphanRendering: boolean, enableBlockSyntax: boolean, enableLetSyntax: boolean, externalRuntimeStyles: boolean, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null, jitDeclarationRegistry: JitDeclarationRegistry, i18nPreserveSignificantWhitespace: boolean, strictStandalone: boolean, enableHmr: boolean, implicitStandaloneValue: boolean);
75
77
  private literalCache;
76
78
  private elementSchemaRegistry;
77
79
  /**
@@ -81,6 +83,8 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
81
83
  */
82
84
  private preanalyzeTemplateCache;
83
85
  private preanalyzeStylesCache;
86
+ /** Whether generated code for a component can defer its dependencies. */
87
+ private readonly canDeferDeps;
84
88
  private extractTemplateOptions;
85
89
  readonly precedence = HandlerPrecedence.PRIMARY;
86
90
  readonly name = "ComponentDecoratorHandler";
@@ -99,6 +103,7 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
99
103
  compileFull(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, resolution: Readonly<ComponentResolutionData>, pool: ConstantPool): CompileResult[];
100
104
  compilePartial(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, resolution: Readonly<ComponentResolutionData>): CompileResult[];
101
105
  compileLocal(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, resolution: Readonly<Partial<ComponentResolutionData>>, pool: ConstantPool): CompileResult[];
106
+ compileHmrUpdateDeclaration(node: ClassDeclaration, analysis: Readonly<ComponentAnalysisData>, resolution: Readonly<ComponentResolutionData>): ts.FunctionDeclaration | null;
102
107
  /**
103
108
  * Locates defer blocks in case scope information is not available.
104
109
  * For example, this happens in the local compilation mode.
@@ -52,7 +52,8 @@ export declare class DirectiveDecoratorHandler implements DecoratorHandler<Decor
52
52
  private readonly compilationMode;
53
53
  private readonly jitDeclarationRegistry;
54
54
  private readonly strictStandalone;
55
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, strictCtorDeps: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, jitDeclarationRegistry: JitDeclarationRegistry, strictStandalone: boolean);
55
+ private readonly implicitStandaloneValue;
56
+ constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, metaReader: MetadataReader, injectableRegistry: InjectableClassRegistry, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, strictCtorDeps: boolean, semanticDepGraphUpdater: SemanticDepGraphUpdater | null, annotateForClosureCompiler: boolean, perf: PerfRecorder, importTracker: ImportedSymbolsTracker, includeClassMetadata: boolean, compilationMode: CompilationMode, jitDeclarationRegistry: JitDeclarationRegistry, strictStandalone: boolean, implicitStandaloneValue: boolean);
56
57
  readonly precedence = HandlerPrecedence.PRIMARY;
57
58
  readonly name = "DirectiveDecoratorHandler";
58
59
  detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator | null> | undefined;
@@ -21,7 +21,7 @@ export declare const queryDecoratorNames: QueryDecoratorName[];
21
21
  * appear in the declarations of an `NgModule` and additional verification is done when processing
22
22
  * the module.
23
23
  */
24
- export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, annotateForClosureCompiler: boolean, compilationMode: CompilationMode, defaultSelector: string | null, strictStandalone: boolean): {
24
+ export declare function extractDirectiveMetadata(clazz: ClassDeclaration, decorator: Readonly<Decorator>, reflector: ReflectionHost, importTracker: ImportedSymbolsTracker, evaluator: PartialEvaluator, refEmitter: ReferenceEmitter, referencesRegistry: ReferencesRegistry, isCore: boolean, annotateForClosureCompiler: boolean, compilationMode: CompilationMode, defaultSelector: string | null, strictStandalone: boolean, implicitStandaloneValue: boolean): {
25
25
  jitForced: false;
26
26
  decorator: Map<string, ts.Expression>;
27
27
  metadata: R3DirectiveMetadata;
@@ -42,7 +42,8 @@ export declare class PipeDecoratorHandler implements DecoratorHandler<Decorator,
42
42
  private readonly compilationMode;
43
43
  private readonly generateExtraImportsInLocalMode;
44
44
  private readonly strictStandalone;
45
- constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, injectableRegistry: InjectableClassRegistry, isCore: boolean, perf: PerfRecorder, includeClassMetadata: boolean, compilationMode: CompilationMode, generateExtraImportsInLocalMode: boolean, strictStandalone: boolean);
45
+ private readonly implicitStandaloneValue;
46
+ constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, injectableRegistry: InjectableClassRegistry, isCore: boolean, perf: PerfRecorder, includeClassMetadata: boolean, compilationMode: CompilationMode, generateExtraImportsInLocalMode: boolean, strictStandalone: boolean, implicitStandaloneValue: boolean);
46
47
  readonly precedence = HandlerPrecedence.PRIMARY;
47
48
  readonly name = "PipeDecoratorHandler";
48
49
  detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator> | undefined;
@@ -133,6 +133,8 @@ export declare class NgCompiler {
133
133
  private readonly enableBlockSyntax;
134
134
  private readonly enableLetSyntax;
135
135
  private readonly angularCoreVersion;
136
+ private readonly enableHmr;
137
+ private readonly implicitStandaloneValue;
136
138
  /**
137
139
  * `NgCompiler` can be reused for multiple compilations (for resource-only changes), and each
138
140
  * new compilation uses a fresh `PerfRecorder`. Thus, classes created with a lifespan of the
@@ -251,6 +253,11 @@ export declare class NgCompiler {
251
253
  * Collect i18n messages into the `Xi18nContext`.
252
254
  */
253
255
  xi18n(ctx: Xi18nContext): void;
256
+ /**
257
+ * Emits the JavaScript module that can be used to replace the metadata of a class during HMR.
258
+ * @param node Class for which to generate the update module.
259
+ */
260
+ emitHmrUpdateModule(node: DeclarationNode): string | null;
254
261
  private ensureAnalyzed;
255
262
  private analyzeSync;
256
263
  private resolveCompilation;
@@ -0,0 +1,9 @@
1
+ /*!
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ export * from './src/metadata';
9
+ export * from './src/update_declaration';
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { R3CompiledExpression, outputAst as o } from '@angular/compiler';
9
+ import { DeclarationNode } from '../../reflection';
10
+ import { CompileResult } from '../../transform';
11
+ /**
12
+ * Determines the names of the file-level locals that the HMR
13
+ * initializer needs to capture and pass along.
14
+ * @param sourceFile File in which the file is being compiled.
15
+ * @param definition Compiled component definition.
16
+ * @param factory Compiled component factory.
17
+ * @param classMetadata Compiled `setClassMetadata` expression, if any.
18
+ * @param debugInfo Compiled `setClassDebugInfo` expression, if any.
19
+ */
20
+ export declare function extractHmrLocals(node: DeclarationNode, definition: R3CompiledExpression, factory: CompileResult, classMetadata: o.Statement | null, debugInfo: o.Statement | null): string[];
@@ -0,0 +1,23 @@
1
+ /*!
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { R3CompiledExpression, R3HmrMetadata, outputAst as o } from '@angular/compiler';
9
+ import { DeclarationNode, ReflectionHost } from '../../reflection';
10
+ import { CompileResult } from '../../transform';
11
+ import ts from 'typescript';
12
+ /**
13
+ * Extracts the HMR metadata for a class declaration.
14
+ * @param clazz Class being analyzed.
15
+ * @param reflection Reflection host.
16
+ * @param compilerHost Compiler host to use when resolving file names.
17
+ * @param rootDirs Root directories configured by the user.
18
+ * @param definition Analyzed component definition.
19
+ * @param factory Analyzed component factory.
20
+ * @param classMetadata Analyzed `setClassMetadata` expression, if any.
21
+ * @param debugInfo Analyzed `setClassDebugInfo` expression, if any.
22
+ */
23
+ export declare function extractHmrMetatadata(clazz: DeclarationNode, reflection: ReflectionHost, compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>, rootDirs: readonly string[], definition: R3CompiledExpression, factory: CompileResult, classMetadata: o.Statement | null, debugInfo: o.Statement | null): R3HmrMetadata | null;
@@ -0,0 +1,17 @@
1
+ /*!
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ import { R3HmrMetadata, outputAst as o } from '@angular/compiler';
9
+ import { CompileResult } from '../../transform';
10
+ import ts from 'typescript';
11
+ /**
12
+ * Gets the declaration for the function that replaces the metadata of a class during HMR.
13
+ * @param compilationResults Code generated for the class during compilation.
14
+ * @param meta HMR metadata about the class.
15
+ * @param sourceFile File in which the class is defined.
16
+ */
17
+ export declare function getHmrUpdateDeclaration(compilationResults: CompileResult[], constantStatements: o.Statement[], meta: R3HmrMetadata, sourceFile: ts.SourceFile): ts.FunctionDeclaration;
@@ -18,6 +18,10 @@ export interface ImportRewriter {
18
18
  * Optionally rewrite the given module specifier in the context of a given file.
19
19
  */
20
20
  rewriteSpecifier(specifier: string, inContextOfFile: string): string;
21
+ /**
22
+ * Optionally rewrite the identifier of a namespace import.
23
+ */
24
+ rewriteNamespaceImportIdentifier(specifier: string, moduleName: string): string;
21
25
  }
22
26
  /**
23
27
  * `ImportRewriter` that does no rewriting.
@@ -25,6 +29,7 @@ export interface ImportRewriter {
25
29
  export declare class NoopImportRewriter implements ImportRewriter {
26
30
  rewriteSymbol(symbol: string, specifier: string): string;
27
31
  rewriteSpecifier(specifier: string, inContextOfFile: string): string;
32
+ rewriteNamespaceImportIdentifier(specifier: string): string;
28
33
  }
29
34
  /**
30
35
  * `ImportRewriter` that rewrites imports from '@angular/core' to be imported from the r3_symbols.ts
@@ -35,5 +40,6 @@ export declare class R3SymbolsImportRewriter implements ImportRewriter {
35
40
  constructor(r3SymbolsPath: string);
36
41
  rewriteSymbol(symbol: string, specifier: string): string;
37
42
  rewriteSpecifier(specifier: string, inContextOfFile: string): string;
43
+ rewriteNamespaceImportIdentifier(specifier: string): string;
38
44
  }
39
45
  export declare function validateAndRewriteCoreSymbol(name: string): string;
@@ -165,6 +165,10 @@ export interface DecoratorHandler<D, A, S extends SemanticSymbol | null, R> {
165
165
  * `compileFull` is.
166
166
  */
167
167
  compilePartial?(node: ClassDeclaration, analysis: Readonly<A>, resolution: Readonly<R>): CompileResult | CompileResult[];
168
+ /**
169
+ * Generates the function that will update a class' metadata at runtime during HMR.
170
+ */
171
+ compileHmrUpdateDeclaration?(node: ClassDeclaration, analysis: Readonly<A>, resolution: Readonly<R>): ts.FunctionDeclaration | null;
168
172
  /**
169
173
  * Generates code based on each individual source file without using its
170
174
  * dependencies (suitable for local dev edit/refresh workflow)
@@ -114,6 +114,7 @@ export declare class TraitCompiler implements ProgramTypeCheckAdapter {
114
114
  xi18n(bundle: Xi18nContext): void;
115
115
  updateResources(clazz: DeclarationNode): void;
116
116
  compile(clazz: DeclarationNode, constantPool: ConstantPool): CompileResult[] | null;
117
+ compileHmrUpdateCallback(clazz: DeclarationNode): ts.FunctionDeclaration | null;
117
118
  decoratorsFor(node: ts.Declaration): ts.Decorator[];
118
119
  get diagnostics(): ReadonlyArray<ts.Diagnostic>;
119
120
  get exportStatements(): Map<string, Map<string, [string, string]>>;
@@ -19,7 +19,7 @@ export interface AstFactory<TStatement, TExpression> {
19
19
  * @param statement the statement where the comments are to be attached.
20
20
  * @param leadingComments the comments to attach.
21
21
  */
22
- attachComments(statement: TStatement, leadingComments: LeadingComment[]): void;
22
+ attachComments(statement: TStatement | TExpression, leadingComments: LeadingComment[]): void;
23
23
  /**
24
24
  * Create a literal array expression (e.g. `[expr1, expr2]`).
25
25
  *
@@ -107,7 +107,7 @@ export interface AstFactory<TStatement, TExpression> {
107
107
  *
108
108
  * @param url the URL that should by used in the dynamic import
109
109
  */
110
- createDynamicImport(url: string): TExpression;
110
+ createDynamicImport(url: string | TExpression): TExpression;
111
111
  /**
112
112
  * Create an identifier.
113
113
  *
@@ -23,7 +23,7 @@ export declare class TypeScriptAstFactory implements AstFactory<ts.Statement, ts
23
23
  createConditional(condition: ts.Expression, whenTrue: ts.Expression, whenFalse: ts.Expression): ts.Expression;
24
24
  createElementAccess: (expression: ts.Expression, index: number | ts.Expression) => ts.ElementAccessExpression;
25
25
  createExpressionStatement: (expression: ts.Expression) => ts.ExpressionStatement;
26
- createDynamicImport(url: string): ts.CallExpression;
26
+ createDynamicImport(url: string | ts.Expression): ts.CallExpression;
27
27
  createFunctionDeclaration(functionName: string, parameters: string[], body: ts.Statement): ts.Statement;
28
28
  createFunctionExpression(functionName: string | null, parameters: string[], body: ts.Statement): ts.Expression;
29
29
  createArrowFunctionExpression(parameters: string[], body: ts.Statement | ts.Expression): ts.Expression;
@@ -50,4 +50,4 @@ export declare function createTemplateTail(cooked: string, raw: string): ts.Temp
50
50
  * @param statement The statement that will have comments attached.
51
51
  * @param leadingComments The comments to attach to the statement.
52
52
  */
53
- export declare function attachComments(statement: ts.Statement, leadingComments: LeadingComment[]): void;
53
+ export declare function attachComments(statement: ts.Statement | ts.Expression, leadingComments: LeadingComment[]): void;
@@ -1,2 +1,11 @@
1
+ import ts from 'typescript';
1
2
  export declare function relativePathBetween(from: string, to: string): string | null;
2
3
  export declare function normalizeSeparators(path: string): string;
4
+ /**
5
+ * Attempts to generate a project-relative path
6
+ * @param sourceFile
7
+ * @param rootDirs
8
+ * @param compilerHost
9
+ * @returns
10
+ */
11
+ export declare function getProjectRelativePath(sourceFile: ts.SourceFile, rootDirs: readonly string[], compilerHost: Pick<ts.CompilerHost, 'getCanonicalFileName'>): string | null;
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../../packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file.ts", "../../../../../../packages/compiler-cli/src/ngtsc/sourcemaps/src/segment_marker.ts", "../../../../../../packages/compiler-cli/src/ngtsc/sourcemaps/src/source_file_loader.ts", "../../../../../../packages/compiler-cli/src/ngtsc/sourcemaps/src/content_origin.ts"],
4
- "mappings": ";;;;;;AAOA,SAAQ,QAAQ,cAAkD;AAClE,OAAO,gBAAgB;;;ACmBjB,SAAU,gBAAgB,GAAkB,GAAgB;AAChE,SAAO,EAAE,WAAW,EAAE;AACxB;AAUM,SAAU,cACd,sBACA,QACA,QAAc;AAEd,MAAI,WAAW,GAAG;AAChB,WAAO;EACT;AAEA,MAAI,OAAO,OAAO;AAClB,QAAM,WAAW,OAAO,WAAW;AACnC,SAAO,OAAO,qBAAqB,SAAS,KAAK,qBAAqB,OAAO,MAAM,UAAU;AAC3F;EACF;AACA,SAAO,OAAO,KAAK,qBAAqB,QAAQ,UAAU;AACxD;EACF;AACA,QAAM,SAAS,WAAW,qBAAqB;AAC/C,SAAO,EAAC,MAAM,QAAQ,UAAU,MAAM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