@angular/compiler-cli 21.1.2 → 21.1.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-EESULCDL.js → chunk-C74B7SVK.js} +1 -1
- package/bundles/chunk-GBKWMNM6.js +1 -1
- package/bundles/{chunk-G5USKMGN.js → chunk-HGWUZTYN.js} +1 -1
- package/bundles/chunk-WEF4HIPN.js +1 -1
- package/bundles/{chunk-5W3ZRJ6O.js → chunk-YPCN4FK3.js} +30 -5
- package/bundles/index.js +3 -3
- package/bundles/private/migrations.js +1 -1
- package/bundles/src/bin/ng_xi18n.js +3 -3
- package/bundles/src/bin/ngc.js +3 -3
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
|
@@ -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.1.
|
|
232
|
+
const isPreRelease = full.includes("-next") || full.includes("-rc") || full === "21.1.3";
|
|
233
233
|
const prefix = isPreRelease ? "next" : `v${VERSION.major}`;
|
|
234
234
|
return `https://${prefix}.angular.dev`;
|
|
235
235
|
})();
|
|
@@ -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.1.
|
|
458
|
+
var PLACEHOLDER_VERSION = "21.1.3";
|
|
459
459
|
function wrapReference(wrapped) {
|
|
460
460
|
return { value: wrapped, type: wrapped };
|
|
461
461
|
}
|
|
@@ -162,12 +162,32 @@ function extractJsDocTags(node) {
|
|
|
162
162
|
return ts.getJSDocTags(escapedNode).map((t) => {
|
|
163
163
|
return {
|
|
164
164
|
name: t.tagName.getText(),
|
|
165
|
-
|
|
166
|
-
// eg: @see https://angular.dev
|
|
167
|
-
comment: unescapeAngularDecorators(ts.getTextOfJSDocComment(t.comment) ?? "")
|
|
165
|
+
comment: unescapeAngularDecorators(getJSDocTagComment(t) ?? "")
|
|
168
166
|
};
|
|
169
167
|
});
|
|
170
168
|
}
|
|
169
|
+
function getJSDocTagComment(tag) {
|
|
170
|
+
const comment = tag.comment;
|
|
171
|
+
if (comment === void 0)
|
|
172
|
+
return void 0;
|
|
173
|
+
if (typeof comment === "string") {
|
|
174
|
+
if (comment.startsWith("://")) {
|
|
175
|
+
const rawText = tag.getText();
|
|
176
|
+
if (rawText.includes("https" + comment)) {
|
|
177
|
+
return "https" + comment;
|
|
178
|
+
}
|
|
179
|
+
if (rawText.includes("http" + comment)) {
|
|
180
|
+
return "http" + comment;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return comment;
|
|
184
|
+
}
|
|
185
|
+
let text = ts.getTextOfJSDocComment(comment);
|
|
186
|
+
if (text) {
|
|
187
|
+
text = text.replace(/ \(\)\}$/, "()}");
|
|
188
|
+
}
|
|
189
|
+
return text;
|
|
190
|
+
}
|
|
171
191
|
function extractJsDocDescription(node) {
|
|
172
192
|
const escapedNode = getEscapedNode(node);
|
|
173
193
|
const commentOrTag = ts.getJSDocCommentsAndTags(escapedNode).find((d) => {
|
|
@@ -319,12 +339,17 @@ function extractReturnType(signature, typeChecker) {
|
|
|
319
339
|
if (signature?.declaration?.type && ts3.isTypePredicateNode(signature.declaration.type)) {
|
|
320
340
|
return signature.declaration.type.getText();
|
|
321
341
|
}
|
|
322
|
-
|
|
323
|
-
|
|
342
|
+
const returnType = typeChecker.getReturnTypeOfSignature(signature);
|
|
343
|
+
const returnTypeString = typeChecker.typeToString(
|
|
344
|
+
returnType,
|
|
324
345
|
void 0,
|
|
325
346
|
// This ensures that e.g. `T | undefined` is not reduced to `T`.
|
|
326
347
|
ts3.TypeFormatFlags.NoTypeReduction | ts3.TypeFormatFlags.NoTruncation
|
|
327
348
|
);
|
|
349
|
+
if (returnTypeString === "any" && signature.declaration?.type && signature.declaration.type.kind !== ts3.SyntaxKind.AnyKeyword) {
|
|
350
|
+
return signature.declaration.type.getText();
|
|
351
|
+
}
|
|
352
|
+
return returnTypeString;
|
|
328
353
|
}
|
|
329
354
|
function findImplementationOfFunction(node, typeChecker) {
|
|
330
355
|
if (node.body !== void 0 || node.name === void 0) {
|
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-HGWUZTYN.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-YPCN4FK3.js";
|
|
38
38
|
import {
|
|
39
39
|
ActivePerfRecorder,
|
|
40
40
|
ErrorCode,
|
|
@@ -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.1.
|
|
80
|
+
var VERSION = new Version("21.1.3");
|
|
81
81
|
|
|
82
82
|
// packages/compiler-cli/private/tooling.js
|
|
83
83
|
var GLOBAL_DEFS_FOR_TERSER = {
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
import {
|
|
7
7
|
main,
|
|
8
8
|
readCommandLineAndConfiguration
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-C74B7SVK.js";
|
|
10
10
|
import {
|
|
11
11
|
EmitFlags
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-HGWUZTYN.js";
|
|
13
|
+
import "../../chunk-YPCN4FK3.js";
|
|
14
14
|
import "../../chunk-GBKWMNM6.js";
|
|
15
15
|
import "../../chunk-FROPOOFC.js";
|
|
16
16
|
import {
|
package/bundles/src/bin/ngc.js
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
main
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-C74B7SVK.js";
|
|
9
|
+
import "../../chunk-HGWUZTYN.js";
|
|
10
|
+
import "../../chunk-YPCN4FK3.js";
|
|
11
11
|
import "../../chunk-GBKWMNM6.js";
|
|
12
12
|
import "../../chunk-FROPOOFC.js";
|
|
13
13
|
import {
|
|
@@ -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.1.
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "21.1.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.1.
|
|
3
|
+
"version": "21.1.3",
|
|
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
|
"typescript": "5.9.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@angular/compiler": "21.1.
|
|
46
|
+
"@angular/compiler": "21.1.3",
|
|
47
47
|
"typescript": ">=5.9 <6.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|