@angular/compiler-cli 20.1.0-next.3 → 20.1.0
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-DI76UIWO.js → chunk-2FHBFXPC.js} +2 -2
- package/bundles/{chunk-3NKMA2JO.js → chunk-5JF7HF3W.js} +4 -4
- package/bundles/chunk-5JF7HF3W.js.map +6 -0
- package/bundles/{chunk-J27XEXWK.js → chunk-5TMRGUHP.js} +2 -2
- package/bundles/chunk-FPHHL4UV.js +1 -1
- package/bundles/{chunk-YYCGL737.js → chunk-JXYBFWGA.js} +2 -2
- package/bundles/{chunk-JVXFMHZL.js → chunk-UZOSFHTN.js} +203 -187
- package/bundles/chunk-UZOSFHTN.js.map +6 -0
- package/bundles/{chunk-M6L5FWG4.js → chunk-YNE6T2TY.js} +93 -29
- package/bundles/chunk-YNE6T2TY.js.map +6 -0
- package/bundles/index.js +6 -6
- package/bundles/linker/babel/index.js +1 -1
- package/bundles/private/localize.js +1 -1
- 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/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +3 -3
- package/src/ngtsc/annotations/component/src/metadata.d.ts +2 -2
- package/src/ngtsc/annotations/component/src/util.d.ts +5 -5
- package/src/ngtsc/docs/src/entities.d.ts +5 -1
- package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +6 -3
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +3 -0
- package/src/ngtsc/typecheck/src/expression.d.ts +2 -2
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +2 -2
- package/bundles/chunk-3NKMA2JO.js.map +0 -6
- package/bundles/chunk-JVXFMHZL.js.map +0 -6
- package/bundles/chunk-M6L5FWG4.js.map +0 -6
- /package/bundles/{chunk-DI76UIWO.js.map → chunk-2FHBFXPC.js.map} +0 -0
- /package/bundles/{chunk-J27XEXWK.js.map → chunk-5TMRGUHP.js.map} +0 -0
- /package/bundles/{chunk-YYCGL737.js.map → chunk-JXYBFWGA.js.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "20.1.0
|
|
3
|
+
"version": "20.1.0",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@babel/core": "7.
|
|
41
|
+
"@babel/core": "7.28.0",
|
|
42
42
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
43
43
|
"reflect-metadata": "^0.2.0",
|
|
44
44
|
"chokidar": "^4.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"yargs": "^18.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@angular/compiler": "20.1.0
|
|
51
|
+
"@angular/compiler": "20.1.0",
|
|
52
52
|
"typescript": ">=5.8 <5.9"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
@@ -5,7 +5,7 @@
|
|
|
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.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { LegacyAnimationTriggerNames, DeclarationListEmitMode, DeferBlockDepsEmitMode, R3ClassDebugInfo, R3ClassMetadata, R3ComponentMetadata, R3DeferPerBlockDependency, R3DeferPerComponentDependency, R3TemplateDependencyMetadata, SchemaMetadata, TmplAstDeferredBlock } from '@angular/compiler';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { Reference } from '../../../imports';
|
|
11
11
|
import { ClassPropertyMapping, DirectiveResources, DirectiveTypeCheckMeta, HostDirectiveMeta, InputMapping } from '../../../metadata';
|
|
@@ -54,7 +54,7 @@ export interface ComponentAnalysisData {
|
|
|
54
54
|
*/
|
|
55
55
|
inlineStyles: string[] | null;
|
|
56
56
|
isPoisoned: boolean;
|
|
57
|
-
|
|
57
|
+
legacyAnimationTriggerNames: LegacyAnimationTriggerNames | null;
|
|
58
58
|
rawImports: ts.Expression | null;
|
|
59
59
|
resolvedImports: Reference<ClassDeclaration>[] | null;
|
|
60
60
|
rawDeferredImports: ts.Expression | null;
|
|
@@ -5,7 +5,7 @@
|
|
|
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.dev/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { LegacyAnimationTriggerNames } from '@angular/compiler';
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { Reference } from '../../../imports';
|
|
11
11
|
import { ForeignFunctionResolver, ResolvedValue } from '../../../partial_evaluator';
|
|
@@ -13,12 +13,12 @@ import { ClassDeclaration } from '../../../reflection';
|
|
|
13
13
|
/**
|
|
14
14
|
* Collect the animation names from the static evaluation result.
|
|
15
15
|
* @param value the static evaluation result of the animations
|
|
16
|
-
* @param
|
|
16
|
+
* @param legacyAnimationTriggerNames the animation names collected and whether some names could not be
|
|
17
17
|
* statically evaluated.
|
|
18
18
|
*/
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
21
|
-
export declare const
|
|
19
|
+
export declare function collectLegacyAnimationNames(value: ResolvedValue, legacyAnimationTriggerNames: LegacyAnimationTriggerNames): void;
|
|
20
|
+
export declare function isLegacyAngularAnimationsReference(reference: Reference, symbolName: string): boolean;
|
|
21
|
+
export declare const legacyAnimationTriggerResolver: ForeignFunctionResolver;
|
|
22
22
|
export declare function validateAndFlattenComponentImports(imports: ResolvedValue, expr: ts.Expression, isDeferred: boolean): {
|
|
23
23
|
imports: Reference<ClassDeclaration>[];
|
|
24
24
|
diagnostics: ts.Diagnostic[];
|
|
@@ -105,7 +105,11 @@ export interface EnumEntry extends DocEntry {
|
|
|
105
105
|
/** Documentation entity for an Angular decorator. */
|
|
106
106
|
export interface DecoratorEntry extends DocEntry {
|
|
107
107
|
decoratorType: DecoratorType;
|
|
108
|
-
members: PropertyEntry[];
|
|
108
|
+
members: PropertyEntry[] | null;
|
|
109
|
+
signatures: {
|
|
110
|
+
parameters: ParameterEntry[];
|
|
111
|
+
jsdocTags: JsDocTagEntry[];
|
|
112
|
+
}[];
|
|
109
113
|
}
|
|
110
114
|
/** Documentation entity for an Angular directives and components. */
|
|
111
115
|
export interface DirectiveEntry extends ClassEntry {
|
|
@@ -18,12 +18,13 @@ type Scope = Map<ts.ParameterDeclaration, ResolvedValue>;
|
|
|
18
18
|
interface Context {
|
|
19
19
|
originatingFile: ts.SourceFile;
|
|
20
20
|
/**
|
|
21
|
-
* The module name (if any) which was used to reach the currently resolving
|
|
21
|
+
* The module name (if any) which was used to reach the currently resolving
|
|
22
|
+
* symbols.
|
|
22
23
|
*/
|
|
23
24
|
absoluteModuleName: string | null;
|
|
24
25
|
/**
|
|
25
|
-
* A file name representing the context in which the current
|
|
26
|
-
* resolved.
|
|
26
|
+
* A file name representing the context in which the current
|
|
27
|
+
* `absoluteModuleName`, if any, was resolved.
|
|
27
28
|
*/
|
|
28
29
|
resolutionContext: string;
|
|
29
30
|
scope: Scope;
|
|
@@ -33,6 +34,8 @@ export declare class StaticInterpreter {
|
|
|
33
34
|
private host;
|
|
34
35
|
private checker;
|
|
35
36
|
private dependencyTracker;
|
|
37
|
+
private readonly BINARY_OPERATORS;
|
|
38
|
+
private readonly UNARY_OPERATORS;
|
|
36
39
|
constructor(host: ReflectionHost, checker: ts.TypeChecker, dependencyTracker: DependencyTracker | null);
|
|
37
40
|
visit(node: ts.Expression, context: Context): ResolvedValue;
|
|
38
41
|
private visitExpression;
|
|
@@ -13,6 +13,9 @@ import { AstFactory, BinaryOperator, LeadingComment, ObjectLiteralProperty, Sour
|
|
|
13
13
|
export declare class TypeScriptAstFactory implements AstFactory<ts.Statement, ts.Expression> {
|
|
14
14
|
private annotateForClosureCompiler;
|
|
15
15
|
private externalSourceFiles;
|
|
16
|
+
private readonly UNARY_OPERATORS;
|
|
17
|
+
private readonly BINARY_OPERATORS;
|
|
18
|
+
private readonly VAR_TYPES;
|
|
16
19
|
constructor(annotateForClosureCompiler: boolean);
|
|
17
20
|
attachComments: typeof attachComments;
|
|
18
21
|
createArrayLiteral: (elements?: readonly ts.Expression[], multiLine?: boolean) => ts.ArrayLiteralExpression;
|
|
@@ -9,7 +9,7 @@ import { AST } from '@angular/compiler';
|
|
|
9
9
|
import ts from 'typescript';
|
|
10
10
|
import { TypeCheckingConfig } from '../api';
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Gets an expression that is cast to any. Currently represented as `0 as any`.
|
|
13
13
|
*
|
|
14
14
|
* Historically this expression was using `null as any`, but a newly-added check in TypeScript 5.6
|
|
15
15
|
* (https://devblogs.microsoft.com/typescript/announcing-typescript-5-6-beta/#disallowed-nullish-and-truthy-checks)
|
|
@@ -19,7 +19,7 @@ import { TypeCheckingConfig } from '../api';
|
|
|
19
19
|
* - Some flavor of function call, like `isNan(0) as any` - requires even more characters than the
|
|
20
20
|
* NaN option and has the same issue with `noLib`.
|
|
21
21
|
*/
|
|
22
|
-
export declare
|
|
22
|
+
export declare function getAnyExpression(): ts.AsExpression;
|
|
23
23
|
/**
|
|
24
24
|
* Convert an `AST` to TypeScript code directly, without going through an intermediate `Expression`
|
|
25
25
|
* AST.
|
|
@@ -220,9 +220,9 @@ declare class Scope {
|
|
|
220
220
|
*/
|
|
221
221
|
private statements;
|
|
222
222
|
/**
|
|
223
|
-
*
|
|
223
|
+
* Gets names of the for loop context variables and their types.
|
|
224
224
|
*/
|
|
225
|
-
private static
|
|
225
|
+
private static getForLoopContextVariableTypes;
|
|
226
226
|
private constructor();
|
|
227
227
|
/**
|
|
228
228
|
* Constructs a `Scope` given either a `TmplAstTemplate` or a list of `TmplAstNode`s.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../src/ngtsc/file_system/src/node_js_file_system.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;AAQA,OAAO,QAAQ;AACf,SAAQ,qBAAoB;AAC5B,YAAY,OAAO;AACnB,SAAQ,qBAAoB;AAetB,IAAO,yBAAP,MAA6B;EACjC,MAAG;AACD,WAAO,KAAK,UAAU,QAAQ,IAAG,CAAE;EACrC;EACA,MAAM,KAAmB;AACvB,YAAQ,MAAM,GAAG;EACnB;EACA,WAAW,OAAe;AACxB,WAAO,KAAK,UAAY,UAAQ,GAAG,KAAK,CAAC;EAC3C;EAEA,QAA0B,MAAO;AAC/B,WAAO,KAAK,UAAY,UAAQ,IAAI,CAAC;EACvC;EACA,KAAuB,aAAgB,OAAe;AACpD,WAAO,KAAK,UAAY,OAAK,UAAU,GAAG,KAAK,CAAC;EAClD;EACA,OAAO,MAAoB;AACzB,WAAO,KAAK,QAAQ,IAAI,MAAM,KAAK,UAAU,IAAI;EACnD;EACA,SAAS,MAAY;AACnB,WAAS,aAAW,IAAI;EAC1B;EACA,SAA+B,MAAS,IAAK;AAC3C,WAAO,KAAK,UAAY,WAAS,MAAM,EAAE,CAAC;EAC5C;EACA,SAAS,UAAkB,WAAkB;AAC3C,WAAS,WAAS,UAAU,SAAS;EACvC;EACA,QAAQ,MAAkC;AACxC,WAAS,UAAQ,IAAI;EACvB;EACA,UAA4B,MAAO;AAEjC,WAAO,KAAK,QAAQ,OAAO,GAAG;EAChC;;AAKF,IAAM,aAAa,OAAO,eAAe;AACzC,IAAM,iBAAiB,aAAa,OAAO,YAAY;AACvD,IAAM,kBAAkB,aAAa,aAAa,cAAc,cAAe;AAKzE,IAAO,2BAAP,cAAwC,uBAAsB;EAC1D,iBAAsC;EAC9C,kBAAe;AACb,QAAI,KAAK,mBAAmB,QAAW;AAGrC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