typescript 5.3.0-dev.20231002 → 5.3.0-dev.20231003
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 +2 -1
- package/lib/tsserver.js +7 -5
- package/lib/typescript.d.ts +1 -1
- package/lib/typescript.js +7 -5
- package/lib/typingsInstaller.js +1 -1
- 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 = "5.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20231003`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -14270,6 +14270,7 @@ function getPropertyNameForPropertyNameNode(name) {
|
|
|
14270
14270
|
case 81 /* PrivateIdentifier */:
|
|
14271
14271
|
return name.escapedText;
|
|
14272
14272
|
case 11 /* StringLiteral */:
|
|
14273
|
+
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
14273
14274
|
case 9 /* NumericLiteral */:
|
|
14274
14275
|
return escapeLeadingUnderscores(name.text);
|
|
14275
14276
|
case 167 /* ComputedPropertyName */:
|
package/lib/tsserver.js
CHANGED
|
@@ -2328,7 +2328,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2328
2328
|
|
|
2329
2329
|
// src/compiler/corePublic.ts
|
|
2330
2330
|
var versionMajorMinor = "5.3";
|
|
2331
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2331
|
+
var version = `${versionMajorMinor}.0-dev.20231003`;
|
|
2332
2332
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2333
2333
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2334
2334
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -18197,6 +18197,7 @@ function getPropertyNameForPropertyNameNode(name) {
|
|
|
18197
18197
|
case 81 /* PrivateIdentifier */:
|
|
18198
18198
|
return name.escapedText;
|
|
18199
18199
|
case 11 /* StringLiteral */:
|
|
18200
|
+
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
18200
18201
|
case 9 /* NumericLiteral */:
|
|
18201
18202
|
return escapeLeadingUnderscores(name.text);
|
|
18202
18203
|
case 167 /* ComputedPropertyName */:
|
|
@@ -143081,7 +143082,7 @@ function doChange7(sourceFile, changes, declaration, typeNode) {
|
|
|
143081
143082
|
function getInfo4(context) {
|
|
143082
143083
|
if (isInJSFile(context.file) || !refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind))
|
|
143083
143084
|
return;
|
|
143084
|
-
const token =
|
|
143085
|
+
const token = getTouchingPropertyName(context.file, context.startPosition);
|
|
143085
143086
|
const declaration = findAncestor(token, (n) => isBlock(n) || n.parent && isArrowFunction(n.parent) && (n.kind === 39 /* EqualsGreaterThanToken */ || n.parent.body === n) ? "quit" : isConvertibleDeclaration(n));
|
|
143086
143087
|
if (!declaration || !declaration.body || declaration.type) {
|
|
143087
143088
|
return { error: getLocaleSpecificMessage(Diagnostics.Return_type_must_be_inferred_from_a_function) };
|
|
@@ -158303,7 +158304,7 @@ function getCompletionEntryDetails(program, log, sourceFile, position, entryId,
|
|
|
158303
158304
|
return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), "string" /* string */, typeof literal === "string" ? 8 /* stringLiteral */ : 7 /* numericLiteral */);
|
|
158304
158305
|
}
|
|
158305
158306
|
case "cases": {
|
|
158306
|
-
const
|
|
158307
|
+
const snippets = getExhaustiveCaseSnippets(
|
|
158307
158308
|
contextToken.parent,
|
|
158308
158309
|
sourceFile,
|
|
158309
158310
|
preferences,
|
|
@@ -158313,7 +158314,8 @@ function getCompletionEntryDetails(program, log, sourceFile, position, entryId,
|
|
|
158313
158314
|
/*formatContext*/
|
|
158314
158315
|
void 0
|
|
158315
158316
|
);
|
|
158316
|
-
if (importAdder.hasFixes()) {
|
|
158317
|
+
if (snippets == null ? void 0 : snippets.importAdder.hasFixes()) {
|
|
158318
|
+
const { entry, importAdder } = snippets;
|
|
158317
158319
|
const changes = ts_textChanges_exports.ChangeTracker.with(
|
|
158318
158320
|
{ host, formatContext, preferences },
|
|
158319
158321
|
importAdder.writeFixes
|
|
@@ -158331,7 +158333,7 @@ function getCompletionEntryDetails(program, log, sourceFile, position, entryId,
|
|
|
158331
158333
|
};
|
|
158332
158334
|
}
|
|
158333
158335
|
return {
|
|
158334
|
-
name
|
|
158336
|
+
name,
|
|
158335
158337
|
kind: "" /* unknown */,
|
|
158336
158338
|
kindModifiers: "",
|
|
158337
158339
|
displayParts: [],
|
package/lib/typescript.d.ts
CHANGED
|
@@ -4976,7 +4976,7 @@ declare namespace ts {
|
|
|
4976
4976
|
readonly right: Identifier;
|
|
4977
4977
|
}
|
|
4978
4978
|
type EntityName = Identifier | QualifiedName;
|
|
4979
|
-
type PropertyName = Identifier | StringLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
|
|
4979
|
+
type PropertyName = Identifier | StringLiteral | NoSubstitutionTemplateLiteral | NumericLiteral | ComputedPropertyName | PrivateIdentifier;
|
|
4980
4980
|
type MemberName = Identifier | PrivateIdentifier;
|
|
4981
4981
|
type DeclarationName = PropertyName | JsxAttributeName | StringLiteralLike | ElementAccessExpression | BindingPattern | EntityNameExpression;
|
|
4982
4982
|
interface Declaration extends Node {
|
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.3";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20231003`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -15566,6 +15566,7 @@ ${lanes.join("\n")}
|
|
|
15566
15566
|
case 81 /* PrivateIdentifier */:
|
|
15567
15567
|
return name.escapedText;
|
|
15568
15568
|
case 11 /* StringLiteral */:
|
|
15569
|
+
case 15 /* NoSubstitutionTemplateLiteral */:
|
|
15569
15570
|
case 9 /* NumericLiteral */:
|
|
15570
15571
|
return escapeLeadingUnderscores(name.text);
|
|
15571
15572
|
case 167 /* ComputedPropertyName */:
|
|
@@ -141597,7 +141598,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
141597
141598
|
function getInfo4(context) {
|
|
141598
141599
|
if (isInJSFile(context.file) || !refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind))
|
|
141599
141600
|
return;
|
|
141600
|
-
const token =
|
|
141601
|
+
const token = getTouchingPropertyName(context.file, context.startPosition);
|
|
141601
141602
|
const declaration = findAncestor(token, (n) => isBlock(n) || n.parent && isArrowFunction(n.parent) && (n.kind === 39 /* EqualsGreaterThanToken */ || n.parent.body === n) ? "quit" : isConvertibleDeclaration(n));
|
|
141602
141603
|
if (!declaration || !declaration.body || declaration.type) {
|
|
141603
141604
|
return { error: getLocaleSpecificMessage(Diagnostics.Return_type_must_be_inferred_from_a_function) };
|
|
@@ -157527,7 +157528,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
157527
157528
|
return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), "string" /* string */, typeof literal === "string" ? 8 /* stringLiteral */ : 7 /* numericLiteral */);
|
|
157528
157529
|
}
|
|
157529
157530
|
case "cases": {
|
|
157530
|
-
const
|
|
157531
|
+
const snippets = getExhaustiveCaseSnippets(
|
|
157531
157532
|
contextToken.parent,
|
|
157532
157533
|
sourceFile,
|
|
157533
157534
|
preferences,
|
|
@@ -157537,7 +157538,8 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
157537
157538
|
/*formatContext*/
|
|
157538
157539
|
void 0
|
|
157539
157540
|
);
|
|
157540
|
-
if (importAdder.hasFixes()) {
|
|
157541
|
+
if (snippets == null ? void 0 : snippets.importAdder.hasFixes()) {
|
|
157542
|
+
const { entry, importAdder } = snippets;
|
|
157541
157543
|
const changes = ts_textChanges_exports.ChangeTracker.with(
|
|
157542
157544
|
{ host, formatContext, preferences },
|
|
157543
157545
|
importAdder.writeFixes
|
|
@@ -157555,7 +157557,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
157555
157557
|
};
|
|
157556
157558
|
}
|
|
157557
157559
|
return {
|
|
157558
|
-
name
|
|
157560
|
+
name,
|
|
157559
157561
|
kind: "" /* unknown */,
|
|
157560
157562
|
kindModifiers: "",
|
|
157561
157563
|
displayParts: [],
|
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.3";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20231003`;
|
|
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.3.0-dev.
|
|
5
|
+
"version": "5.3.0-dev.20231003",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"node": "20.1.0",
|
|
114
114
|
"npm": "8.19.4"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "3116b89afea96c48db0384b4accb6adb47895b9f"
|
|
117
117
|
}
|