typescript 5.8.1-rc → 5.9.0-dev.20250220
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 +8 -6
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +12 -6
- package/package.json +22 -22
package/lib/_tsc.js
CHANGED
@@ -17,8 +17,8 @@ and limitations under the License.
|
|
17
17
|
"use strict";
|
18
18
|
|
19
19
|
// src/compiler/corePublic.ts
|
20
|
-
var versionMajorMinor = "5.
|
21
|
-
var version =
|
20
|
+
var versionMajorMinor = "5.9";
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250220`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -58572,7 +58572,7 @@ function createTypeChecker(host) {
|
|
58572
58572
|
let hasThisParameter = false;
|
58573
58573
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
58574
58574
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
58575
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
58575
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
|
58576
58576
|
if (isUntypedSignatureInJSFile) {
|
58577
58577
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
58578
58578
|
}
|
@@ -85063,11 +85063,10 @@ function createTypeChecker(host) {
|
|
85063
85063
|
return;
|
85064
85064
|
}
|
85065
85065
|
checkGrammarModifiers(node);
|
85066
|
-
|
85067
|
-
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
85066
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
85068
85067
|
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
85069
85068
|
}
|
85070
|
-
if (
|
85069
|
+
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
|
85071
85070
|
checkImportBinding(node);
|
85072
85071
|
markLinkedReferences(node, 6 /* ExportImportEquals */);
|
85073
85072
|
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
|
@@ -85187,6 +85186,9 @@ function createTypeChecker(host) {
|
|
85187
85186
|
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
|
85188
85187
|
return;
|
85189
85188
|
}
|
85189
|
+
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
85190
|
+
error(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
85191
|
+
}
|
85190
85192
|
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
|
85191
85193
|
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
|
85192
85194
|
if (node.isExportEquals) {
|
package/lib/typescript.d.ts
CHANGED
@@ -3634,7 +3634,7 @@ declare namespace ts {
|
|
3634
3634
|
readDirectory(rootDir: string, extensions: readonly string[], excludes: readonly string[] | undefined, includes: readonly string[] | undefined, depth?: number): string[];
|
3635
3635
|
}
|
3636
3636
|
}
|
3637
|
-
const versionMajorMinor = "5.
|
3637
|
+
const versionMajorMinor = "5.9";
|
3638
3638
|
/** The version of the TypeScript compiler release */
|
3639
3639
|
const version: string;
|
3640
3640
|
/**
|
package/lib/typescript.js
CHANGED
@@ -2284,8 +2284,8 @@ __export(typescript_exports, {
|
|
2284
2284
|
module.exports = __toCommonJS(typescript_exports);
|
2285
2285
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
2287
|
-
var versionMajorMinor = "5.
|
2288
|
-
var version =
|
2287
|
+
var versionMajorMinor = "5.9";
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20250220`;
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
@@ -63182,7 +63182,7 @@ function createTypeChecker(host) {
|
|
63182
63182
|
let hasThisParameter2 = false;
|
63183
63183
|
const iife = getImmediatelyInvokedFunctionExpression(declaration);
|
63184
63184
|
const isJSConstructSignature = isJSDocConstructSignature(declaration);
|
63185
|
-
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration);
|
63185
|
+
const isUntypedSignatureInJSFile = !iife && isInJSFile(declaration) && isValueSignatureDeclaration(declaration) && !hasJSDocParameterTags(declaration) && !getJSDocType(declaration) && !getContextualSignatureForFunctionLikeDeclaration(declaration);
|
63186
63186
|
if (isUntypedSignatureInJSFile) {
|
63187
63187
|
flags |= 32 /* IsUntypedSignatureInJSFile */;
|
63188
63188
|
}
|
@@ -89673,11 +89673,10 @@ function createTypeChecker(host) {
|
|
89673
89673
|
return;
|
89674
89674
|
}
|
89675
89675
|
checkGrammarModifiers(node);
|
89676
|
-
|
89677
|
-
if (compilerOptions.erasableSyntaxOnly && isImportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
89676
|
+
if (compilerOptions.erasableSyntaxOnly && !(node.flags & 33554432 /* Ambient */)) {
|
89678
89677
|
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89679
89678
|
}
|
89680
|
-
if (
|
89679
|
+
if (isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {
|
89681
89680
|
checkImportBinding(node);
|
89682
89681
|
markLinkedReferences(node, 6 /* ExportImportEquals */);
|
89683
89682
|
if (node.moduleReference.kind !== 283 /* ExternalModuleReference */) {
|
@@ -89797,6 +89796,9 @@ function createTypeChecker(host) {
|
|
89797
89796
|
if (checkGrammarModuleElementContext(node, illegalContextMessage)) {
|
89798
89797
|
return;
|
89799
89798
|
}
|
89799
|
+
if (compilerOptions.erasableSyntaxOnly && node.isExportEquals && !(node.flags & 33554432 /* Ambient */)) {
|
89800
|
+
error2(node, Diagnostics.This_syntax_is_not_allowed_when_erasableSyntaxOnly_is_enabled);
|
89801
|
+
}
|
89800
89802
|
const container = node.parent.kind === 307 /* SourceFile */ ? node.parent : node.parent.parent;
|
89801
89803
|
if (container.kind === 267 /* ModuleDeclaration */ && !isAmbientModule(container)) {
|
89802
89804
|
if (node.isExportEquals) {
|
@@ -164388,10 +164390,14 @@ function typeNodeToAutoImportableTypeNode(typeNode, importAdder, scriptTarget) {
|
|
164388
164390
|
return getSynthesizedDeepClone(typeNode);
|
164389
164391
|
}
|
164390
164392
|
function endOfRequiredTypeParameters(checker, type) {
|
164393
|
+
var _a;
|
164391
164394
|
Debug.assert(type.typeArguments);
|
164392
164395
|
const fullTypeArguments = type.typeArguments;
|
164393
164396
|
const target = type.target;
|
164394
164397
|
for (let cutoff = 0; cutoff < fullTypeArguments.length; cutoff++) {
|
164398
|
+
if (((_a = target.localTypeParameters) == null ? void 0 : _a[cutoff].constraint) === void 0) {
|
164399
|
+
continue;
|
164400
|
+
}
|
164395
164401
|
const typeArguments = fullTypeArguments.slice(0, cutoff);
|
164396
164402
|
const filledIn = checker.fillMissingTypeArguments(
|
164397
164403
|
typeArguments,
|
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": "5.
|
5
|
+
"version": "5.9.0-dev.20250220",
|
6
6
|
"license": "Apache-2.0",
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
8
8
|
"keywords": [
|
@@ -40,48 +40,48 @@
|
|
40
40
|
],
|
41
41
|
"devDependencies": {
|
42
42
|
"@dprint/formatter": "^0.4.1",
|
43
|
-
"@dprint/typescript": "0.93.
|
43
|
+
"@dprint/typescript": "0.93.4",
|
44
44
|
"@esfx/canceltoken": "^1.0.0",
|
45
|
-
"@eslint/js": "^9.
|
46
|
-
"@octokit/rest": "^21.
|
45
|
+
"@eslint/js": "^9.20.0",
|
46
|
+
"@octokit/rest": "^21.1.1",
|
47
47
|
"@types/chai": "^4.3.20",
|
48
|
-
"@types/diff": "^
|
48
|
+
"@types/diff": "^7.0.1",
|
49
49
|
"@types/minimist": "^1.2.5",
|
50
50
|
"@types/mocha": "^10.0.10",
|
51
51
|
"@types/ms": "^0.7.34",
|
52
52
|
"@types/node": "latest",
|
53
53
|
"@types/source-map-support": "^0.5.10",
|
54
54
|
"@types/which": "^3.0.4",
|
55
|
-
"@typescript-eslint/rule-tester": "^8.
|
56
|
-
"@typescript-eslint/type-utils": "^8.
|
57
|
-
"@typescript-eslint/utils": "^8.
|
55
|
+
"@typescript-eslint/rule-tester": "^8.24.1",
|
56
|
+
"@typescript-eslint/type-utils": "^8.24.1",
|
57
|
+
"@typescript-eslint/utils": "^8.24.1",
|
58
58
|
"azure-devops-node-api": "^14.1.0",
|
59
59
|
"c8": "^10.1.3",
|
60
60
|
"chai": "^4.5.0",
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"
|
64
|
-
"
|
65
|
-
"
|
66
|
-
"eslint": "^9.17.0",
|
61
|
+
"chokidar": "^4.0.3",
|
62
|
+
"diff": "^7.0.0",
|
63
|
+
"dprint": "^0.49.0",
|
64
|
+
"esbuild": "^0.25.0",
|
65
|
+
"eslint": "^9.20.1",
|
67
66
|
"eslint-formatter-autolinkable-stylish": "^1.4.0",
|
68
67
|
"eslint-plugin-regexp": "^2.7.0",
|
69
|
-
"fast-xml-parser": "^4.5.
|
68
|
+
"fast-xml-parser": "^4.5.2",
|
70
69
|
"glob": "^10.4.5",
|
71
|
-
"globals": "^15.
|
70
|
+
"globals": "^15.15.0",
|
72
71
|
"hereby": "^1.10.0",
|
73
72
|
"jsonc-parser": "^3.3.1",
|
74
|
-
"knip": "^5.
|
73
|
+
"knip": "^5.44.4",
|
75
74
|
"minimist": "^1.2.8",
|
76
75
|
"mocha": "^10.8.2",
|
77
76
|
"mocha-fivemat-progress-reporter": "^0.1.0",
|
78
|
-
"monocart-coverage-reports": "^2.
|
77
|
+
"monocart-coverage-reports": "^2.12.1",
|
79
78
|
"ms": "^2.1.3",
|
80
|
-
"
|
79
|
+
"picocolors": "^1.1.1",
|
80
|
+
"playwright": "^1.50.1",
|
81
81
|
"source-map-support": "^0.5.21",
|
82
82
|
"tslib": "^2.8.1",
|
83
|
-
"typescript": "^5.7.
|
84
|
-
"typescript-eslint": "^8.
|
83
|
+
"typescript": "^5.7.3",
|
84
|
+
"typescript-eslint": "^8.24.1",
|
85
85
|
"which": "^3.0.1"
|
86
86
|
},
|
87
87
|
"overrides": {
|
@@ -116,5 +116,5 @@
|
|
116
116
|
"node": "20.1.0",
|
117
117
|
"npm": "8.19.4"
|
118
118
|
},
|
119
|
-
"gitHead": "
|
119
|
+
"gitHead": "3f416e0f527e8967ac2bd490dffe76034db57a26"
|
120
120
|
}
|