@angular/compiler-cli 19.0.0-next.7 → 19.0.0-next.8
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-AOL33GUJ.js → chunk-2TSCCC7T.js} +31 -31
- package/bundles/{chunk-FMA7PJT3.js → chunk-3Z25BX6N.js} +7 -7
- package/bundles/{chunk-6YYOILZF.js → chunk-6JG6NFJ7.js} +141 -129
- package/bundles/chunk-6JG6NFJ7.js.map +6 -0
- package/bundles/{chunk-4SDD6AUK.js → chunk-IXNIFZCK.js} +103 -88
- package/bundles/{chunk-4SDD6AUK.js.map → chunk-IXNIFZCK.js.map} +1 -1
- package/bundles/{chunk-IF37SPTA.js → chunk-IXRL26J5.js} +44 -43
- package/bundles/chunk-IXRL26J5.js.map +6 -0
- package/bundles/{chunk-XMNIXGGD.js → chunk-KICABBHP.js} +3 -3
- package/bundles/{chunk-24RAQD7D.js → chunk-LG56S2LO.js} +5 -5
- package/bundles/{chunk-EWRID7KM.js → chunk-OY6IBSDB.js} +12 -12
- package/bundles/{chunk-EH5E5HQO.js → chunk-RT2QTF73.js} +3 -3
- package/bundles/{chunk-MTBZ3GX2.js → chunk-UJ2J6WV4.js} +8 -8
- package/bundles/{chunk-UQPYSPIX.js → chunk-XSNUHRLJ.js} +5 -5
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +6 -6
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/directive/src/handler.d.ts +2 -1
- package/src/ngtsc/annotations/directive/src/shared.d.ts +1 -1
- package/src/ngtsc/annotations/src/pipe.d.ts +2 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +4 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +4 -0
- package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +6 -0
- package/bundles/chunk-6YYOILZF.js.map +0 -6
- package/bundles/chunk-IF37SPTA.js.map +0 -6
- /package/bundles/{chunk-AOL33GUJ.js.map → chunk-2TSCCC7T.js.map} +0 -0
- /package/bundles/{chunk-FMA7PJT3.js.map → chunk-3Z25BX6N.js.map} +0 -0
- /package/bundles/{chunk-XMNIXGGD.js.map → chunk-KICABBHP.js.map} +0 -0
- /package/bundles/{chunk-24RAQD7D.js.map → chunk-LG56S2LO.js.map} +0 -0
- /package/bundles/{chunk-EWRID7KM.js.map → chunk-OY6IBSDB.js.map} +0 -0
- /package/bundles/{chunk-EH5E5HQO.js.map → chunk-RT2QTF73.js.map} +0 -0
- /package/bundles/{chunk-MTBZ3GX2.js.map → chunk-UJ2J6WV4.js.map} +0 -0
- /package/bundles/{chunk-UQPYSPIX.js.map → chunk-XSNUHRLJ.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.8";
|
|
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.8",
|
|
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.
|
|
56
|
+
"@angular/compiler": "19.0.0-next.8",
|
|
57
57
|
"typescript": ">=5.5 <5.7"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
@@ -69,7 +69,8 @@ export declare class ComponentDecoratorHandler implements DecoratorHandler<Decor
|
|
|
69
69
|
private readonly localCompilationExtraImportsTracker;
|
|
70
70
|
private readonly jitDeclarationRegistry;
|
|
71
71
|
private readonly i18nPreserveSignificantWhitespace;
|
|
72
|
-
|
|
72
|
+
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);
|
|
73
74
|
private literalCache;
|
|
74
75
|
private elementSchemaRegistry;
|
|
75
76
|
/**
|
|
@@ -51,7 +51,8 @@ export declare class DirectiveDecoratorHandler implements DecoratorHandler<Decor
|
|
|
51
51
|
private includeClassMetadata;
|
|
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
56
|
readonly precedence = HandlerPrecedence.PRIMARY;
|
|
56
57
|
readonly name = "DirectiveDecoratorHandler";
|
|
57
58
|
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): {
|
|
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): {
|
|
25
25
|
jitForced: false;
|
|
26
26
|
decorator: Map<string, ts.Expression>;
|
|
27
27
|
metadata: R3DirectiveMetadata;
|
|
@@ -41,7 +41,8 @@ export declare class PipeDecoratorHandler implements DecoratorHandler<Decorator,
|
|
|
41
41
|
private includeClassMetadata;
|
|
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
46
|
readonly precedence = HandlerPrecedence.PRIMARY;
|
|
46
47
|
readonly name = "PipeDecoratorHandler";
|
|
47
48
|
detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator> | undefined;
|
|
@@ -240,6 +240,10 @@ export interface DiagnosticOptions {
|
|
|
240
240
|
[Name in ExtendedTemplateDiagnosticName]?: DiagnosticCategoryLabel;
|
|
241
241
|
};
|
|
242
242
|
};
|
|
243
|
+
/**
|
|
244
|
+
* If enabled, non-standalone declarations are prohibited and result in build errors.
|
|
245
|
+
*/
|
|
246
|
+
strictStandalone?: boolean;
|
|
243
247
|
}
|
|
244
248
|
/**
|
|
245
249
|
* Options which control behavior useful for "monorepo" build cases using Bazel (such as the
|
|
@@ -127,6 +127,10 @@ export declare enum ErrorCode {
|
|
|
127
127
|
* pipe.
|
|
128
128
|
*/
|
|
129
129
|
COMPONENT_UNKNOWN_DEFERRED_IMPORT = 2022,
|
|
130
|
+
/**
|
|
131
|
+
* Raised when a `standalone: false` component is declared but `strictStandalone` is set.
|
|
132
|
+
*/
|
|
133
|
+
NON_STANDALONE_NOT_ALLOWED = 2023,
|
|
130
134
|
SYMBOL_NOT_EXPORTED = 3001,
|
|
131
135
|
/**
|
|
132
136
|
* Raised when a relationship between directives and/or pipes would cause a cyclic import to be
|
|
@@ -20,4 +20,10 @@ export declare class UnusedStandaloneImportsRule implements SourceFileValidatorR
|
|
|
20
20
|
shouldCheck(sourceFile: ts.SourceFile): boolean;
|
|
21
21
|
checkNode(node: ts.Node): ts.Diagnostic | null;
|
|
22
22
|
private getUnusedSymbols;
|
|
23
|
+
/**
|
|
24
|
+
* Determines if an import reference *might* be coming from a shared imports array.
|
|
25
|
+
* @param reference Reference to be checked.
|
|
26
|
+
* @param rawImports AST node that defines the `imports` array.
|
|
27
|
+
*/
|
|
28
|
+
private isPotentialSharedReference;
|
|
23
29
|
}
|