@angular/compiler-cli 19.0.0-rc.0 → 19.0.0-rc.1
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-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
- package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
- package/bundles/{chunk-V2Z4WDVR.js → chunk-AJPANXTD.js} +3 -3
- package/bundles/{chunk-TQQOHNLL.js → chunk-BQXOZNTE.js} +101 -85
- package/bundles/{chunk-TQQOHNLL.js.map → chunk-BQXOZNTE.js.map} +1 -1
- package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
- package/bundles/{chunk-4W4CWRSP.js → chunk-FYHKIXOX.js} +5 -5
- package/bundles/{chunk-S2JI2WY5.js → chunk-HIY6A3BW.js} +190 -157
- package/bundles/chunk-HIY6A3BW.js.map +6 -0
- package/bundles/{chunk-PXQLBKVP.js → chunk-IZRNIUQB.js} +31 -31
- package/bundles/{chunk-TRCFFQ47.js → chunk-KFTXE4DT.js} +52 -49
- package/bundles/chunk-KFTXE4DT.js.map +6 -0
- package/bundles/{chunk-NS33RCEE.js → chunk-LZMAR6SN.js} +12 -12
- package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.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 +3 -3
- package/src/ngtsc/metadata/src/api.d.ts +5 -0
- package/src/ngtsc/metadata/src/util.d.ts +5 -2
- package/src/ngtsc/reflection/src/typescript.d.ts +6 -0
- package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +5 -3
- package/bundles/chunk-S2JI2WY5.js.map +0 -6
- package/bundles/chunk-TRCFFQ47.js.map +0 -6
- /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
- /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
- /package/bundles/{chunk-V2Z4WDVR.js.map → chunk-AJPANXTD.js.map} +0 -0
- /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
- /package/bundles/{chunk-4W4CWRSP.js.map → chunk-FYHKIXOX.js.map} +0 -0
- /package/bundles/{chunk-PXQLBKVP.js.map → chunk-IZRNIUQB.js.map} +0 -0
- /package/bundles/{chunk-NS33RCEE.js.map → chunk-LZMAR6SN.js.map} +0 -0
- /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.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-rc.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "19.0.0-rc.1";
|
|
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-rc.
|
|
3
|
+
"version": "19.0.0-rc.1",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@babel/core": "7.
|
|
46
|
+
"@babel/core": "7.26.0",
|
|
47
47
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
48
48
|
"reflect-metadata": "^0.2.0",
|
|
49
49
|
"chokidar": "^4.0.0",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"yargs": "^17.2.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/compiler": "19.0.0-rc.
|
|
56
|
+
"@angular/compiler": "19.0.0-rc.1",
|
|
57
57
|
"typescript": ">=5.5 <5.7"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
@@ -20,6 +20,11 @@ export interface NgModuleMeta {
|
|
|
20
20
|
imports: Reference<ClassDeclaration>[];
|
|
21
21
|
exports: Reference<ClassDeclaration>[];
|
|
22
22
|
schemas: SchemaMetadata[];
|
|
23
|
+
/**
|
|
24
|
+
* Whether the module had some issue being analyzed.
|
|
25
|
+
* This means it likely does not have complete and reliable metadata.
|
|
26
|
+
*/
|
|
27
|
+
isPoisoned: boolean;
|
|
23
28
|
/**
|
|
24
29
|
* The raw `ts.Expression` which gave rise to `declarations`, if one exists.
|
|
25
30
|
*
|
|
@@ -10,8 +10,11 @@ import { OwningModule, Reference } from '../../imports';
|
|
|
10
10
|
import { ClassDeclaration, ReflectionHost } from '../../reflection';
|
|
11
11
|
import { DirectiveMeta, DirectiveTypeCheckMeta, HostDirectiveMeta, HostDirectiveMetaForGlobalMode, InputMapping, MetadataReader, NgModuleMeta, PipeMeta } from './api';
|
|
12
12
|
import { ClassPropertyMapping } from './property_mapping';
|
|
13
|
-
export declare function extractReferencesFromType(checker: ts.TypeChecker, def: ts.TypeNode, bestGuessOwningModule: OwningModule | null):
|
|
14
|
-
|
|
13
|
+
export declare function extractReferencesFromType(checker: ts.TypeChecker, def: ts.TypeNode, bestGuessOwningModule: OwningModule | null): {
|
|
14
|
+
result: Reference<ClassDeclaration>[];
|
|
15
|
+
isIncomplete: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare function extraReferenceFromTypeQuery(checker: ts.TypeChecker, typeNode: ts.TypeQueryNode, origin: ts.TypeNode, bestGuessOwningModule: OwningModule | null): Reference<ClassDeclaration> | null;
|
|
15
18
|
export declare function readBooleanType(type: ts.TypeNode): boolean | null;
|
|
16
19
|
export declare function readStringType(type: ts.TypeNode): string | null;
|
|
17
20
|
export declare function readMapType<T>(type: ts.TypeNode, valueTransform: (type: ts.TypeNode) => T | null): {
|
|
@@ -60,6 +60,12 @@ export declare class TypeScriptReflectionHost implements ReflectionHost {
|
|
|
60
60
|
}
|
|
61
61
|
export declare function reflectNameOfDeclaration(decl: ts.Declaration): string | null;
|
|
62
62
|
export declare function reflectIdentifierOfDeclaration(decl: ts.Declaration): ts.Identifier | null;
|
|
63
|
+
export declare class TypeEntityToDeclarationError extends Error {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* @throws {TypeEntityToDeclarationError} if the type cannot be converted
|
|
67
|
+
* to a declaration.
|
|
68
|
+
*/
|
|
63
69
|
export declare function reflectTypeEntityToDeclaration(type: ts.EntityName, checker: ts.TypeChecker): {
|
|
64
70
|
node: ts.Declaration;
|
|
65
71
|
from: string | null;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.dev/license
|
|
7
7
|
*/
|
|
8
8
|
import ts from 'typescript';
|
|
9
|
-
import { ImportedSymbolsTracker } from '../../../imports';
|
|
10
|
-
import { TemplateTypeChecker, TypeCheckingConfig } from '../../../typecheck/api';
|
|
11
|
-
import { SourceFileValidatorRule } from './api';
|
|
9
|
+
import type { ImportedSymbolsTracker } from '../../../imports';
|
|
10
|
+
import type { TemplateTypeChecker, TypeCheckingConfig } from '../../../typecheck/api';
|
|
11
|
+
import type { SourceFileValidatorRule } from './api';
|
|
12
12
|
/**
|
|
13
13
|
* Rule that flags unused symbols inside of the `imports` array of a component.
|
|
14
14
|
*/
|
|
@@ -26,4 +26,6 @@ export declare class UnusedStandaloneImportsRule implements SourceFileValidatorR
|
|
|
26
26
|
* @param rawImports AST node that defines the `imports` array.
|
|
27
27
|
*/
|
|
28
28
|
private isPotentialSharedReference;
|
|
29
|
+
/** Gets the node on which to report the diagnostic. */
|
|
30
|
+
private getDiagnosticNode;
|
|
29
31
|
}
|