typescript 6.0.0-dev.20260130 → 6.0.0-dev.20260131
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 +14 -7
- package/lib/typescript.d.ts +4 -0
- package/lib/typescript.js +18 -9
- 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.20260131`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -17954,10 +17954,10 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
17954
17954
|
}
|
|
17955
17955
|
},
|
|
17956
17956
|
target: {
|
|
17957
|
-
dependencies: [
|
|
17957
|
+
dependencies: [],
|
|
17958
17958
|
computeValue: (compilerOptions) => {
|
|
17959
17959
|
const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
|
|
17960
|
-
return target ??
|
|
17960
|
+
return target ?? 11 /* LatestStandard */;
|
|
17961
17961
|
}
|
|
17962
17962
|
},
|
|
17963
17963
|
module: {
|
|
@@ -24139,7 +24139,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
24139
24139
|
node.path = "";
|
|
24140
24140
|
node.resolvedPath = "";
|
|
24141
24141
|
node.originalFileName = "";
|
|
24142
|
-
node.languageVersion =
|
|
24142
|
+
node.languageVersion = 11 /* LatestStandard */;
|
|
24143
24143
|
node.languageVariant = 0;
|
|
24144
24144
|
node.scriptKind = 0;
|
|
24145
24145
|
node.isDeclarationFile = false;
|
|
@@ -36757,12 +36757,12 @@ var targetOptionDeclaration = {
|
|
|
36757
36757
|
affectsModuleResolution: true,
|
|
36758
36758
|
affectsEmit: true,
|
|
36759
36759
|
affectsBuildInfo: true,
|
|
36760
|
-
deprecatedKeys: /* @__PURE__ */ new Set(["es3"]),
|
|
36760
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["es3", "es5"]),
|
|
36761
36761
|
paramType: Diagnostics.VERSION,
|
|
36762
36762
|
showInSimplifiedHelpView: true,
|
|
36763
36763
|
category: Diagnostics.Language_and_Environment,
|
|
36764
36764
|
description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
|
|
36765
|
-
defaultValueDescription:
|
|
36765
|
+
defaultValueDescription: 11 /* LatestStandard */
|
|
36766
36766
|
};
|
|
36767
36767
|
var moduleOptionDeclaration = {
|
|
36768
36768
|
name: "module",
|
|
@@ -83752,7 +83752,11 @@ function createTypeChecker(host) {
|
|
|
83752
83752
|
}
|
|
83753
83753
|
return void 0;
|
|
83754
83754
|
}
|
|
83755
|
-
const
|
|
83755
|
+
const iterableExists = getGlobalIterableType(
|
|
83756
|
+
/*reportErrors*/
|
|
83757
|
+
false
|
|
83758
|
+
) !== emptyGenericType;
|
|
83759
|
+
const uplevelIteration = languageVersion >= 2 /* ES2015 */ && iterableExists;
|
|
83756
83760
|
const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;
|
|
83757
83761
|
const possibleOutOfBounds = compilerOptions.noUncheckedIndexedAccess && !!(use & 128 /* PossiblyOutOfBounds */);
|
|
83758
83762
|
if (uplevelIteration || downlevelIteration || allowAsyncIterables) {
|
|
@@ -124665,6 +124669,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
124665
124669
|
}
|
|
124666
124670
|
});
|
|
124667
124671
|
checkDeprecations("6.0", "7.0", createDiagnostic, (createDeprecatedDiagnostic) => {
|
|
124672
|
+
if (options.target === 1 /* ES5 */) {
|
|
124673
|
+
createDeprecatedDiagnostic("target", "ES5");
|
|
124674
|
+
}
|
|
124668
124675
|
if (options.moduleResolution === 2 /* Node10 */) {
|
|
124669
124676
|
createDeprecatedDiagnostic(
|
|
124670
124677
|
"moduleResolution",
|
package/lib/typescript.d.ts
CHANGED
|
@@ -2543,6 +2543,7 @@ declare namespace ts {
|
|
|
2543
2543
|
export enum ScriptTarget {
|
|
2544
2544
|
/** @deprecated */
|
|
2545
2545
|
ES3 = "es3",
|
|
2546
|
+
/** @deprecated */
|
|
2546
2547
|
ES5 = "es5",
|
|
2547
2548
|
ES6 = "es6",
|
|
2548
2549
|
ES2015 = "es2015",
|
|
@@ -2558,6 +2559,7 @@ declare namespace ts {
|
|
|
2558
2559
|
ESNext = "esnext",
|
|
2559
2560
|
JSON = "json",
|
|
2560
2561
|
Latest = "esnext",
|
|
2562
|
+
LatestStandard = "es2024",
|
|
2561
2563
|
}
|
|
2562
2564
|
}
|
|
2563
2565
|
namespace typingsInstaller {
|
|
@@ -7207,6 +7209,7 @@ declare namespace ts {
|
|
|
7207
7209
|
enum ScriptTarget {
|
|
7208
7210
|
/** @deprecated */
|
|
7209
7211
|
ES3 = 0,
|
|
7212
|
+
/** @deprecated */
|
|
7210
7213
|
ES5 = 1,
|
|
7211
7214
|
ES2015 = 2,
|
|
7212
7215
|
ES2016 = 3,
|
|
@@ -7221,6 +7224,7 @@ declare namespace ts {
|
|
|
7221
7224
|
ESNext = 99,
|
|
7222
7225
|
JSON = 100,
|
|
7223
7226
|
Latest = 99,
|
|
7227
|
+
LatestStandard = 11,
|
|
7224
7228
|
}
|
|
7225
7229
|
enum LanguageVariant {
|
|
7226
7230
|
Standard = 0,
|
package/lib/typescript.js
CHANGED
|
@@ -2286,7 +2286,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2286
2286
|
|
|
2287
2287
|
// src/compiler/corePublic.ts
|
|
2288
2288
|
var versionMajorMinor = "6.0";
|
|
2289
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2289
|
+
var version = `${versionMajorMinor}.0-dev.20260131`;
|
|
2290
2290
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2291
2291
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2292
2292
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -6790,6 +6790,7 @@ var ScriptTarget = /* @__PURE__ */ ((ScriptTarget12) => {
|
|
|
6790
6790
|
ScriptTarget12[ScriptTarget12["ESNext"] = 99] = "ESNext";
|
|
6791
6791
|
ScriptTarget12[ScriptTarget12["JSON"] = 100] = "JSON";
|
|
6792
6792
|
ScriptTarget12[ScriptTarget12["Latest"] = 99 /* ESNext */] = "Latest";
|
|
6793
|
+
ScriptTarget12[ScriptTarget12["LatestStandard"] = 11 /* ES2024 */] = "LatestStandard";
|
|
6793
6794
|
return ScriptTarget12;
|
|
6794
6795
|
})(ScriptTarget || {});
|
|
6795
6796
|
var LanguageVariant = /* @__PURE__ */ ((LanguageVariant4) => {
|
|
@@ -21924,10 +21925,10 @@ var _computedOptions = createComputedCompilerOptions({
|
|
|
21924
21925
|
}
|
|
21925
21926
|
},
|
|
21926
21927
|
target: {
|
|
21927
|
-
dependencies: [
|
|
21928
|
+
dependencies: [],
|
|
21928
21929
|
computeValue: (compilerOptions) => {
|
|
21929
21930
|
const target = compilerOptions.target === 0 /* ES3 */ ? void 0 : compilerOptions.target;
|
|
21930
|
-
return target ??
|
|
21931
|
+
return target ?? 11 /* LatestStandard */;
|
|
21931
21932
|
}
|
|
21932
21933
|
},
|
|
21933
21934
|
module: {
|
|
@@ -28264,7 +28265,7 @@ function createNodeFactory(flags, baseFactory2) {
|
|
|
28264
28265
|
node.path = "";
|
|
28265
28266
|
node.resolvedPath = "";
|
|
28266
28267
|
node.originalFileName = "";
|
|
28267
|
-
node.languageVersion =
|
|
28268
|
+
node.languageVersion = 11 /* LatestStandard */;
|
|
28268
28269
|
node.languageVariant = 0;
|
|
28269
28270
|
node.scriptKind = 0;
|
|
28270
28271
|
node.isDeclarationFile = false;
|
|
@@ -41035,12 +41036,12 @@ var targetOptionDeclaration = {
|
|
|
41035
41036
|
affectsModuleResolution: true,
|
|
41036
41037
|
affectsEmit: true,
|
|
41037
41038
|
affectsBuildInfo: true,
|
|
41038
|
-
deprecatedKeys: /* @__PURE__ */ new Set(["es3"]),
|
|
41039
|
+
deprecatedKeys: /* @__PURE__ */ new Set(["es3", "es5"]),
|
|
41039
41040
|
paramType: Diagnostics.VERSION,
|
|
41040
41041
|
showInSimplifiedHelpView: true,
|
|
41041
41042
|
category: Diagnostics.Language_and_Environment,
|
|
41042
41043
|
description: Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,
|
|
41043
|
-
defaultValueDescription:
|
|
41044
|
+
defaultValueDescription: 11 /* LatestStandard */
|
|
41044
41045
|
};
|
|
41045
41046
|
var moduleOptionDeclaration = {
|
|
41046
41047
|
name: "module",
|
|
@@ -88381,7 +88382,11 @@ function createTypeChecker(host) {
|
|
|
88381
88382
|
}
|
|
88382
88383
|
return void 0;
|
|
88383
88384
|
}
|
|
88384
|
-
const
|
|
88385
|
+
const iterableExists = getGlobalIterableType(
|
|
88386
|
+
/*reportErrors*/
|
|
88387
|
+
false
|
|
88388
|
+
) !== emptyGenericType;
|
|
88389
|
+
const uplevelIteration = languageVersion >= 2 /* ES2015 */ && iterableExists;
|
|
88385
88390
|
const downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;
|
|
88386
88391
|
const possibleOutOfBounds = compilerOptions.noUncheckedIndexedAccess && !!(use & 128 /* PossiblyOutOfBounds */);
|
|
88387
88392
|
if (uplevelIteration || downlevelIteration || allowAsyncIterables) {
|
|
@@ -129533,6 +129538,9 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
|
129533
129538
|
}
|
|
129534
129539
|
});
|
|
129535
129540
|
checkDeprecations("6.0", "7.0", createDiagnostic, (createDeprecatedDiagnostic) => {
|
|
129541
|
+
if (options.target === 1 /* ES5 */) {
|
|
129542
|
+
createDeprecatedDiagnostic("target", "ES5");
|
|
129543
|
+
}
|
|
129536
129544
|
if (options.moduleResolution === 2 /* Node10 */) {
|
|
129537
129545
|
createDeprecatedDiagnostic(
|
|
129538
129546
|
"moduleResolution",
|
|
@@ -144767,7 +144775,7 @@ function every2(s, pred, start = 0, end = s.length) {
|
|
|
144767
144775
|
// src/services/preProcess.ts
|
|
144768
144776
|
function preProcessFile(sourceText, readImportFiles = true, detectJavaScriptImports = false) {
|
|
144769
144777
|
const pragmaContext = {
|
|
144770
|
-
languageVersion:
|
|
144778
|
+
languageVersion: 11 /* LatestStandard */,
|
|
144771
144779
|
// controls whether the token scanner considers unicode identifiers or not - shouldn't matter, since we're only using it for trivia
|
|
144772
144780
|
pragmas: void 0,
|
|
144773
144781
|
checkJsDirective: void 0,
|
|
@@ -152663,7 +152671,7 @@ function displayPartsToString(displayParts) {
|
|
|
152663
152671
|
}
|
|
152664
152672
|
function getDefaultCompilerOptions2() {
|
|
152665
152673
|
return {
|
|
152666
|
-
target:
|
|
152674
|
+
target: 11 /* LatestStandard */,
|
|
152667
152675
|
jsx: 1 /* Preserve */
|
|
152668
152676
|
};
|
|
152669
152677
|
}
|
|
@@ -186701,6 +186709,7 @@ var ScriptTarget11 = /* @__PURE__ */ ((ScriptTarget12) => {
|
|
|
186701
186709
|
ScriptTarget12["ESNext"] = "esnext";
|
|
186702
186710
|
ScriptTarget12["JSON"] = "json";
|
|
186703
186711
|
ScriptTarget12["Latest"] = "esnext" /* ESNext */;
|
|
186712
|
+
ScriptTarget12["LatestStandard"] = "es2024" /* ES2024 */;
|
|
186704
186713
|
return ScriptTarget12;
|
|
186705
186714
|
})(ScriptTarget11 || {});
|
|
186706
186715
|
{
|
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.20260131",
|
|
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": "95e3aaa90341b516e868bf2300b1da5d07103f1e"
|
|
119
119
|
}
|