@angular/compiler-cli 19.0.0-next.8 → 19.0.0-next.9
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.
- package/bundles/{chunk-LG56S2LO.js → chunk-5W3ITOS7.js} +3 -3
- package/bundles/chunk-5W3ITOS7.js.map +6 -0
- package/bundles/{chunk-6JG6NFJ7.js → chunk-GCXHOI3T.js} +47 -13
- package/bundles/chunk-GCXHOI3T.js.map +6 -0
- package/bundles/{chunk-2TSCCC7T.js → chunk-JF4LKQQP.js} +3 -3
- package/bundles/{chunk-IXRL26J5.js → chunk-OSPR7JSU.js} +3 -3
- package/bundles/{chunk-IXRL26J5.js.map → chunk-OSPR7JSU.js.map} +1 -1
- package/bundles/{chunk-IXNIFZCK.js → chunk-U6J7NRJM.js} +17 -10
- package/bundles/chunk-U6J7NRJM.js.map +6 -0
- package/bundles/{chunk-OY6IBSDB.js → chunk-XP6IMCQP.js} +3 -3
- package/bundles/{chunk-KICABBHP.js → chunk-ZQ7CP635.js} +2 -2
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/tooling.js +4 -4
- package/bundles/src/bin/ng_xi18n.js +5 -5
- package/bundles/src/bin/ngc.js +5 -5
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/annotations/common/src/api.d.ts +14 -0
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
- package/src/ngtsc/core/api/src/interfaces.d.ts +14 -0
- package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
- package/bundles/chunk-6JG6NFJ7.js.map +0 -6
- package/bundles/chunk-IXNIFZCK.js.map +0 -6
- package/bundles/chunk-LG56S2LO.js.map +0 -6
- /package/bundles/{chunk-2TSCCC7T.js.map → chunk-JF4LKQQP.js.map} +0 -0
- /package/bundles/{chunk-OY6IBSDB.js.map → chunk-XP6IMCQP.js.map} +0 -0
- /package/bundles/{chunk-KICABBHP.js.map → chunk-ZQ7CP635.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.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "19.0.0-next.9";
|
|
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.
|
|
3
|
+
"version": "19.0.0-next.9",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@babel/core": "7.25.2",
|
|
47
47
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
48
48
|
"reflect-metadata": "^0.2.0",
|
|
49
|
-
"chokidar": "^
|
|
49
|
+
"chokidar": "^4.0.0",
|
|
50
50
|
"convert-source-map": "^1.5.1",
|
|
51
51
|
"semver": "^7.0.0",
|
|
52
52
|
"tslib": "^2.3.0",
|
|
53
53
|
"yargs": "^17.2.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/compiler": "19.0.0-next.
|
|
56
|
+
"@angular/compiler": "19.0.0-next.9",
|
|
57
57
|
"typescript": ">=5.5 <5.7"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
@@ -79,4 +79,18 @@ export interface ResourceLoaderContext {
|
|
|
79
79
|
* The absolute path to the file that contains the resource or reference to the resource.
|
|
80
80
|
*/
|
|
81
81
|
containingFile: string;
|
|
82
|
+
/**
|
|
83
|
+
* For style resources, the placement of the style within the containing file with lower numbers
|
|
84
|
+
* being before higher numbers.
|
|
85
|
+
* The value is primarily used by the Angular CLI to create a deterministic identifier for each
|
|
86
|
+
* style in HMR scenarios.
|
|
87
|
+
* This is undefined for templates.
|
|
88
|
+
*/
|
|
89
|
+
order?: number;
|
|
90
|
+
/**
|
|
91
|
+
* The name of the class that defines the component using the resource.
|
|
92
|
+
* This allows identifying the source usage of a resource in cases where multiple components are
|
|
93
|
+
* contained in a single source file.
|
|
94
|
+
*/
|
|
95
|
+
className: string;
|
|
82
96
|
}
|
|
@@ -66,11 +66,12 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
|
|
|
66
66
|
private readonly forbidOrphanRendering;
|
|
67
67
|
private readonly enableBlockSyntax;
|
|
68
68
|
private readonly enableLetSyntax;
|
|
69
|
+
private readonly externalRuntimeStyles;
|
|
69
70
|
private readonly localCompilationExtraImportsTracker;
|
|
70
71
|
private readonly jitDeclarationRegistry;
|
|
71
72
|
private readonly i18nPreserveSignificantWhitespace;
|
|
72
73
|
private readonly strictStandalone;
|
|
73
|
-
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, strictStandalone: boolean);
|
|
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
75
|
private literalCache;
|
|
75
76
|
private elementSchemaRegistry;
|
|
76
77
|
/**
|
|
@@ -78,6 +78,20 @@ export interface ResourceHostContext {
|
|
|
78
78
|
* The absolute path to the file that contains the resource or reference to the resource.
|
|
79
79
|
*/
|
|
80
80
|
readonly containingFile: string;
|
|
81
|
+
/**
|
|
82
|
+
* For style resources, the placement of the style within the containing file with lower numbers
|
|
83
|
+
* being before higher numbers.
|
|
84
|
+
* The value is primarily used by the Angular CLI to create a deterministic identifier for each
|
|
85
|
+
* style in HMR scenarios.
|
|
86
|
+
* This is undefined for templates.
|
|
87
|
+
*/
|
|
88
|
+
readonly order?: number;
|
|
89
|
+
/**
|
|
90
|
+
* The name of the class that defines the component using the resource.
|
|
91
|
+
* This allows identifying the source usage of a resource in cases where multiple components are
|
|
92
|
+
* contained in a single source file.
|
|
93
|
+
*/
|
|
94
|
+
className: string;
|
|
81
95
|
}
|
|
82
96
|
/**
|
|
83
97
|
* The successful transformation result of the `ResourceHost.transformResource` function.
|
|
@@ -33,7 +33,7 @@ export interface TemplateTypeChecker {
|
|
|
33
33
|
/**
|
|
34
34
|
* Retrieve the template in use for the given component.
|
|
35
35
|
*/
|
|
36
|
-
getTemplate(component: ts.ClassDeclaration): TmplAstNode[] | null;
|
|
36
|
+
getTemplate(component: ts.ClassDeclaration, optimizeFor?: OptimizeFor): TmplAstNode[] | null;
|
|
37
37
|
/**
|
|
38
38
|
* Get all `ts.Diagnostic`s currently available for the given `ts.SourceFile`.
|
|
39
39
|
*
|
|
@@ -75,7 +75,7 @@ export declare class TemplateTypeCheckerImpl implements TemplateTypeChecker {
|
|
|
75
75
|
private elementTagCache;
|
|
76
76
|
private isComplete;
|
|
77
77
|
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
|
-
getTemplate(component: ts.ClassDeclaration): TmplAstNode[] | null;
|
|
78
|
+
getTemplate(component: ts.ClassDeclaration, optimizeFor?: OptimizeFor): TmplAstNode[] | null;
|
|
79
79
|
getUsedDirectives(component: ts.ClassDeclaration): TypeCheckableDirectiveMeta[] | null;
|
|
80
80
|
getUsedPipes(component: ts.ClassDeclaration): string[] | null;
|
|
81
81
|
private getLatestComponentState;
|