@angular/compiler-cli 19.0.0-next.0 → 19.0.0-next.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-JA5OGHV4.js → chunk-4R27633S.js} +3 -3
  2. package/bundles/{chunk-WYWH4ABE.js → chunk-5DVL3S3Z.js} +43 -43
  3. package/bundles/{chunk-KCKRBU6N.js → chunk-B4ZOGV3N.js} +31 -31
  4. package/bundles/{chunk-TOHNTVMY.js → chunk-LYN2P66H.js} +86 -84
  5. package/bundles/chunk-LYN2P66H.js.map +6 -0
  6. package/bundles/{chunk-2SSA4Y5F.js → chunk-R3PIQMGX.js} +178 -178
  7. package/bundles/chunk-R3PIQMGX.js.map +6 -0
  8. package/bundles/{chunk-LYJKWJUC.js → chunk-SBDNBITT.js} +3 -3
  9. package/bundles/{chunk-ERN7RQQ7.js → chunk-THQF5ZZE.js} +5 -5
  10. package/bundles/{chunk-ZHNORXPH.js → chunk-W4UV2VRG.js} +12 -12
  11. package/bundles/{chunk-QYV344EV.js → chunk-WR7TUJ7M.js} +7 -7
  12. package/bundles/{chunk-3W345P4E.js → chunk-XNL3EK5H.js} +7 -7
  13. package/bundles/{chunk-QTQ6EDMV.js → chunk-YFWSLIDV.js} +5 -5
  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 +3 -3
  27. package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
  28. package/src/ngtsc/annotations/component/src/resources.d.ts +4 -3
  29. package/src/ngtsc/core/api/src/public_options.d.ts +7 -0
  30. package/bundles/chunk-2SSA4Y5F.js.map +0 -6
  31. package/bundles/chunk-TOHNTVMY.js.map +0 -6
  32. /package/bundles/{chunk-JA5OGHV4.js.map → chunk-4R27633S.js.map} +0 -0
  33. /package/bundles/{chunk-WYWH4ABE.js.map → chunk-5DVL3S3Z.js.map} +0 -0
  34. /package/bundles/{chunk-KCKRBU6N.js.map → chunk-B4ZOGV3N.js.map} +0 -0
  35. /package/bundles/{chunk-LYJKWJUC.js.map → chunk-SBDNBITT.js.map} +0 -0
  36. /package/bundles/{chunk-ERN7RQQ7.js.map → chunk-THQF5ZZE.js.map} +0 -0
  37. /package/bundles/{chunk-ZHNORXPH.js.map → chunk-W4UV2VRG.js.map} +0 -0
  38. /package/bundles/{chunk-QYV344EV.js.map → chunk-WR7TUJ7M.js.map} +0 -0
  39. /package/bundles/{chunk-3W345P4E.js.map → chunk-XNL3EK5H.js.map} +0 -0
  40. /package/bundles/{chunk-QTQ6EDMV.js.map → chunk-YFWSLIDV.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 = "19.0.0-next.0";
10
+ export declare const PLACEHOLDER_VERSION = "19.0.0-next.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": "19.0.0-next.0",
3
+ "version": "19.0.0-next.2",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -53,8 +53,8 @@
53
53
  "yargs": "^17.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/compiler": "19.0.0-next.0",
57
- "typescript": ">=5.4 <5.6"
56
+ "@angular/compiler": "19.0.0-next.2",
57
+ "typescript": ">=5.4 <5.7"
58
58
  },
59
59
  "repository": {
60
60
  "type": "git",
@@ -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
  /**
@@ -20,7 +20,7 @@ import { ResourceLoader } from '../../common';
20
20
  */
21
21
  export interface StyleUrlMeta {
22
22
  url: string;
23
- nodeForError: ts.Node;
23
+ expression: ts.Expression;
24
24
  source: ResourceTypeForDiagnostics.StylesheetFromTemplate | ResourceTypeForDiagnostics.StylesheetFromDecorator;
25
25
  }
26
26
  /**
@@ -94,13 +94,14 @@ export interface ExternalTemplateDeclaration extends CommonTemplateDeclaration {
94
94
  */
95
95
  export type TemplateDeclaration = InlineTemplateDeclaration | ExternalTemplateDeclaration;
96
96
  /** Determines the node to use for debugging purposes for the given TemplateDeclaration. */
97
- export declare function getTemplateDeclarationNodeForError(declaration: TemplateDeclaration): ts.Node;
97
+ export declare function getTemplateDeclarationNodeForError(declaration: TemplateDeclaration): ts.Expression;
98
98
  export interface ExtractTemplateOptions {
99
99
  usePoisonedData: boolean;
100
100
  enableI18nLegacyMessageIdFormat: boolean;
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;
@@ -120,6 +121,6 @@ export declare function makeResourceNotFoundError(file: string, nodeForError: ts
120
121
  */
121
122
  export declare function transformDecoratorResources(dec: Decorator, component: Map<string, ts.Expression>, styles: string[], template: ParsedTemplateWithSource): Decorator;
122
123
  export declare function extractComponentStyleUrls(evaluator: PartialEvaluator, component: Map<string, ts.Expression>): StyleUrlMeta[];
123
- export declare function extractStyleResources(resourceLoader: ResourceLoader, component: Map<string, ts.Expression>, containingFile: string): ReadonlySet<Resource>;
124
+ export declare function extractInlineStyleResources(component: Map<string, ts.Expression>): Set<Resource>;
124
125
  export declare function _extractTemplateStyleUrls(template: ParsedTemplateWithSource): StyleUrlMeta[];
125
126
  export {};
@@ -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.