@angular/compiler-cli 21.0.0-next.1 → 21.0.0-next.3
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-BPDNYZBC.js +1 -1
- package/bundles/{chunk-N3VWF7MH.js → chunk-BSGTWRWT.js} +1 -1
- package/bundles/{chunk-5Y5LZ46S.js → chunk-DQC7LG5E.js} +5 -1
- package/bundles/{chunk-UGSARQ4S.js → chunk-GHWSK4FH.js} +15 -5
- package/bundles/{chunk-L4DVGWMZ.js → chunk-XGTXFDVY.js} +1 -1
- package/bundles/index.js +4 -4
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +4 -4
|
@@ -455,7 +455,7 @@ import { compileDirectiveFromMetadata, makeBindingParser, ParseLocation, ParseSo
|
|
|
455
455
|
// packages/compiler-cli/linker/src/file_linker/partial_linkers/util.js
|
|
456
456
|
import { createMayBeForwardRefExpression, outputAst as o2 } from "@angular/compiler";
|
|
457
457
|
import semver from "semver";
|
|
458
|
-
var PLACEHOLDER_VERSION = "21.0.0-next.
|
|
458
|
+
var PLACEHOLDER_VERSION = "21.0.0-next.3";
|
|
459
459
|
function wrapReference(wrapped) {
|
|
460
460
|
return { value: wrapped, type: wrapped };
|
|
461
461
|
}
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
tryParseSignalInputMapping,
|
|
17
17
|
tryParseSignalModelMapping,
|
|
18
18
|
tryParseSignalQueryFromInitializer
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DQC7LG5E.js";
|
|
20
20
|
|
|
21
21
|
// packages/compiler-cli/src/ngtsc/transform/jit/src/downlevel_decorators_transform.js
|
|
22
22
|
import ts from "typescript";
|
|
@@ -10979,7 +10979,7 @@ var CompletionEngine = class {
|
|
|
10979
10979
|
// packages/compiler-cli/src/ngtsc/typecheck/src/context.js
|
|
10980
10980
|
import { ParseSourceFile as ParseSourceFile2 } from "@angular/compiler";
|
|
10981
10981
|
|
|
10982
|
-
// node_modules/.aspect_rules_js/magic-string@0.30.
|
|
10982
|
+
// node_modules/.aspect_rules_js/magic-string@0.30.18/node_modules/magic-string/dist/magic-string.es.mjs
|
|
10983
10983
|
import { encode } from "@jridgewell/sourcemap-codec";
|
|
10984
10984
|
var BitSet = class _BitSet {
|
|
10985
10985
|
constructor(arg) {
|
|
@@ -11827,11 +11827,15 @@ var MagicString = class _MagicString {
|
|
|
11827
11827
|
if (this.byStart[index] || this.byEnd[index])
|
|
11828
11828
|
return;
|
|
11829
11829
|
let chunk = this.lastSearchedChunk;
|
|
11830
|
+
let previousChunk = chunk;
|
|
11830
11831
|
const searchForward = index > chunk.end;
|
|
11831
11832
|
while (chunk) {
|
|
11832
11833
|
if (chunk.contains(index))
|
|
11833
11834
|
return this._splitChunk(chunk, index);
|
|
11834
11835
|
chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
|
|
11836
|
+
if (chunk === previousChunk)
|
|
11837
|
+
return;
|
|
11838
|
+
previousChunk = chunk;
|
|
11835
11839
|
}
|
|
11836
11840
|
}
|
|
11837
11841
|
_splitChunk(chunk, index) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BSGTWRWT.js";
|
|
8
8
|
import {
|
|
9
9
|
AbsoluteModuleStrategy,
|
|
10
10
|
ActivePerfRecorder,
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
toUnredirectedSourceFile,
|
|
93
93
|
tryParseInitializerApi,
|
|
94
94
|
untagAllTsFiles
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-DQC7LG5E.js";
|
|
96
96
|
import {
|
|
97
97
|
LogicalFileSystem,
|
|
98
98
|
absoluteFrom,
|
|
@@ -1297,7 +1297,7 @@ function compareVersions(v1, v2) {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
|
|
1299
1299
|
// packages/compiler-cli/src/typescript_support.js
|
|
1300
|
-
var MIN_TS_VERSION = "5.
|
|
1300
|
+
var MIN_TS_VERSION = "5.9.0";
|
|
1301
1301
|
var MAX_TS_VERSION = "6.0.0";
|
|
1302
1302
|
var tsVersion = ts13.version;
|
|
1303
1303
|
function checkVersion(version, minVersion, maxVersion) {
|
|
@@ -2804,7 +2804,7 @@ var StandaloneComponentScopeReader = class {
|
|
|
2804
2804
|
};
|
|
2805
2805
|
|
|
2806
2806
|
// packages/compiler-cli/src/ngtsc/typecheck/extended/checks/interpolated_signal_not_invoked/index.js
|
|
2807
|
-
import { ASTWithSource as ASTWithSource2, BindingType, Interpolation, PrefixNot, PropertyRead as PropertyRead2, TmplAstBoundAttribute } from "@angular/compiler";
|
|
2807
|
+
import { ASTWithSource as ASTWithSource2, BindingType, Interpolation, PrefixNot, PropertyRead as PropertyRead2, TmplAstBoundAttribute, TmplAstIfBlock, TmplAstSwitchBlock } from "@angular/compiler";
|
|
2808
2808
|
|
|
2809
2809
|
// packages/compiler-cli/src/ngtsc/typecheck/src/symbol_util.js
|
|
2810
2810
|
import ts18 from "typescript";
|
|
@@ -2912,6 +2912,16 @@ var InterpolatedSignalCheck = class extends TemplateCheckWithVisitor {
|
|
|
2912
2912
|
) {
|
|
2913
2913
|
return buildDiagnosticForSignal(ctx, nodeAst, component);
|
|
2914
2914
|
}
|
|
2915
|
+
} else if (node instanceof TmplAstIfBlock) {
|
|
2916
|
+
return node.branches.map((branch) => branch.expression).filter((expr) => expr instanceof ASTWithSource2).map((expr) => {
|
|
2917
|
+
const ast = expr.ast;
|
|
2918
|
+
return ast instanceof PrefixNot ? ast.expression : ast;
|
|
2919
|
+
}).filter((ast) => ast instanceof PropertyRead2).flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
|
|
2920
|
+
} else if (node instanceof TmplAstSwitchBlock && node.expression instanceof ASTWithSource2) {
|
|
2921
|
+
const expression = node.expression.ast instanceof PrefixNot ? node.expression.ast.expression : node.expression.ast;
|
|
2922
|
+
if (expression instanceof PropertyRead2) {
|
|
2923
|
+
return buildDiagnosticForSignal(ctx, expression, component);
|
|
2924
|
+
}
|
|
2915
2925
|
}
|
|
2916
2926
|
return [];
|
|
2917
2927
|
}
|
|
@@ -4663,7 +4673,7 @@ var NgCompiler = class _NgCompiler {
|
|
|
4663
4673
|
const supportJitMode = this.options["supportJitMode"] ?? true;
|
|
4664
4674
|
const supportTestBed = this.options["supportTestBed"] ?? true;
|
|
4665
4675
|
const externalRuntimeStyles = this.options["externalRuntimeStyles"] ?? false;
|
|
4666
|
-
const typeCheckHostBindings = this.options.typeCheckHostBindings ??
|
|
4676
|
+
const typeCheckHostBindings = this.options.typeCheckHostBindings ?? true;
|
|
4667
4677
|
if (supportTestBed === false && compilationMode === CompilationMode.PARTIAL) {
|
|
4668
4678
|
throw new Error('TestBed support ("supportTestBed" option) cannot be disabled in partial compilation mode.');
|
|
4669
4679
|
}
|
package/bundles/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
isTsDiagnostic,
|
|
29
29
|
performCompilation,
|
|
30
30
|
readConfiguration
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-GHWSK4FH.js";
|
|
32
32
|
import {
|
|
33
33
|
ConsoleLogger,
|
|
34
34
|
LogLevel
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
angularJitApplicationTransform,
|
|
38
38
|
getDownlevelDecoratorsTransform,
|
|
39
39
|
getInitializerApiJitTransform
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-BSGTWRWT.js";
|
|
41
41
|
import {
|
|
42
42
|
ActivePerfRecorder,
|
|
43
43
|
ErrorCode,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
TsCreateProgramDriver,
|
|
47
47
|
isLocalCompilationDiagnostics,
|
|
48
48
|
ngErrorCode
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-DQC7LG5E.js";
|
|
50
50
|
import "./chunk-I2BHWRAU.js";
|
|
51
51
|
import {
|
|
52
52
|
InvalidFileSystem,
|
|
@@ -77,7 +77,7 @@ import "./chunk-G7GFT6BU.js";
|
|
|
77
77
|
|
|
78
78
|
// packages/compiler-cli/src/version.js
|
|
79
79
|
import { Version } from "@angular/compiler";
|
|
80
|
-
var VERSION = new Version("21.0.0-next.
|
|
80
|
+
var VERSION = new Version("21.0.0-next.3");
|
|
81
81
|
|
|
82
82
|
// packages/compiler-cli/private/tooling.js
|
|
83
83
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
TypeScriptReflectionHost,
|
|
14
14
|
createForwardRefResolver,
|
|
15
15
|
reflectObjectLiteral
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-DQC7LG5E.js";
|
|
17
17
|
import "../chunk-I2BHWRAU.js";
|
|
18
18
|
import "../chunk-GWZQLAGK.js";
|
|
19
19
|
import "../chunk-XYYEESKY.js";
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-BSGTWRWT.js";
|
|
8
|
+
import "../chunk-DQC7LG5E.js";
|
|
9
9
|
import "../chunk-I2BHWRAU.js";
|
|
10
10
|
import "../chunk-GWZQLAGK.js";
|
|
11
11
|
import "../chunk-XYYEESKY.js";
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
import {
|
|
7
7
|
main,
|
|
8
8
|
readCommandLineAndConfiguration
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-XGTXFDVY.js";
|
|
10
10
|
import {
|
|
11
11
|
EmitFlags
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-GHWSK4FH.js";
|
|
13
|
+
import "../../chunk-BSGTWRWT.js";
|
|
14
|
+
import "../../chunk-DQC7LG5E.js";
|
|
15
15
|
import "../../chunk-I2BHWRAU.js";
|
|
16
16
|
import {
|
|
17
17
|
setFileSystem
|
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
main
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-XGTXFDVY.js";
|
|
9
|
+
import "../../chunk-GHWSK4FH.js";
|
|
10
|
+
import "../../chunk-BSGTWRWT.js";
|
|
11
|
+
import "../../chunk-DQC7LG5E.js";
|
|
12
12
|
import "../../chunk-I2BHWRAU.js";
|
|
13
13
|
import {
|
|
14
14
|
setFileSystem
|
|
@@ -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 = "21.0.0-next.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "21.0.0-next.3";
|
|
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": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.3",
|
|
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.28.
|
|
41
|
+
"@babel/core": "7.28.4",
|
|
42
42
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
43
43
|
"reflect-metadata": "^0.2.0",
|
|
44
44
|
"chokidar": "^4.0.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"yargs": "^18.0.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@angular/compiler": "21.0.0-next.
|
|
52
|
-
"typescript": ">=5.
|
|
51
|
+
"@angular/compiler": "21.0.0-next.3",
|
|
52
|
+
"typescript": ">=5.9 <6.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependenciesMeta": {
|
|
55
55
|
"typescript": {
|