@typescript-deploys/pr-build 5.9.0-pr-61291-4 → 5.9.0-pr-61342-2
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/lib/_tsc.js +25 -32
- package/lib/typescript.js +25 -32
- package/package.json +1 -1
package/lib/_tsc.js
CHANGED
|
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
|
18
18
|
|
|
19
19
|
// src/compiler/corePublic.ts
|
|
20
20
|
var versionMajorMinor = "5.9";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250304`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6937,7 +6937,6 @@ var Diagnostics = {
|
|
|
6937
6937
|
One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
|
|
6938
6938
|
This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
|
|
6939
6939
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
|
|
6940
|
-
Private_or_protected_member_0_cannot_be_accessed_via_indexed_access: diag(4129, 1 /* Error */, "Private_or_protected_member_0_cannot_be_accessed_via_indexed_access_4129", "Private or protected member '{0}' cannot be accessed via indexed access."),
|
|
6941
6940
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
6942
6941
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
6943
6942
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -76783,6 +76782,11 @@ function createTypeChecker(host) {
|
|
|
76783
76782
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
|
76784
76783
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
|
76785
76784
|
}
|
|
76785
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
|
76786
|
+
const start = node.type.pos - "<".length;
|
|
76787
|
+
const end = skipTrivia(file.text, node.type.end) + ">".length;
|
|
76788
|
+
diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
|
|
76789
|
+
}
|
|
76786
76790
|
}
|
|
76787
76791
|
return checkAssertionWorker(node, checkMode);
|
|
76788
76792
|
}
|
|
@@ -80720,18 +80724,6 @@ function createTypeChecker(host) {
|
|
|
80720
80724
|
}
|
|
80721
80725
|
function checkIndexedAccessIndexType(type, accessNode) {
|
|
80722
80726
|
if (!(type.flags & 8388608 /* IndexedAccess */)) {
|
|
80723
|
-
if (isIndexedAccessTypeNode(accessNode)) {
|
|
80724
|
-
const indexType2 = getTypeFromTypeNode(accessNode.indexType);
|
|
80725
|
-
const objectType2 = getTypeFromTypeNode(accessNode.objectType);
|
|
80726
|
-
const propertyName2 = getPropertyNameFromIndex(indexType2, accessNode);
|
|
80727
|
-
if (propertyName2) {
|
|
80728
|
-
const propertySymbol = forEachType(getApparentType(objectType2), (t) => getPropertyOfType(t, propertyName2));
|
|
80729
|
-
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
80730
|
-
error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_via_indexed_access, unescapeLeadingUnderscores(propertyName2));
|
|
80731
|
-
return errorType;
|
|
80732
|
-
}
|
|
80733
|
-
}
|
|
80734
|
-
}
|
|
80735
80727
|
return type;
|
|
80736
80728
|
}
|
|
80737
80729
|
const objectType = type.objectType;
|
|
@@ -80744,12 +80736,14 @@ function createTypeChecker(host) {
|
|
|
80744
80736
|
}
|
|
80745
80737
|
return type;
|
|
80746
80738
|
}
|
|
80747
|
-
|
|
80748
|
-
|
|
80749
|
-
|
|
80750
|
-
|
|
80751
|
-
|
|
80752
|
-
|
|
80739
|
+
if (isGenericObjectType(objectType)) {
|
|
80740
|
+
const propertyName = getPropertyNameFromIndex(indexType, accessNode);
|
|
80741
|
+
if (propertyName) {
|
|
80742
|
+
const propertySymbol = forEachType(getApparentType(objectType), (t) => getPropertyOfType(t, propertyName));
|
|
80743
|
+
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
80744
|
+
error(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName));
|
|
80745
|
+
return errorType;
|
|
80746
|
+
}
|
|
80753
80747
|
}
|
|
80754
80748
|
}
|
|
80755
80749
|
error(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType));
|
|
@@ -132635,18 +132629,17 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
132635
132629
|
);
|
|
132636
132630
|
}
|
|
132637
132631
|
function reuseTypeParameters(typeParameters, context) {
|
|
132638
|
-
return typeParameters == null ? void 0 : typeParameters.map(
|
|
132639
|
-
|
|
132640
|
-
|
|
132641
|
-
|
|
132642
|
-
|
|
132643
|
-
|
|
132644
|
-
|
|
132645
|
-
|
|
132646
|
-
|
|
132647
|
-
|
|
132648
|
-
|
|
132649
|
-
);
|
|
132632
|
+
return typeParameters == null ? void 0 : typeParameters.map((tp) => {
|
|
132633
|
+
var _a;
|
|
132634
|
+
const { node: tpName } = resolver.trackExistingEntityName(context, tp.name);
|
|
132635
|
+
return factory.updateTypeParameterDeclaration(
|
|
132636
|
+
tp,
|
|
132637
|
+
(_a = tp.modifiers) == null ? void 0 : _a.map((m) => reuseNode(context, m)),
|
|
132638
|
+
tpName,
|
|
132639
|
+
serializeExistingTypeNodeWithFallback(tp.constraint, context),
|
|
132640
|
+
serializeExistingTypeNodeWithFallback(tp.default, context)
|
|
132641
|
+
);
|
|
132642
|
+
});
|
|
132650
132643
|
}
|
|
132651
132644
|
function typeFromObjectLiteralMethod(method, name, context, isConstContext) {
|
|
132652
132645
|
const returnType = createReturnFromSignature(
|
package/lib/typescript.js
CHANGED
|
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2285
2285
|
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
|
2287
2287
|
var versionMajorMinor = "5.9";
|
|
2288
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-insiders.20250304`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -10323,7 +10323,6 @@ var Diagnostics = {
|
|
|
10323
10323
|
One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value: diag(4126, 1 /* Error */, "One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126", "One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),
|
|
10324
10324
|
This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic: diag(4127, 1 /* Error */, "This_member_cannot_have_an_override_modifier_because_its_name_is_dynamic_4127", "This member cannot have an 'override' modifier because its name is dynamic."),
|
|
10325
10325
|
This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic: diag(4128, 1 /* Error */, "This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_name_is_dynamic_4128", "This member cannot have a JSDoc comment with an '@override' tag because its name is dynamic."),
|
|
10326
|
-
Private_or_protected_member_0_cannot_be_accessed_via_indexed_access: diag(4129, 1 /* Error */, "Private_or_protected_member_0_cannot_be_accessed_via_indexed_access_4129", "Private or protected member '{0}' cannot be accessed via indexed access."),
|
|
10327
10326
|
The_current_host_does_not_support_the_0_option: diag(5001, 1 /* Error */, "The_current_host_does_not_support_the_0_option_5001", "The current host does not support the '{0}' option."),
|
|
10328
10327
|
Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, 1 /* Error */, "Cannot_find_the_common_subdirectory_path_for_the_input_files_5009", "Cannot find the common subdirectory path for the input files."),
|
|
10329
10328
|
File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, 1 /* Error */, "File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010", "File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),
|
|
@@ -81393,6 +81392,11 @@ function createTypeChecker(host) {
|
|
|
81393
81392
|
if (file && fileExtensionIsOneOf(file.fileName, [".cts" /* Cts */, ".mts" /* Mts */])) {
|
|
81394
81393
|
grammarErrorOnNode(node, Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead);
|
|
81395
81394
|
}
|
|
81395
|
+
if (compilerOptions.erasableSyntaxOnly) {
|
|
81396
|
+
const start = node.type.pos - "<".length;
|
|
81397
|
+
const end = skipTrivia(file.text, node.type.end) + ">".length;
|
|
81398
|
+
diagnostics.add(createFileDiagnostic(file, start, end - start, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled));
|
|
81399
|
+
}
|
|
81396
81400
|
}
|
|
81397
81401
|
return checkAssertionWorker(node, checkMode);
|
|
81398
81402
|
}
|
|
@@ -85330,18 +85334,6 @@ function createTypeChecker(host) {
|
|
|
85330
85334
|
}
|
|
85331
85335
|
function checkIndexedAccessIndexType(type, accessNode) {
|
|
85332
85336
|
if (!(type.flags & 8388608 /* IndexedAccess */)) {
|
|
85333
|
-
if (isIndexedAccessTypeNode(accessNode)) {
|
|
85334
|
-
const indexType2 = getTypeFromTypeNode(accessNode.indexType);
|
|
85335
|
-
const objectType2 = getTypeFromTypeNode(accessNode.objectType);
|
|
85336
|
-
const propertyName2 = getPropertyNameFromIndex(indexType2, accessNode);
|
|
85337
|
-
if (propertyName2) {
|
|
85338
|
-
const propertySymbol = forEachType(getApparentType(objectType2), (t) => getPropertyOfType(t, propertyName2));
|
|
85339
|
-
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
85340
|
-
error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_via_indexed_access, unescapeLeadingUnderscores(propertyName2));
|
|
85341
|
-
return errorType;
|
|
85342
|
-
}
|
|
85343
|
-
}
|
|
85344
|
-
}
|
|
85345
85337
|
return type;
|
|
85346
85338
|
}
|
|
85347
85339
|
const objectType = type.objectType;
|
|
@@ -85354,12 +85346,14 @@ function createTypeChecker(host) {
|
|
|
85354
85346
|
}
|
|
85355
85347
|
return type;
|
|
85356
85348
|
}
|
|
85357
|
-
|
|
85358
|
-
|
|
85359
|
-
|
|
85360
|
-
|
|
85361
|
-
|
|
85362
|
-
|
|
85349
|
+
if (isGenericObjectType(objectType)) {
|
|
85350
|
+
const propertyName = getPropertyNameFromIndex(indexType, accessNode);
|
|
85351
|
+
if (propertyName) {
|
|
85352
|
+
const propertySymbol = forEachType(getApparentType(objectType), (t) => getPropertyOfType(t, propertyName));
|
|
85353
|
+
if (propertySymbol && getDeclarationModifierFlagsFromSymbol(propertySymbol) & 6 /* NonPublicAccessibilityModifier */) {
|
|
85354
|
+
error2(accessNode, Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, unescapeLeadingUnderscores(propertyName));
|
|
85355
|
+
return errorType;
|
|
85356
|
+
}
|
|
85363
85357
|
}
|
|
85364
85358
|
}
|
|
85365
85359
|
error2(accessNode, Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType));
|
|
@@ -137602,18 +137596,17 @@ function createSyntacticTypeNodeBuilder(options, resolver) {
|
|
|
137602
137596
|
);
|
|
137603
137597
|
}
|
|
137604
137598
|
function reuseTypeParameters(typeParameters, context) {
|
|
137605
|
-
return typeParameters == null ? void 0 : typeParameters.map(
|
|
137606
|
-
|
|
137607
|
-
|
|
137608
|
-
|
|
137609
|
-
|
|
137610
|
-
|
|
137611
|
-
|
|
137612
|
-
|
|
137613
|
-
|
|
137614
|
-
|
|
137615
|
-
|
|
137616
|
-
);
|
|
137599
|
+
return typeParameters == null ? void 0 : typeParameters.map((tp) => {
|
|
137600
|
+
var _a;
|
|
137601
|
+
const { node: tpName } = resolver.trackExistingEntityName(context, tp.name);
|
|
137602
|
+
return factory.updateTypeParameterDeclaration(
|
|
137603
|
+
tp,
|
|
137604
|
+
(_a = tp.modifiers) == null ? void 0 : _a.map((m) => reuseNode(context, m)),
|
|
137605
|
+
tpName,
|
|
137606
|
+
serializeExistingTypeNodeWithFallback(tp.constraint, context),
|
|
137607
|
+
serializeExistingTypeNodeWithFallback(tp.default, context)
|
|
137608
|
+
);
|
|
137609
|
+
});
|
|
137617
137610
|
}
|
|
137618
137611
|
function typeFromObjectLiteralMethod(method, name, context, isConstContext) {
|
|
137619
137612
|
const returnType = createReturnFromSignature(
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.9.0-pr-
|
|
5
|
+
"version": "5.9.0-pr-61342-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|