typescript 6.0.0-dev.20251211 → 6.0.0-dev.20251213
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 +4 -27
- package/lib/_tsserver.js +1 -1
- package/lib/_typingsInstaller.js +1 -1
- package/lib/lib.d.ts +1 -1
- package/lib/lib.decorators.d.ts +1 -1
- package/lib/lib.decorators.legacy.d.ts +1 -1
- package/lib/lib.dom.asynciterable.d.ts +1 -1
- package/lib/lib.dom.d.ts +1 -1
- package/lib/lib.dom.iterable.d.ts +1 -1
- package/lib/lib.es2015.collection.d.ts +1 -1
- package/lib/lib.es2015.core.d.ts +1 -1
- package/lib/lib.es2015.d.ts +1 -1
- package/lib/lib.es2015.generator.d.ts +1 -1
- package/lib/lib.es2015.iterable.d.ts +1 -1
- package/lib/lib.es2015.promise.d.ts +1 -1
- package/lib/lib.es2015.proxy.d.ts +1 -1
- package/lib/lib.es2015.reflect.d.ts +1 -1
- package/lib/lib.es2015.symbol.d.ts +1 -1
- package/lib/lib.es2015.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2016.array.include.d.ts +1 -1
- package/lib/lib.es2016.d.ts +1 -1
- package/lib/lib.es2016.full.d.ts +1 -1
- package/lib/lib.es2016.intl.d.ts +1 -1
- package/lib/lib.es2017.arraybuffer.d.ts +1 -1
- package/lib/lib.es2017.d.ts +1 -1
- package/lib/lib.es2017.date.d.ts +1 -1
- package/lib/lib.es2017.full.d.ts +1 -1
- package/lib/lib.es2017.intl.d.ts +1 -1
- package/lib/lib.es2017.object.d.ts +1 -1
- package/lib/lib.es2017.sharedmemory.d.ts +1 -1
- package/lib/lib.es2017.string.d.ts +1 -1
- package/lib/lib.es2017.typedarrays.d.ts +1 -1
- package/lib/lib.es2018.asyncgenerator.d.ts +1 -1
- package/lib/lib.es2018.asynciterable.d.ts +1 -1
- package/lib/lib.es2018.d.ts +1 -1
- package/lib/lib.es2018.full.d.ts +1 -1
- package/lib/lib.es2018.intl.d.ts +1 -1
- package/lib/lib.es2018.promise.d.ts +1 -1
- package/lib/lib.es2018.regexp.d.ts +1 -1
- package/lib/lib.es2019.array.d.ts +1 -1
- package/lib/lib.es2019.d.ts +1 -1
- package/lib/lib.es2019.full.d.ts +1 -1
- package/lib/lib.es2019.intl.d.ts +1 -1
- package/lib/lib.es2019.object.d.ts +1 -1
- package/lib/lib.es2019.string.d.ts +1 -1
- package/lib/lib.es2019.symbol.d.ts +1 -1
- package/lib/lib.es2020.bigint.d.ts +1 -1
- package/lib/lib.es2020.d.ts +1 -1
- package/lib/lib.es2020.date.d.ts +1 -1
- package/lib/lib.es2020.full.d.ts +1 -1
- package/lib/lib.es2020.intl.d.ts +1 -1
- package/lib/lib.es2020.number.d.ts +1 -1
- package/lib/lib.es2020.promise.d.ts +1 -1
- package/lib/lib.es2020.sharedmemory.d.ts +1 -1
- package/lib/lib.es2020.string.d.ts +2 -2
- package/lib/lib.es2020.symbol.wellknown.d.ts +1 -1
- package/lib/lib.es2021.d.ts +1 -1
- package/lib/lib.es2021.full.d.ts +1 -1
- package/lib/lib.es2021.intl.d.ts +1 -1
- package/lib/lib.es2021.promise.d.ts +1 -1
- package/lib/lib.es2021.string.d.ts +1 -1
- package/lib/lib.es2021.weakref.d.ts +1 -1
- package/lib/lib.es2022.array.d.ts +1 -1
- package/lib/lib.es2022.d.ts +1 -1
- package/lib/lib.es2022.error.d.ts +1 -1
- package/lib/lib.es2022.full.d.ts +1 -1
- package/lib/lib.es2022.intl.d.ts +1 -1
- package/lib/lib.es2022.object.d.ts +1 -1
- package/lib/lib.es2022.regexp.d.ts +1 -1
- package/lib/lib.es2022.string.d.ts +1 -1
- package/lib/lib.es2023.array.d.ts +1 -1
- package/lib/lib.es2023.collection.d.ts +1 -1
- package/lib/lib.es2023.d.ts +1 -1
- package/lib/lib.es2023.full.d.ts +1 -1
- package/lib/lib.es2023.intl.d.ts +1 -1
- package/lib/lib.es2024.arraybuffer.d.ts +1 -1
- package/lib/lib.es2024.collection.d.ts +1 -1
- package/lib/lib.es2024.d.ts +1 -1
- package/lib/lib.es2024.full.d.ts +1 -1
- package/lib/lib.es2024.object.d.ts +1 -1
- package/lib/lib.es2024.promise.d.ts +1 -1
- package/lib/lib.es2024.regexp.d.ts +1 -1
- package/lib/lib.es2024.sharedmemory.d.ts +1 -1
- package/lib/lib.es2024.string.d.ts +1 -1
- package/lib/lib.es5.d.ts +1 -1
- package/lib/lib.es6.d.ts +1 -1
- package/lib/lib.esnext.array.d.ts +1 -1
- package/lib/lib.esnext.collection.d.ts +1 -1
- package/lib/lib.esnext.d.ts +1 -1
- package/lib/lib.esnext.decorators.d.ts +1 -1
- package/lib/lib.esnext.disposable.d.ts +1 -1
- package/lib/lib.esnext.error.d.ts +1 -1
- package/lib/lib.esnext.float16.d.ts +1 -1
- package/lib/lib.esnext.full.d.ts +1 -1
- package/lib/lib.esnext.intl.d.ts +1 -1
- package/lib/lib.esnext.iterator.d.ts +1 -1
- package/lib/lib.esnext.promise.d.ts +1 -1
- package/lib/lib.esnext.sharedmemory.d.ts +1 -1
- package/lib/lib.esnext.typedarrays.d.ts +1 -1
- package/lib/lib.scripthost.d.ts +1 -1
- package/lib/lib.webworker.asynciterable.d.ts +1 -1
- package/lib/lib.webworker.d.ts +1 -1
- package/lib/lib.webworker.importscripts.d.ts +1 -1
- package/lib/lib.webworker.iterable.d.ts +1 -1
- package/lib/tsserverlibrary.d.ts +1 -1
- package/lib/tsserverlibrary.js +1 -1
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +4 -30
- package/lib/watchGuard.js +1 -1
- package/package.json +2 -2
package/lib/typescript.js
CHANGED
|
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
7
7
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
8
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
9
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
|
@@ -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.20251213`;
|
|
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/lib/watchGuard.js
CHANGED
|
@@ -7,7 +7,7 @@ License at http://www.apache.org/licenses/LICENSE-2.0
|
|
|
7
7
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
8
8
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
|
9
9
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
|
10
|
-
|
|
10
|
+
MERCHANTABILITY OR NON-INFRINGEMENT.
|
|
11
11
|
|
|
12
12
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
13
13
|
and limitations under the License.
|
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.20251213",
|
|
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": "0a071327153b4c386dfcab19a584e0d6224d1354"
|
|
119
119
|
}
|