@angular/compiler-cli 18.2.1 → 18.2.3

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 (45) hide show
  1. package/bundles/{chunk-5I46MBAD.js → chunk-2Q6KYU3A.js} +226 -166
  2. package/bundles/chunk-2Q6KYU3A.js.map +6 -0
  3. package/bundles/{chunk-NOUP24WG.js → chunk-2ZTB2SIK.js} +5 -5
  4. package/bundles/{chunk-XNL3EK5H.js → chunk-3W345P4E.js} +7 -7
  5. package/bundles/{chunk-ZHJO7SMX.js → chunk-7PEXPTYL.js} +12 -12
  6. package/bundles/{chunk-THQF5ZZE.js → chunk-ERN7RQQ7.js} +5 -5
  7. package/bundles/{chunk-56IXZIL6.js → chunk-FNLRHOJM.js} +130 -125
  8. package/bundles/chunk-FNLRHOJM.js.map +6 -0
  9. package/bundles/{chunk-B4ZOGV3N.js → chunk-KCKRBU6N.js} +31 -31
  10. package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
  11. package/bundles/{chunk-WR7TUJ7M.js → chunk-QYV344EV.js} +7 -7
  12. package/bundles/{chunk-4GMJ67OV.js → chunk-WUEVCLDR.js} +3 -3
  13. package/bundles/{chunk-5DVL3S3Z.js → chunk-WYWH4ABE.js} +43 -43
  14. package/bundles/index.js +12 -12
  15. package/bundles/linker/babel/index.js +12 -12
  16. package/bundles/linker/index.js +4 -4
  17. package/bundles/ngcc/index.js +1 -1
  18. package/bundles/private/bazel.js +1 -1
  19. package/bundles/private/localize.js +3 -3
  20. package/bundles/private/migrations.js +4 -4
  21. package/bundles/private/tooling.js +6 -6
  22. package/bundles/src/bin/ng_xi18n.js +10 -10
  23. package/bundles/src/bin/ngc.js +8 -8
  24. package/bundles_metadata.json +1 -1
  25. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  26. package/package.json +2 -2
  27. package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
  28. package/src/ngtsc/annotations/component/src/resources.d.ts +1 -0
  29. package/src/ngtsc/core/api/src/public_options.d.ts +7 -0
  30. package/src/ngtsc/core/src/compiler.d.ts +6 -1
  31. package/src/ngtsc/docs/src/entities.d.ts +9 -0
  32. package/src/ngtsc/docs/src/extractor.d.ts +4 -1
  33. package/src/ngtsc/docs/src/import_extractor.d.ts +14 -0
  34. package/src/ngtsc/program.d.ts +4 -1
  35. package/bundles/chunk-56IXZIL6.js.map +0 -6
  36. package/bundles/chunk-5I46MBAD.js.map +0 -6
  37. /package/bundles/{chunk-NOUP24WG.js.map → chunk-2ZTB2SIK.js.map} +0 -0
  38. /package/bundles/{chunk-XNL3EK5H.js.map → chunk-3W345P4E.js.map} +0 -0
  39. /package/bundles/{chunk-ZHJO7SMX.js.map → chunk-7PEXPTYL.js.map} +0 -0
  40. /package/bundles/{chunk-THQF5ZZE.js.map → chunk-ERN7RQQ7.js.map} +0 -0
  41. /package/bundles/{chunk-B4ZOGV3N.js.map → chunk-KCKRBU6N.js.map} +0 -0
  42. /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
  43. /package/bundles/{chunk-WR7TUJ7M.js.map → chunk-QYV344EV.js.map} +0 -0
  44. /package/bundles/{chunk-4GMJ67OV.js.map → chunk-WUEVCLDR.js.map} +0 -0
  45. /package/bundles/{chunk-5DVL3S3Z.js.map → chunk-WYWH4ABE.js.map} +0 -0
@@ -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 = "18.2.1";
10
+ export declare const PLACEHOLDER_VERSION = "18.2.3";
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": "18.2.1",
3
+ "version": "18.2.3",
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": "18.2.1",
56
+ "@angular/compiler": "18.2.3",
57
57
  "typescript": ">=5.4 <5.6"
58
58
  },
59
59
  "repository": {
@@ -68,7 +68,8 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
68
68
  private readonly enableLetSyntax;
69
69
  private readonly localCompilationExtraImportsTracker;
70
70
  private readonly jitDeclarationRegistry;
71
- 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, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null, jitDeclarationRegistry: JitDeclarationRegistry);
71
+ private readonly i18nPreserveSignificantWhitespace;
72
+ 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, localCompilationExtraImportsTracker: LocalCompilationExtraImportsTracker | null, jitDeclarationRegistry: JitDeclarationRegistry, i18nPreserveSignificantWhitespace: boolean);
72
73
  private literalCache;
