typescript 5.1.0-dev.20230308 → 5.1.0-dev.20230309
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 +7 -5
- package/lib/tsserver.js +7 -5
- package/lib/tsserverlibrary.js +7 -5
- package/lib/typescript.js +7 -5
- package/lib/typingsInstaller.js +1 -1
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -23,7 +23,7 @@ var __export = (target, all) => {
|
|
|
23
23
|
|
|
24
24
|
// src/compiler/corePublic.ts
|
|
25
25
|
var versionMajorMinor = "5.1";
|
|
26
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
26
|
+
var version = `${versionMajorMinor}.0-dev.20230309`;
|
|
27
27
|
|
|
28
28
|
// src/compiler/core.ts
|
|
29
29
|
var emptyArray = [];
|
|
@@ -41107,6 +41107,8 @@ function createBinder() {
|
|
|
41107
41107
|
declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */);
|
|
41108
41108
|
}
|
|
41109
41109
|
break;
|
|
41110
|
+
case 265 /* ModuleDeclaration */:
|
|
41111
|
+
break;
|
|
41110
41112
|
default:
|
|
41111
41113
|
Debug.failBadSyntaxKind(thisContainer);
|
|
41112
41114
|
}
|
|
@@ -67268,13 +67270,14 @@ function createTypeChecker(host) {
|
|
|
67268
67270
|
const elementFlags = [];
|
|
67269
67271
|
pushCachedContextualType(node);
|
|
67270
67272
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
67271
|
-
const
|
|
67273
|
+
const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent);
|
|
67274
|
+
const inConstContext = isSpreadIntoCallOrNew || isConstContext(node);
|
|
67272
67275
|
const contextualType = getApparentTypeOfContextualType(
|
|
67273
67276
|
node,
|
|
67274
67277
|
/*contextFlags*/
|
|
67275
67278
|
void 0
|
|
67276
67279
|
);
|
|
67277
|
-
const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);
|
|
67280
|
+
const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType);
|
|
67278
67281
|
let hasOmittedExpression = false;
|
|
67279
67282
|
for (let i = 0; i < elementCount; i++) {
|
|
67280
67283
|
const e = elements[i];
|
|
@@ -74870,8 +74873,7 @@ function createTypeChecker(host) {
|
|
|
74870
74873
|
const subsequentName = subsequentNode.name;
|
|
74871
74874
|
if (node.name && subsequentName && // both are private identifiers
|
|
74872
74875
|
(isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names
|
|
74873
|
-
|
|
74874
|
-
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) || // Both are literal property names that are the same.
|
|
74876
|
+
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same.
|
|
74875
74877
|
isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) {
|
|
74876
74878
|
const reportError = (node.kind === 172 /* MethodDeclaration */ || node.kind === 171 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode);
|
|
74877
74879
|
if (reportError) {
|
package/lib/tsserver.js
CHANGED
|
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2285
2285
|
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
|
2287
2287
|
var versionMajorMinor = "5.1";
|
|
2288
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-dev.20230309`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -45649,6 +45649,8 @@ function createBinder() {
|
|
|
45649
45649
|
declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */);
|
|
45650
45650
|
}
|
|
45651
45651
|
break;
|
|
45652
|
+
case 265 /* ModuleDeclaration */:
|
|
45653
|
+
break;
|
|
45652
45654
|
default:
|
|
45653
45655
|
Debug.failBadSyntaxKind(thisContainer);
|
|
45654
45656
|
}
|
|
@@ -71858,13 +71860,14 @@ function createTypeChecker(host) {
|
|
|
71858
71860
|
const elementFlags = [];
|
|
71859
71861
|
pushCachedContextualType(node);
|
|
71860
71862
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
71861
|
-
const
|
|
71863
|
+
const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent);
|
|
71864
|
+
const inConstContext = isSpreadIntoCallOrNew || isConstContext(node);
|
|
71862
71865
|
const contextualType = getApparentTypeOfContextualType(
|
|
71863
71866
|
node,
|
|
71864
71867
|
/*contextFlags*/
|
|
71865
71868
|
void 0
|
|
71866
71869
|
);
|
|
71867
|
-
const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);
|
|
71870
|
+
const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType);
|
|
71868
71871
|
let hasOmittedExpression = false;
|
|
71869
71872
|
for (let i = 0; i < elementCount; i++) {
|
|
71870
71873
|
const e = elements[i];
|
|
@@ -79460,8 +79463,7 @@ function createTypeChecker(host) {
|
|
|
79460
79463
|
const subsequentName = subsequentNode.name;
|
|
79461
79464
|
if (node.name && subsequentName && // both are private identifiers
|
|
79462
79465
|
(isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names
|
|
79463
|
-
|
|
79464
|
-
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) || // Both are literal property names that are the same.
|
|
79466
|
+
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same.
|
|
79465
79467
|
isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) {
|
|
79466
79468
|
const reportError = (node.kind === 172 /* MethodDeclaration */ || node.kind === 171 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode);
|
|
79467
79469
|
if (reportError) {
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230309`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -43552,6 +43552,8 @@ ${lanes.join("\n")}
|
|
|
43552
43552
|
declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */);
|
|
43553
43553
|
}
|
|
43554
43554
|
break;
|
|
43555
|
+
case 265 /* ModuleDeclaration */:
|
|
43556
|
+
break;
|
|
43555
43557
|
default:
|
|
43556
43558
|
Debug.failBadSyntaxKind(thisContainer);
|
|
43557
43559
|
}
|
|
@@ -69669,13 +69671,14 @@ ${lanes.join("\n")}
|
|
|
69669
69671
|
const elementFlags = [];
|
|
69670
69672
|
pushCachedContextualType(node);
|
|
69671
69673
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
69672
|
-
const
|
|
69674
|
+
const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent);
|
|
69675
|
+
const inConstContext = isSpreadIntoCallOrNew || isConstContext(node);
|
|
69673
69676
|
const contextualType = getApparentTypeOfContextualType(
|
|
69674
69677
|
node,
|
|
69675
69678
|
/*contextFlags*/
|
|
69676
69679
|
void 0
|
|
69677
69680
|
);
|
|
69678
|
-
const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);
|
|
69681
|
+
const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType);
|
|
69679
69682
|
let hasOmittedExpression = false;
|
|
69680
69683
|
for (let i = 0; i < elementCount; i++) {
|
|
69681
69684
|
const e = elements[i];
|
|
@@ -77271,8 +77274,7 @@ ${lanes.join("\n")}
|
|
|
77271
77274
|
const subsequentName = subsequentNode.name;
|
|
77272
77275
|
if (node.name && subsequentName && // both are private identifiers
|
|
77273
77276
|
(isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names
|
|
77274
|
-
|
|
77275
|
-
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) || // Both are literal property names that are the same.
|
|
77277
|
+
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same.
|
|
77276
77278
|
isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) {
|
|
77277
77279
|
const reportError = (node.kind === 172 /* MethodDeclaration */ || node.kind === 171 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode);
|
|
77278
77280
|
if (reportError) {
|
package/lib/typescript.js
CHANGED
|
@@ -35,7 +35,7 @@ var ts = (() => {
|
|
|
35
35
|
"src/compiler/corePublic.ts"() {
|
|
36
36
|
"use strict";
|
|
37
37
|
versionMajorMinor = "5.1";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20230309`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -43552,6 +43552,8 @@ ${lanes.join("\n")}
|
|
|
43552
43552
|
declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */);
|
|
43553
43553
|
}
|
|
43554
43554
|
break;
|
|
43555
|
+
case 265 /* ModuleDeclaration */:
|
|
43556
|
+
break;
|
|
43555
43557
|
default:
|
|
43556
43558
|
Debug.failBadSyntaxKind(thisContainer);
|
|
43557
43559
|
}
|
|
@@ -69669,13 +69671,14 @@ ${lanes.join("\n")}
|
|
|
69669
69671
|
const elementFlags = [];
|
|
69670
69672
|
pushCachedContextualType(node);
|
|
69671
69673
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
69672
|
-
const
|
|
69674
|
+
const isSpreadIntoCallOrNew = isSpreadElement(node.parent) && isCallOrNewExpression(node.parent.parent);
|
|
69675
|
+
const inConstContext = isSpreadIntoCallOrNew || isConstContext(node);
|
|
69673
69676
|
const contextualType = getApparentTypeOfContextualType(
|
|
69674
69677
|
node,
|
|
69675
69678
|
/*contextFlags*/
|
|
69676
69679
|
void 0
|
|
69677
69680
|
);
|
|
69678
|
-
const inTupleContext = !!contextualType && someType(contextualType, isTupleLikeType);
|
|
69681
|
+
const inTupleContext = isSpreadIntoCallOrNew || !!contextualType && someType(contextualType, isTupleLikeType);
|
|
69679
69682
|
let hasOmittedExpression = false;
|
|
69680
69683
|
for (let i = 0; i < elementCount; i++) {
|
|
69681
69684
|
const e = elements[i];
|
|
@@ -77271,8 +77274,7 @@ ${lanes.join("\n")}
|
|
|
77271
77274
|
const subsequentName = subsequentNode.name;
|
|
77272
77275
|
if (node.name && subsequentName && // both are private identifiers
|
|
77273
77276
|
(isPrivateIdentifier(node.name) && isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText || // Both are computed property names
|
|
77274
|
-
|
|
77275
|
-
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) || // Both are literal property names that are the same.
|
|
77277
|
+
isComputedPropertyName(node.name) && isComputedPropertyName(subsequentName) && isTypeIdenticalTo(checkComputedPropertyName(node.name), checkComputedPropertyName(subsequentName)) || // Both are literal property names that are the same.
|
|
77276
77278
|
isPropertyNameLiteral(node.name) && isPropertyNameLiteral(subsequentName) && getEscapedTextOfIdentifierOrLiteral(node.name) === getEscapedTextOfIdentifierOrLiteral(subsequentName))) {
|
|
77277
77279
|
const reportError = (node.kind === 172 /* MethodDeclaration */ || node.kind === 171 /* MethodSignature */) && isStatic(node) !== isStatic(subsequentNode);
|
|
77278
77280
|
if (reportError) {
|
package/lib/typingsInstaller.js
CHANGED
|
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
|
|
|
54
54
|
|
|
55
55
|
// src/compiler/corePublic.ts
|
|
56
56
|
var versionMajorMinor = "5.1";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20230309`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
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.1.0-dev.
|
|
5
|
+
"version": "5.1.0-dev.20230309",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -112,5 +112,5 @@
|
|
|
112
112
|
"node": "14.21.1",
|
|
113
113
|
"npm": "8.19.3"
|
|
114
114
|
},
|
|
115
|
-
"gitHead": "
|
|
115
|
+
"gitHead": "d681520a14edf78560de2b098d6d68783e2fdd8d"
|
|
116
116
|
}
|