typescript 6.0.0-dev.20251211 → 6.0.0-dev.20251212
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 +3 -26
- package/lib/lib.es2020.string.d.ts +1 -1
- package/lib/typescript.js +3 -29
- package/package.json +2 -2
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 = "6.0";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20251212`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -6221,18 +6221,7 @@ var Diagnostics = {
|
|
|
6221
6221
|
Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class: diag(1537, 1 /* Error */, "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537", "Decimal escape sequences and backreferences are not allowed in a character class."),
|
|
6222
6222
|
Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set: diag(1538, 1 /* Error */, "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538", "Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),
|
|
6223
6223
|
A_bigint_literal_cannot_be_used_as_a_property_name: diag(1539, 1 /* Error */, "A_bigint_literal_cannot_be_used_as_a_property_name_1539", "A 'bigint' literal cannot be used as a property name."),
|
|
6224
|
-
A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead: diag(
|
|
6225
|
-
1540,
|
|
6226
|
-
2 /* Suggestion */,
|
|
6227
|
-
"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540",
|
|
6228
|
-
"A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",
|
|
6229
|
-
/*reportsUnnecessary*/
|
|
6230
|
-
void 0,
|
|
6231
|
-
/*elidedInCompatabilityPyramid*/
|
|
6232
|
-
void 0,
|
|
6233
|
-
/*reportsDeprecated*/
|
|
6234
|
-
true
|
|
6235
|
-
),
|
|
6224
|
+
A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead: diag(1540, 1 /* Error */, "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540", "A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead."),
|
|
6236
6225
|
Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1541, 1 /* Error */, "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541", "Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),
|
|
6237
6226
|
Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1542, 1 /* Error */, "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542", "Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),
|
|
6238
6227
|
Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0: diag(1543, 1 /* Error */, "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543", `Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),
|
|
@@ -13019,13 +13008,6 @@ function getTokenPosOfNode(node, sourceFile, includeJsDoc) {
|
|
|
13019
13008
|
isInJSDoc(node)
|
|
13020
13009
|
);
|
|
13021
13010
|
}
|
|
13022
|
-
function getNonModifierTokenPosOfNode(node, sourceFile) {
|
|
13023
|
-
const lastModifier = !nodeIsMissing(node) && canHaveModifiers(node) && node.modifiers ? last(node.modifiers) : void 0;
|
|
13024
|
-
if (!lastModifier) {
|
|
13025
|
-
return getTokenPosOfNode(node, sourceFile);
|
|
13026
|
-
}
|
|
13027
|
-
return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastModifier.end);
|
|
13028
|
-
}
|
|
13029
13011
|
function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) {
|
|
13030
13012
|
return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia);
|
|
13031
13013
|
}
|
|
@@ -85730,12 +85712,7 @@ function createTypeChecker(host) {
|
|
|
85730
85712
|
if (isIdentifier(node.name)) {
|
|
85731
85713
|
checkCollisionsForDeclarationName(node, node.name);
|
|
85732
85714
|
if (!(node.flags & (32 /* Namespace */ | 2048 /* GlobalAugmentation */))) {
|
|
85733
|
-
|
|
85734
|
-
const pos = getNonModifierTokenPosOfNode(node);
|
|
85735
|
-
const span = getSpanOfTokenAtPosition(sourceFile, pos);
|
|
85736
|
-
suggestionDiagnostics.add(
|
|
85737
|
-
createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead)
|
|
85738
|
-
);
|
|
85715
|
+
error(node.name, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead);
|
|
85739
85716
|
}
|
|
85740
85717
|
}
|
|
85741
85718
|
checkExportsOnMergedDeclarations(node);
|
|
@@ -22,7 +22,7 @@ interface String {
|
|
|
22
22
|
/**
|
|
23
23
|
* Matches a string with a regular expression, and returns an iterable of matches
|
|
24
24
|
* containing the results of that search.
|
|
25
|
-
* @param regexp A
|
|
25
|
+
* @param regexp A regular expression
|
|
26
26
|
*/
|
|
27
27
|
matchAll(regexp: RegExp): RegExpStringIterator<RegExpExecArray>;
|
|
28
28
|
|
package/lib/typescript.js
CHANGED
|
@@ -913,7 +913,6 @@ __export(typescript_exports, {
|
|
|
913
913
|
getNonAugmentationDeclaration: () => getNonAugmentationDeclaration,
|
|
914
914
|
getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode,
|
|
915
915
|
getNonIncrementalBuildInfoRoots: () => getNonIncrementalBuildInfoRoots,
|
|
916
|
-
getNonModifierTokenPosOfNode: () => getNonModifierTokenPosOfNode,
|
|
917
916
|
getNormalizedAbsolutePath: () => getNormalizedAbsolutePath,
|
|
918
917
|
getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot,
|
|
919
918
|
getNormalizedPathComponents: () => getNormalizedPathComponents,
|
|
@@ -2286,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2286
2285
|
|
|
2287
2286
|
// src/compiler/corePublic.ts
|
|
2288
2287
|
var versionMajorMinor = "6.0";
|
|
2289
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20251212`;
|
|
2290
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -9622,18 +9621,7 @@ var Diagnostics = {
|
|
|
9622
9621
|
Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class: diag(1537, 1 /* Error */, "Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537", "Decimal escape sequences and backreferences are not allowed in a character class."),
|
|
9623
9622
|
Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set: diag(1538, 1 /* Error */, "Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538", "Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),
|
|
9624
9623
|
A_bigint_literal_cannot_be_used_as_a_property_name: diag(1539, 1 /* Error */, "A_bigint_literal_cannot_be_used_as_a_property_name_1539", "A 'bigint' literal cannot be used as a property name."),
|
|
9625
|
-
A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead: diag(
|
|
9626
|
-
1540,
|
|
9627
|
-
2 /* Suggestion */,
|
|
9628
|
-
"A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540",
|
|
9629
|
-
"A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead.",
|
|
9630
|
-
/*reportsUnnecessary*/
|
|
9631
|
-
void 0,
|
|
9632
|
-
/*elidedInCompatabilityPyramid*/
|
|
9633
|
-
void 0,
|
|
9634
|
-
/*reportsDeprecated*/
|
|
9635
|
-
true
|
|
9636
|
-
),
|
|
9624
|
+
A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead: diag(1540, 1 /* Error */, "A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_key_1540", "A 'namespace' declaration should not be declared using the 'module' keyword. Please use the 'namespace' keyword instead."),
|
|
9637
9625
|
Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1541, 1 /* Error */, "Type_only_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribut_1541", "Type-only import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),
|
|
9638
9626
|
Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute: diag(1542, 1 /* Error */, "Type_import_of_an_ECMAScript_module_from_a_CommonJS_module_must_have_a_resolution_mode_attribute_1542", "Type import of an ECMAScript module from a CommonJS module must have a 'resolution-mode' attribute."),
|
|
9639
9627
|
Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_module_is_set_to_0: diag(1543, 1 /* Error */, "Importing_a_JSON_file_into_an_ECMAScript_module_requires_a_type_Colon_json_import_attribute_when_mod_1543", `Importing a JSON file into an ECMAScript module requires a 'type: "json"' import attribute when 'module' is set to '{0}'.`),
|
|
@@ -16667,13 +16655,6 @@ function getNonDecoratorTokenPosOfNode(node, sourceFile) {
|
|
|
16667
16655
|
}
|
|
16668
16656
|
return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastDecorator.end);
|
|
16669
16657
|
}
|
|
16670
|
-
function getNonModifierTokenPosOfNode(node, sourceFile) {
|
|
16671
|
-
const lastModifier = !nodeIsMissing(node) && canHaveModifiers(node) && node.modifiers ? last(node.modifiers) : void 0;
|
|
16672
|
-
if (!lastModifier) {
|
|
16673
|
-
return getTokenPosOfNode(node, sourceFile);
|
|
16674
|
-
}
|
|
16675
|
-
return skipTrivia((sourceFile || getSourceFileOfNode(node)).text, lastModifier.end);
|
|
16676
|
-
}
|
|
16677
16658
|
function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia = false) {
|
|
16678
16659
|
return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia);
|
|
16679
16660
|
}
|
|
@@ -90359,12 +90340,7 @@ function createTypeChecker(host) {
|
|
|
90359
90340
|
if (isIdentifier(node.name)) {
|
|
90360
90341
|
checkCollisionsForDeclarationName(node, node.name);
|
|
90361
90342
|
if (!(node.flags & (32 /* Namespace */ | 2048 /* GlobalAugmentation */))) {
|
|
90362
|
-
|
|
90363
|
-
const pos = getNonModifierTokenPosOfNode(node);
|
|
90364
|
-
const span = getSpanOfTokenAtPosition(sourceFile, pos);
|
|
90365
|
-
suggestionDiagnostics.add(
|
|
90366
|
-
createFileDiagnostic(sourceFile, span.start, span.length, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead)
|
|
90367
|
-
);
|
|
90343
|
+
error2(node.name, Diagnostics.A_namespace_declaration_should_not_be_declared_using_the_module_keyword_Please_use_the_namespace_keyword_instead);
|
|
90368
90344
|
}
|
|
90369
90345
|
}
|
|
90370
90346
|
checkExportsOnMergedDeclarations(node);
|
|
@@ -184315,7 +184291,6 @@ __export(ts_exports2, {
|
|
|
184315
184291
|
getNonAugmentationDeclaration: () => getNonAugmentationDeclaration,
|
|
184316
184292
|
getNonDecoratorTokenPosOfNode: () => getNonDecoratorTokenPosOfNode,
|
|
184317
184293
|
getNonIncrementalBuildInfoRoots: () => getNonIncrementalBuildInfoRoots,
|
|
184318
|
-
getNonModifierTokenPosOfNode: () => getNonModifierTokenPosOfNode,
|
|
184319
184294
|
getNormalizedAbsolutePath: () => getNormalizedAbsolutePath,
|
|
184320
184295
|
getNormalizedAbsolutePathWithoutRoot: () => getNormalizedAbsolutePathWithoutRoot,
|
|
184321
184296
|
getNormalizedPathComponents: () => getNormalizedPathComponents,
|
|
@@ -199077,7 +199052,6 @@ if (typeof console !== "undefined") {
|
|
|
199077
199052
|
getNonAugmentationDeclaration,
|
|
199078
199053
|
getNonDecoratorTokenPosOfNode,
|
|
199079
199054
|
getNonIncrementalBuildInfoRoots,
|
|
199080
|
-
getNonModifierTokenPosOfNode,
|
|
199081
199055
|
getNormalizedAbsolutePath,
|
|
199082
199056
|
getNormalizedAbsolutePathWithoutRoot,
|
|
199083
199057
|
getNormalizedPathComponents,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "typescript",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "6.0.0-dev.
|
|
5
|
+
"version": "6.0.0-dev.20251212",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"node": "20.1.0",
|
|
116
116
|
"npm": "8.19.4"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "16b933fb7bff04371fe9ec8525a8e90afa3174d4"
|
|
119
119
|
}
|