73
74
  private elementSchemaRegistry;
74
75
  /**
@@ -101,6 +101,7 @@ export interface ExtractTemplateOptions {
101
101
  i18nNormalizeLineEndingsInICUs: boolean;
102
102
  enableBlockSyntax: boolean;
103
103
  enableLetSyntax: boolean;
104
+ preserveSignificantWhitespace?: boolean;
104
105
  }
105
106
  export declare function extractTemplate(node: ClassDeclaration, template: TemplateDeclaration, evaluator: PartialEvaluator, depTracker: DependencyTracker | null, resourceLoader: ResourceLoader, options: ExtractTemplateOptions, compilationMode: CompilationMode): ParsedTemplateWithSource;
106
107
  export declare function parseTemplateDeclaration(node: ClassDeclaration, decorator: Decorator, component: Map<string, ts.Expression>, containingFile: string, evaluator: PartialEvaluator, depTracker: DependencyTracker | null, resourceLoader: ResourceLoader, defaultPreserveWhitespaces: boolean): TemplateDeclaration;
@@ -357,6 +357,13 @@ export interface I18nOptions {
357
357
  * The default is `false`, but this will be switched in a future major release.
358
358
  */
359
359
  i18nNormalizeLineEndingsInICUs?: boolean;
360
+ /**
361
+ * Whether or not to preserve whitespace when extracting messages with the legacy (View Engine)
362
+ * pipeline.
363
+ *
364
+ * Defaults to `true`.
365
+ */
366
+ i18nPreserveWhitespaceForLegacyExtraction?: boolean;
360
367
  }
361
368
  /**
362
369
  * Options that specify compilation target.
@@ -240,8 +240,13 @@ export declare class NgCompiler {
240
240
  *
241
241
  * @param entryPoint Path to the entry point for the package for which API
242
242
  * docs should be extracted.
243
+ *
244
+ * @returns A map of symbols with their associated module, eg: ApplicationRef => @angular/core
243
245
  */
244
- getApiDocumentation(entryPoint: string): DocEntry[];
246
+ getApiDocumentation(entryPoint: string): {
247
+ entries: DocEntry[];
248
+ symbols: Map<string, string>;
249
+ };
245
250
  /**
246
251
  * Collect i18n messages into the `Xi18nContext`.
247
252
  */
@@ -5,6 +5,13 @@
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.io/license
7
7
  */
8
+ /** The JSON data file format for extracted API reference info. */
9
+ export interface EntryCollection {
10
+ moduleName: string;
11
+ normalizedModuleName: string;
12
+ moduleLabel: string;
13
+ entries: DocEntry[];
14
+ }
8
15
  /** Type of top-level documentation entry. */
9
16
  export declare enum EntryType {
10
17
  Block = "block",
@@ -84,6 +91,8 @@ export interface ClassEntry extends DocEntry {
84
91
  isAbstract: boolean;
85
92
  members: MemberEntry[];
86
93
  generics: GenericEntry[];
94
+ extends?: string;
95
+ implements: string[];
87
96
  }
88
97
  /** Documentation entity for a TypeScript interface. */
89
98
  export type InterfaceEntry = ClassEntry;
@@ -22,7 +22,10 @@ export declare class DocsExtractor {
22
22
  *
23
23
  * @param sourceFile The file from which to extract documentable entries.
24
24
  */
25
- extractAll(sourceFile: ts.SourceFile, rootDir: string): DocEntry[];
25
+ extractAll(sourceFile: ts.SourceFile, rootDir: string): {
26
+ entries: DocEntry[];
27
+ symbols: Map<string, string>;
28
+ };
26
29
  /** Extract the doc entry for a single declaration. */
27
30
  private extractDeclaration;
28
31
  /** Gets the list of exported declarations for doc extraction. */
@@ -0,0 +1,14 @@
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.io/license
7
+ */
8
+ import ts from 'typescript';
9
+ /**
10
+ * For a given SourceFile, it extracts all imported symbols from other Angular packages.
11
+ *
12
+ * @returns a map Symbol => Package, eg: ApplicationRef => @angular/core
13
+ */
14
+ export declare function getImportedSymbols(sourceFile: ts.SourceFile): Map<string, string>;
@@ -55,6 +55,9 @@ export declare class NgtscProgram implements api.Program {
55
55
  * @param entryPoint Path to the entry point for the package for which API
56
56
  * docs should be extracted.
57
57
  */
58
- getApiDocumentation(entryPoint: string): DocEntry[];
58
+ getApiDocumentation(entryPoint: string): {
59
+ entries: DocEntry[];
60
+ symbols: Map<string, string>;
61
+ };
59
62
  getEmittedSourceFiles(): Map<string, ts.SourceFile>;
60
63
  }