@angular/compiler-cli 21.1.2 → 21.2.0-next.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-EESULCDL.js → chunk-2RQPO3GQ.js} +1 -1
- package/bundles/{chunk-G5USKMGN.js → chunk-5VJ6DTNF.js} +2 -2
- package/bundles/{chunk-5W3ZRJ6O.js → chunk-75GBQYD4.js} +1 -1
- package/bundles/{chunk-FROPOOFC.js → chunk-CSUVPNMK.js} +1 -0
- package/bundles/{chunk-WEF4HIPN.js → chunk-IGJURDT5.js} +2 -2
- package/bundles/{chunk-GBKWMNM6.js → chunk-RQUOFNXY.js} +56 -27
- package/bundles/index.js +5 -5
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +3 -3
- package/bundles/private/testing.js +2 -2
- package/bundles/private/tooling.js +2 -2
- 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/translator/src/api/ast_factory.d.ts +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
TrackedIncrementalBuildStrategy,
|
|
9
9
|
freshCompilationTicket,
|
|
10
10
|
incrementalFromCompilerTicket
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-75GBQYD4.js";
|
|
12
12
|
import {
|
|
13
13
|
ActivePerfRecorder,
|
|
14
14
|
OptimizeFor,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
TsCreateProgramDriver,
|
|
19
19
|
replaceTsWithNgInErrors,
|
|
20
20
|
retagAllTsFiles
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RQUOFNXY.js";
|
|
22
22
|
import {
|
|
23
23
|
absoluteFrom,
|
|
24
24
|
createFileSystemTsReadDirectoryFn,
|
|
@@ -44,6 +44,7 @@ var BINARY_OPERATORS = /* @__PURE__ */ new Map([
|
|
|
44
44
|
[o.BinaryOperator.NullishCoalesce, "??"],
|
|
45
45
|
[o.BinaryOperator.Exponentiation, "**"],
|
|
46
46
|
[o.BinaryOperator.In, "in"],
|
|
47
|
+
[o.BinaryOperator.InstanceOf, "instanceof"],
|
|
47
48
|
[o.BinaryOperator.Assign, "="],
|
|
48
49
|
[o.BinaryOperator.AdditionAssignment, "+="],
|
|
49
50
|
[o.BinaryOperator.SubtractionAssignment, "-="],
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
Context,
|
|
10
10
|
ExpressionTranslatorVisitor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CSUVPNMK.js";
|
|
12
12
|
|
|
13
13
|
// packages/compiler-cli/linker/src/fatal_linker_error.js
|
|
14
14
|
var FatalLinkerError = class extends Error {
|
|
@@ -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.
|
|
458
|
+
var PLACEHOLDER_VERSION = "21.2.0-next.0";
|
|
459
459
|
function wrapReference(wrapped) {
|
|
460
460
|
return { value: wrapped, type: wrapped };
|
|
461
461
|
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {
|
|
6
6
|
Context,
|
|
7
7
|
ExpressionTranslatorVisitor
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CSUVPNMK.js";
|
|
9
9
|
import {
|
|
10
10
|
LogicalProjectPath,
|
|
11
11
|
absoluteFrom,
|
|
@@ -229,7 +229,7 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
|
|
|
229
229
|
import { VERSION } from "@angular/compiler";
|
|
230
230
|
var DOC_PAGE_BASE_URL = (() => {
|
|
231
231
|
const full = VERSION.full;
|
|
232
|
-
const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.
|
|
232
|
+
const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.2.0-next.0";
|
|
233
233
|
const prefix = isPreRelease ? "next" : `v${VERSION.major}`;
|
|
234
234
|
return `https://${prefix}.angular.dev`;
|
|
235
235
|
})();
|
|
@@ -5054,14 +5054,14 @@ var ImportManager = class {
|
|
|
5054
5054
|
addNewImport(fileName, ts22.factory.createImportDeclaration(void 0, void 0, ts22.factory.createStringLiteral(moduleName)));
|
|
5055
5055
|
});
|
|
5056
5056
|
namespaceImports.forEach((namespaceImport2, moduleName) => {
|
|
5057
|
-
const newImport = ts22.factory.createImportDeclaration(void 0, ts22.factory.createImportClause(
|
|
5057
|
+
const newImport = ts22.factory.createImportDeclaration(void 0, ts22.factory.createImportClause(false, void 0, namespaceImport2), ts22.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
5058
5058
|
ts22.setOriginalNode(namespaceImport2.name, newImport);
|
|
5059
5059
|
addNewImport(fileName, newImport);
|
|
5060
5060
|
});
|
|
5061
5061
|
namedImports.forEach((specifiers, moduleName) => {
|
|
5062
5062
|
const filteredSpecifiers = specifiers.filter((specifier) => this._canAddSpecifier(sourceFile, moduleName, specifier));
|
|
5063
5063
|
if (filteredSpecifiers.length > 0) {
|
|
5064
|
-
const newImport = ts22.factory.createImportDeclaration(void 0, ts22.factory.createImportClause(
|
|
5064
|
+
const newImport = ts22.factory.createImportDeclaration(void 0, ts22.factory.createImportClause(false, void 0, ts22.factory.createNamedImports(filteredSpecifiers)), ts22.factory.createStringLiteral(moduleName, useSingleQuotes));
|
|
5065
5065
|
addNewImport(fileName, newImport);
|
|
5066
5066
|
}
|
|
5067
5067
|
});
|
|
@@ -5482,7 +5482,6 @@ var TypeScriptAstFactory = class {
|
|
|
5482
5482
|
"||": ts26.SyntaxKind.BarBarToken,
|
|
5483
5483
|
"+": ts26.SyntaxKind.PlusToken,
|
|
5484
5484
|
"??": ts26.SyntaxKind.QuestionQuestionToken,
|
|
5485
|
-
"in": ts26.SyntaxKind.InKeyword,
|
|
5486
5485
|
"=": ts26.SyntaxKind.EqualsToken,
|
|
5487
5486
|
"+=": ts26.SyntaxKind.PlusEqualsToken,
|
|
5488
5487
|
"-=": ts26.SyntaxKind.MinusEqualsToken,
|
|
@@ -5492,7 +5491,9 @@ var TypeScriptAstFactory = class {
|
|
|
5492
5491
|
"**=": ts26.SyntaxKind.AsteriskAsteriskEqualsToken,
|
|
5493
5492
|
"&&=": ts26.SyntaxKind.AmpersandAmpersandEqualsToken,
|
|
5494
5493
|
"||=": ts26.SyntaxKind.BarBarEqualsToken,
|
|
5495
|
-
"??=": ts26.SyntaxKind.QuestionQuestionEqualsToken
|
|
5494
|
+
"??=": ts26.SyntaxKind.QuestionQuestionEqualsToken,
|
|
5495
|
+
"in": ts26.SyntaxKind.InKeyword,
|
|
5496
|
+
"instanceof": ts26.SyntaxKind.InstanceOfKeyword
|
|
5496
5497
|
}))();
|
|
5497
5498
|
VAR_TYPES = (() => ({
|
|
5498
5499
|
"const": ts26.NodeFlags.Const,
|
|
@@ -6759,7 +6760,9 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
6759
6760
|
this.deferrableImports = deferrableImports;
|
|
6760
6761
|
}
|
|
6761
6762
|
visitClassDeclaration(node) {
|
|
6762
|
-
|
|
6763
|
+
const original = ts31.getOriginalNode(node, ts31.isClassDeclaration);
|
|
6764
|
+
const compileResults2 = this.classCompilationMap.get(node) ?? this.classCompilationMap.get(original);
|
|
6765
|
+
if (!compileResults2) {
|
|
6763
6766
|
return { node };
|
|
6764
6767
|
}
|
|
6765
6768
|
const translateOptions = {
|
|
@@ -6768,8 +6771,8 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
6768
6771
|
};
|
|
6769
6772
|
const statements = [];
|
|
6770
6773
|
const members = [...node.members];
|
|
6771
|
-
const sourceFile =
|
|
6772
|
-
for (const field of
|
|
6774
|
+
const sourceFile = original.getSourceFile();
|
|
6775
|
+
for (const field of compileResults2) {
|
|
6773
6776
|
if (field.initializer === null) {
|
|
6774
6777
|
continue;
|
|
6775
6778
|
}
|
|
@@ -14144,11 +14147,11 @@ import { TmplAstBoundAttribute as TmplAstBoundAttribute3, TmplAstTemplate } from
|
|
|
14144
14147
|
import ts65 from "typescript";
|
|
14145
14148
|
|
|
14146
14149
|
// packages/compiler-cli/src/ngtsc/typecheck/src/ops/expression.js
|
|
14147
|
-
import { Binary, BindingPipe, Call as Call3, ImplicitReceiver as
|
|
14150
|
+
import { Binary, BindingPipe, Call as Call3, ImplicitReceiver as ImplicitReceiver4, PropertyRead as PropertyRead4, R3Identifiers as R3Identifiers4, SafeCall as SafeCall2, SafePropertyRead as SafePropertyRead3, ThisReceiver as ThisReceiver4, TmplAstLetDeclaration as TmplAstLetDeclaration2 } from "@angular/compiler";
|
|
14148
14151
|
import ts64 from "typescript";
|
|
14149
14152
|
|
|
14150
14153
|
// packages/compiler-cli/src/ngtsc/typecheck/src/expression.js
|
|
14151
|
-
import { ASTWithSource, Call as Call2,
|
|
14154
|
+
import { ASTWithSource, Call as Call2, ImplicitReceiver as ImplicitReceiver3, PropertyRead as PropertyRead3, SafeKeyedRead, SafePropertyRead as SafePropertyRead2, ThisReceiver as ThisReceiver3 } from "@angular/compiler";
|
|
14152
14155
|
import ts63 from "typescript";
|
|
14153
14156
|
function getAnyExpression() {
|
|
14154
14157
|
return ts63.factory.createAsExpression(ts63.factory.createNumericLiteral("0"), ts63.factory.createKeywordTypeNode(ts63.SyntaxKind.AnyKeyword));
|
|
@@ -14186,7 +14189,6 @@ var AstTranslator = class {
|
|
|
14186
14189
|
["&", ts63.SyntaxKind.AmpersandToken],
|
|
14187
14190
|
["|", ts63.SyntaxKind.BarToken],
|
|
14188
14191
|
["??", ts63.SyntaxKind.QuestionQuestionToken],
|
|
14189
|
-
["in", ts63.SyntaxKind.InKeyword],
|
|
14190
14192
|
["=", ts63.SyntaxKind.EqualsToken],
|
|
14191
14193
|
["+=", ts63.SyntaxKind.PlusEqualsToken],
|
|
14192
14194
|
["-=", ts63.SyntaxKind.MinusEqualsToken],
|
|
@@ -14196,7 +14198,9 @@ var AstTranslator = class {
|
|
|
14196
14198
|
["**=", ts63.SyntaxKind.AsteriskAsteriskEqualsToken],
|
|
14197
14199
|
["&&=", ts63.SyntaxKind.AmpersandAmpersandEqualsToken],
|
|
14198
14200
|
["||=", ts63.SyntaxKind.BarBarEqualsToken],
|
|
14199
|
-
["??=", ts63.SyntaxKind.QuestionQuestionEqualsToken]
|
|
14201
|
+
["??=", ts63.SyntaxKind.QuestionQuestionEqualsToken],
|
|
14202
|
+
["in", ts63.SyntaxKind.InKeyword],
|
|
14203
|
+
["instanceof", ts63.SyntaxKind.InstanceOfKeyword]
|
|
14200
14204
|
]);
|
|
14201
14205
|
constructor(maybeResolve, config) {
|
|
14202
14206
|
this.maybeResolve = maybeResolve;
|
|
@@ -14206,11 +14210,6 @@ var AstTranslator = class {
|
|
|
14206
14210
|
if (ast instanceof ASTWithSource) {
|
|
14207
14211
|
ast = ast.ast;
|
|
14208
14212
|
}
|
|
14209
|
-
if (ast instanceof EmptyExpr2) {
|
|
14210
|
-
const res = ts63.factory.createIdentifier("undefined");
|
|
14211
|
-
addParseSpanInfo(res, ast.sourceSpan);
|
|
14212
|
-
return res;
|
|
14213
|
-
}
|
|
14214
14213
|
const resolved = this.maybeResolve(ast);
|
|
14215
14214
|
if (resolved !== null) {
|
|
14216
14215
|
return resolved;
|
|
@@ -14282,7 +14281,9 @@ var AstTranslator = class {
|
|
|
14282
14281
|
const properties = ast.keys.map((key, idx) => {
|
|
14283
14282
|
const value = this.translate(ast.values[idx]);
|
|
14284
14283
|
if (key.kind === "property") {
|
|
14285
|
-
|
|
14284
|
+
const keyNode = ts63.factory.createStringLiteral(key.key);
|
|
14285
|
+
addParseSpanInfo(keyNode, key.sourceSpan);
|
|
14286
|
+
return ts63.factory.createPropertyAssignment(keyNode, value);
|
|
14286
14287
|
} else {
|
|
14287
14288
|
return ts63.factory.createSpreadAssignment(value);
|
|
14288
14289
|
}
|
|
@@ -14447,6 +14448,31 @@ var AstTranslator = class {
|
|
|
14447
14448
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
14448
14449
|
return node;
|
|
14449
14450
|
}
|
|
14451
|
+
visitEmptyExpr(ast, context) {
|
|
14452
|
+
const node = ts63.factory.createIdentifier("undefined");
|
|
14453
|
+
addParseSpanInfo(node, ast.sourceSpan);
|
|
14454
|
+
return node;
|
|
14455
|
+
}
|
|
14456
|
+
visitArrowFunction(ast) {
|
|
14457
|
+
const params = ast.parameters.map((param) => {
|
|
14458
|
+
const paramNode = ts63.factory.createParameterDeclaration(void 0, void 0, param.name);
|
|
14459
|
+
markIgnoreDiagnostics(paramNode);
|
|
14460
|
+
return paramNode;
|
|
14461
|
+
});
|
|
14462
|
+
const body = astToTypescript(ast.body, (innerAst) => {
|
|
14463
|
+
if (!(innerAst instanceof PropertyRead3) || innerAst.receiver instanceof ThisReceiver3 || !(innerAst.receiver instanceof ImplicitReceiver3)) {
|
|
14464
|
+
return this.maybeResolve(innerAst);
|
|
14465
|
+
}
|
|
14466
|
+
const correspondingParam = ast.parameters.find((arg) => arg.name === innerAst.name);
|
|
14467
|
+
if (correspondingParam) {
|
|
14468
|
+
const node = ts63.factory.createIdentifier(innerAst.name);
|
|
14469
|
+
addParseSpanInfo(node, innerAst.sourceSpan);
|
|
14470
|
+
return node;
|
|
14471
|
+
}
|
|
14472
|
+
return this.maybeResolve(innerAst);
|
|
14473
|
+
}, this.config);
|
|
14474
|
+
return ts63.factory.createArrowFunction(void 0, void 0, params, void 0, void 0, body);
|
|
14475
|
+
}
|
|
14450
14476
|
convertToSafeCall(ast, expr, args) {
|
|
14451
14477
|
if (this.config.strictSafeNavigationTypes) {
|
|
14452
14478
|
const call = ts63.factory.createCallExpression(ts63.factory.createNonNullExpression(expr), void 0, args);
|
|
@@ -14545,6 +14571,9 @@ var VeSafeLhsInferenceBugDetector = class _VeSafeLhsInferenceBugDetector {
|
|
|
14545
14571
|
visitSpreadElement(ast) {
|
|
14546
14572
|
return ast.expression.visit(this);
|
|
14547
14573
|
}
|
|
14574
|
+
visitArrowFunction(ast, context) {
|
|
14575
|
+
return false;
|
|
14576
|
+
}
|
|
14548
14577
|
};
|
|
14549
14578
|
|
|
14550
14579
|
// packages/compiler-cli/src/ngtsc/typecheck/src/ops/expression.js
|
|
@@ -14592,7 +14621,7 @@ var TcbExpressionTranslator = class {
|
|
|
14592
14621
|
* context). This method assists in resolving those.
|
|
14593
14622
|
*/
|
|
14594
14623
|
resolve(ast) {
|
|
14595
|
-
if (ast instanceof PropertyRead4 && ast.receiver instanceof
|
|
14624
|
+
if (ast instanceof PropertyRead4 && ast.receiver instanceof ImplicitReceiver4) {
|
|
14596
14625
|
const target = this.tcb.boundTarget.getExpressionTarget(ast);
|
|
14597
14626
|
const targetExpression = target === null ? null : this.getTargetNodeExpression(target, ast);
|
|
14598
14627
|
if (target instanceof TmplAstLetDeclaration2 && !this.isValidLetDeclarationAccess(target, ast)) {
|
|
@@ -14602,7 +14631,7 @@ var TcbExpressionTranslator = class {
|
|
|
14602
14631
|
}
|
|
14603
14632
|
}
|
|
14604
14633
|
return targetExpression;
|
|
14605
|
-
} else if (ast instanceof Binary && Binary.isAssignmentOperation(ast.operation) && ast.left instanceof PropertyRead4 && (ast.left.receiver instanceof
|
|
14634
|
+
} else if (ast instanceof Binary && Binary.isAssignmentOperation(ast.operation) && ast.left instanceof PropertyRead4 && (ast.left.receiver instanceof ImplicitReceiver4 || ast.left.receiver instanceof ThisReceiver4)) {
|
|
14606
14635
|
const read = ast.left;
|
|
14607
14636
|
const target = this.tcb.boundTarget.getExpressionTarget(read);
|
|
14608
14637
|
if (target === null) {
|
|
@@ -14617,7 +14646,7 @@ var TcbExpressionTranslator = class {
|
|
|
14617
14646
|
this.tcb.oobRecorder.illegalWriteToLetDeclaration(this.tcb.id, read, target);
|
|
14618
14647
|
}
|
|
14619
14648
|
return result;
|
|
14620
|
-
} else if (ast instanceof
|
|
14649
|
+
} else if (ast instanceof ImplicitReceiver4 || ast instanceof ThisReceiver4) {
|
|
14621
14650
|
return ts64.factory.createThis();
|
|
14622
14651
|
} else if (ast instanceof BindingPipe) {
|
|
14623
14652
|
const expr = this.translate(ast.exp);
|
|
@@ -14649,7 +14678,7 @@ var TcbExpressionTranslator = class {
|
|
|
14649
14678
|
addParseSpanInfo(result, ast.sourceSpan);
|
|
14650
14679
|
return result;
|
|
14651
14680
|
} else if ((ast instanceof Call3 || ast instanceof SafeCall2) && (ast.receiver instanceof PropertyRead4 || ast.receiver instanceof SafePropertyRead3)) {
|
|
14652
|
-
if (ast.receiver.receiver instanceof
|
|
14681
|
+
if (ast.receiver.receiver instanceof ImplicitReceiver4 && ast.receiver.name === "$any" && ast.args.length === 1) {
|
|
14653
14682
|
const expr = this.translate(ast.args[0]);
|
|
14654
14683
|
const exprAsAny = ts64.factory.createAsExpression(expr, ts64.factory.createKeywordTypeNode(ts64.SyntaxKind.AnyKeyword));
|
|
14655
14684
|
const result = ts64.factory.createParenthesizedExpression(exprAsAny);
|
|
@@ -15104,7 +15133,7 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
15104
15133
|
};
|
|
15105
15134
|
|
|
15106
15135
|
// packages/compiler-cli/src/ngtsc/typecheck/src/ops/for_block.js
|
|
15107
|
-
import { ImplicitReceiver as
|
|
15136
|
+
import { ImplicitReceiver as ImplicitReceiver5, PropertyRead as PropertyRead5, ThisReceiver as ThisReceiver5, TmplAstVariable } from "@angular/compiler";
|
|
15108
15137
|
import ts71 from "typescript";
|
|
15109
15138
|
var TcbForOfOp = class extends TcbOp {
|
|
15110
15139
|
tcb;
|
|
@@ -15152,7 +15181,7 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
15152
15181
|
}
|
|
15153
15182
|
}
|
|
15154
15183
|
resolve(ast) {
|
|
15155
|
-
if (ast instanceof PropertyRead5 && (ast.receiver instanceof
|
|
15184
|
+
if (ast instanceof PropertyRead5 && (ast.receiver instanceof ImplicitReceiver5 || ast.receiver instanceof ThisReceiver5)) {
|
|
15156
15185
|
const target = this.tcb.boundTarget.getExpressionTarget(ast);
|
|
15157
15186
|
if (target !== null && (!(target instanceof TmplAstVariable) || !this.allowedVariables.has(target))) {
|
|
15158
15187
|
this.tcb.oobRecorder.illegalForLoopTrackAccess(this.tcb.id, this.block, ast);
|
|
@@ -15769,7 +15798,7 @@ var TcbDomSchemaCheckerOp = class extends TcbOp {
|
|
|
15769
15798
|
};
|
|
15770
15799
|
|
|
15771
15800
|
// packages/compiler-cli/src/ngtsc/typecheck/src/ops/events.js
|
|
15772
|
-
import { ImplicitReceiver as
|
|
15801
|
+
import { ImplicitReceiver as ImplicitReceiver6, ParsedEventType as ParsedEventType2, PropertyRead as PropertyRead7, TmplAstElement as TmplAstElement6 } from "@angular/compiler";
|
|
15773
15802
|
import ts76 from "typescript";
|
|
15774
15803
|
var EVENT_PARAMETER = "$event";
|
|
15775
15804
|
function tcbEventHandlerExpression(ast, tcb, scope) {
|
|
@@ -15929,7 +15958,7 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
|
|
|
15929
15958
|
};
|
|
15930
15959
|
var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
15931
15960
|
resolve(ast) {
|
|
15932
|
-
if (ast instanceof PropertyRead7 && ast.receiver instanceof
|
|
15961
|
+
if (ast instanceof PropertyRead7 && ast.receiver instanceof ImplicitReceiver6 && ast.name === EVENT_PARAMETER) {
|
|
15933
15962
|
const event = ts76.factory.createIdentifier(EVENT_PARAMETER);
|
|
15934
15963
|
addParseSpanInfo(event, ast.nameSpan);
|
|
15935
15964
|
return event;
|
package/bundles/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
isTsDiagnostic,
|
|
18
18
|
performCompilation,
|
|
19
19
|
readConfiguration
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5VJ6DTNF.js";
|
|
21
21
|
import {
|
|
22
22
|
ConsoleLogger,
|
|
23
23
|
LogLevel
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
freshCompilationTicket,
|
|
35
35
|
incrementalFromStateTicket,
|
|
36
36
|
isDocEntryWithSourceInfo
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-75GBQYD4.js";
|
|
38
38
|
import {
|
|
39
39
|
ActivePerfRecorder,
|
|
40
40
|
ErrorCode,
|
|
@@ -46,8 +46,8 @@ import {
|
|
|
46
46
|
getInitializerApiJitTransform,
|
|
47
47
|
isLocalCompilationDiagnostics,
|
|
48
48
|
ngErrorCode
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
} from "./chunk-RQUOFNXY.js";
|
|
50
|
+
import "./chunk-CSUVPNMK.js";
|
|
51
51
|
import {
|
|
52
52
|
InvalidFileSystem,
|
|
53
53
|
LogicalFileSystem,
|
|
@@ -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.
|
|
80
|
+
var VERSION = new Version("21.2.0-next.0");
|
|
81
81
|
|
|
82
82
|
// packages/compiler-cli/private/tooling.js
|
|
83
83
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
LinkerEnvironment,
|
|
9
9
|
assert,
|
|
10
10
|
isFatalLinkerError
|
|
11
|
-
} from "../../chunk-
|
|
11
|
+
} from "../../chunk-IGJURDT5.js";
|
|
12
12
|
import {
|
|
13
13
|
ConsoleLogger,
|
|
14
14
|
LogLevel
|
|
15
15
|
} from "../../chunk-6HOSNZU5.js";
|
|
16
16
|
import "../../chunk-HYJ2H3FU.js";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-CSUVPNMK.js";
|
|
18
18
|
import {
|
|
19
19
|
NodeJSFileSystem
|
|
20
20
|
} from "../../chunk-XYYEESKY.js";
|
package/bundles/linker/index.js
CHANGED
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
assert,
|
|
11
11
|
isFatalLinkerError,
|
|
12
12
|
needsLinking
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-IGJURDT5.js";
|
|
14
14
|
import "../chunk-HYJ2H3FU.js";
|
|
15
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-CSUVPNMK.js";
|
|
16
16
|
import "../chunk-G7GFT6BU.js";
|
|
17
17
|
export {
|
|
18
18
|
DEFAULT_LINKER_OPTIONS,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import {
|
|
6
6
|
DiagnosticCategoryLabel,
|
|
7
7
|
NgCompiler
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-75GBQYD4.js";
|
|
9
9
|
import {
|
|
10
10
|
CompilationMode,
|
|
11
11
|
DtsMetadataReader,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
queryDecoratorNames,
|
|
33
33
|
reflectObjectLiteral,
|
|
34
34
|
unwrapExpression
|
|
35
|
-
} from "../chunk-
|
|
36
|
-
import "../chunk-
|
|
35
|
+
} from "../chunk-RQUOFNXY.js";
|
|
36
|
+
import "../chunk-CSUVPNMK.js";
|
|
37
37
|
import {
|
|
38
38
|
getFileSystem,
|
|
39
39
|
isLocalRelativePath
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
ImportedSymbolsTracker,
|
|
7
7
|
TypeScriptReflectionHost,
|
|
8
8
|
getInitializerApiJitTransform
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-RQUOFNXY.js";
|
|
10
|
+
import "../chunk-CSUVPNMK.js";
|
|
11
11
|
import {
|
|
12
12
|
InvalidFileSystem,
|
|
13
13
|
absoluteFrom,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
angularJitApplicationTransform
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-RQUOFNXY.js";
|
|
8
|
+
import "../chunk-CSUVPNMK.js";
|
|
9
9
|
import "../chunk-CEBE44Q5.js";
|
|
10
10
|
import "../chunk-XYYEESKY.js";
|
|
11
11
|
import "../chunk-G7GFT6BU.js";
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
import {
|
|
7
7
|
main,
|
|
8
8
|
readCommandLineAndConfiguration
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-2RQPO3GQ.js";
|
|
10
10
|
import {
|
|
11
11
|
EmitFlags
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-5VJ6DTNF.js";
|
|
13
|
+
import "../../chunk-75GBQYD4.js";
|
|
14
|
+
import "../../chunk-RQUOFNXY.js";
|
|
15
|
+
import "../../chunk-CSUVPNMK.js";
|
|
16
16
|
import {
|
|
17
17
|
setFileSystem
|
|
18
18
|
} from "../../chunk-CEBE44Q5.js";
|
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
main
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-2RQPO3GQ.js";
|
|
9
|
+
import "../../chunk-5VJ6DTNF.js";
|
|
10
|
+
import "../../chunk-75GBQYD4.js";
|
|
11
|
+
import "../../chunk-RQUOFNXY.js";
|
|
12
|
+
import "../../chunk-CSUVPNMK.js";
|
|
13
13
|
import {
|
|
14
14
|
setFileSystem
|
|
15
15
|
} from "../../chunk-CEBE44Q5.js";
|
|
@@ -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.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "21.2.0-next.0";
|
|
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.
|
|
3
|
+
"version": "21.2.0-next.0",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/core": "7.28.
|
|
33
|
+
"@babel/core": "7.28.6",
|
|
34
34
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
35
35
|
"reflect-metadata": "^0.2.0",
|
|
36
36
|
"chokidar": "^5.0.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"typescript": "5.9.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@angular/compiler": "21.
|
|
46
|
+
"@angular/compiler": "21.2.0-next.0",
|
|
47
47
|
"typescript": ">=5.9 <6.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
@@ -252,7 +252,7 @@ export type UnaryOperator = '+' | '-' | '!';
|
|
|
252
252
|
/**
|
|
253
253
|
* The binary operators supported by the `AstFactory`.
|
|
254
254
|
*/
|
|
255
|
-
export type BinaryOperator = '&&' | '>' | '>=' | '&' | '|' | '/' | '==' | '===' | '<' | '<=' | '-' | '%' | '*' | '**' | '!=' | '!==' | '||' | '+' | '??' | '
|
|
255
|
+
export type BinaryOperator = '&&' | '>' | '>=' | '&' | '|' | '/' | '==' | '===' | '<' | '<=' | '-' | '%' | '*' | '**' | '!=' | '!==' | '||' | '+' | '??' | '=' | '+=' | '-=' | '*=' | '/=' | '%=' | '**=' | '&&=' | '||=' | '??=' | 'in' | 'instanceof';
|
|
256
256
|
/**
|
|
257
257
|
* The original location of the start or end of a node created by the `AstFactory`.
|
|
258
258
|
*/
|