typescript 5.4.0-dev.20231113 → 5.4.0-dev.20231114
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 -2
- package/lib/tsserver.js +13 -2
- package/lib/typescript.js +13 -2
- package/lib/typingsInstaller.js +5 -2
- 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.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20231114`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -31217,6 +31217,9 @@ var Parser;
|
|
|
31217
31217
|
function nextTokenIsStringLiteral() {
|
|
31218
31218
|
return nextToken() === 11 /* StringLiteral */;
|
|
31219
31219
|
}
|
|
31220
|
+
function nextTokenIsFromKeyword() {
|
|
31221
|
+
return nextToken() === 161 /* FromKeyword */;
|
|
31222
|
+
}
|
|
31220
31223
|
function nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
31221
31224
|
nextToken();
|
|
31222
31225
|
return !scanner.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */);
|
|
@@ -31912,7 +31915,7 @@ var Parser;
|
|
|
31912
31915
|
identifier = parseIdentifier();
|
|
31913
31916
|
}
|
|
31914
31917
|
let isTypeOnly = false;
|
|
31915
|
-
if (
|
|
31918
|
+
if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeyword)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) {
|
|
31916
31919
|
isTypeOnly = true;
|
|
31917
31920
|
identifier = isIdentifier2() ? parseIdentifier() : void 0;
|
|
31918
31921
|
}
|
|
@@ -40407,6 +40410,9 @@ function createBinder() {
|
|
|
40407
40410
|
for (let i = 0; i < clauses.length; i++) {
|
|
40408
40411
|
const clauseStart = i;
|
|
40409
40412
|
while (!clauses[i].statements.length && i + 1 < clauses.length) {
|
|
40413
|
+
if (fallthroughFlow === unreachableFlow) {
|
|
40414
|
+
currentFlow = preSwitchCaseFlow;
|
|
40415
|
+
}
|
|
40410
40416
|
bind(clauses[i]);
|
|
40411
40417
|
i++;
|
|
40412
40418
|
}
|
package/lib/tsserver.js
CHANGED
|
@@ -2330,7 +2330,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2330
2330
|
|
|
2331
2331
|
// src/compiler/corePublic.ts
|
|
2332
2332
|
var versionMajorMinor = "5.4";
|
|
2333
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2333
|
+
var version = `${versionMajorMinor}.0-dev.20231114`;
|
|
2334
2334
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2335
2335
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2336
2336
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -35625,6 +35625,9 @@ var Parser;
|
|
|
35625
35625
|
function nextTokenIsStringLiteral() {
|
|
35626
35626
|
return nextToken() === 11 /* StringLiteral */;
|
|
35627
35627
|
}
|
|
35628
|
+
function nextTokenIsFromKeyword() {
|
|
35629
|
+
return nextToken() === 161 /* FromKeyword */;
|
|
35630
|
+
}
|
|
35628
35631
|
function nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
35629
35632
|
nextToken();
|
|
35630
35633
|
return !scanner2.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */);
|
|
@@ -36320,7 +36323,7 @@ var Parser;
|
|
|
36320
36323
|
identifier = parseIdentifier();
|
|
36321
36324
|
}
|
|
36322
36325
|
let isTypeOnly = false;
|
|
36323
|
-
if (
|
|
36326
|
+
if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeyword)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) {
|
|
36324
36327
|
isTypeOnly = true;
|
|
36325
36328
|
identifier = isIdentifier2() ? parseIdentifier() : void 0;
|
|
36326
36329
|
}
|
|
@@ -45070,6 +45073,9 @@ function createBinder() {
|
|
|
45070
45073
|
for (let i = 0; i < clauses.length; i++) {
|
|
45071
45074
|
const clauseStart = i;
|
|
45072
45075
|
while (!clauses[i].statements.length && i + 1 < clauses.length) {
|
|
45076
|
+
if (fallthroughFlow === unreachableFlow) {
|
|
45077
|
+
currentFlow = preSwitchCaseFlow;
|
|
45078
|
+
}
|
|
45073
45079
|
bind(clauses[i]);
|
|
45074
45080
|
i++;
|
|
45075
45081
|
}
|
|
@@ -161078,6 +161084,11 @@ function getImportStatementCompletionInfo(contextToken, sourceFile) {
|
|
|
161078
161084
|
}
|
|
161079
161085
|
return void 0;
|
|
161080
161086
|
}
|
|
161087
|
+
if (isExportDeclaration(parent2) && contextToken.kind === 42 /* AsteriskToken */ || isNamedExports(parent2) && contextToken.kind === 20 /* CloseBraceToken */) {
|
|
161088
|
+
isKeywordOnlyCompletion = true;
|
|
161089
|
+
keywordCompletion = 161 /* FromKeyword */;
|
|
161090
|
+
return void 0;
|
|
161091
|
+
}
|
|
161081
161092
|
if (isImportKeyword(contextToken) && isSourceFile(parent2)) {
|
|
161082
161093
|
keywordCompletion = 156 /* TypeKeyword */;
|
|
161083
161094
|
return contextToken;
|
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.4";
|
|
38
|
-
version = `${versionMajorMinor}.0-dev.
|
|
38
|
+
version = `${versionMajorMinor}.0-dev.20231114`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -33695,6 +33695,9 @@ ${lanes.join("\n")}
|
|
|
33695
33695
|
function nextTokenIsStringLiteral() {
|
|
33696
33696
|
return nextToken() === 11 /* StringLiteral */;
|
|
33697
33697
|
}
|
|
33698
|
+
function nextTokenIsFromKeyword() {
|
|
33699
|
+
return nextToken() === 161 /* FromKeyword */;
|
|
33700
|
+
}
|
|
33698
33701
|
function nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
33699
33702
|
nextToken();
|
|
33700
33703
|
return !scanner2.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */);
|
|
@@ -34390,7 +34393,7 @@ ${lanes.join("\n")}
|
|
|
34390
34393
|
identifier = parseIdentifier();
|
|
34391
34394
|
}
|
|
34392
34395
|
let isTypeOnly = false;
|
|
34393
|
-
if (
|
|
34396
|
+
if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeyword)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) {
|
|
34394
34397
|
isTypeOnly = true;
|
|
34395
34398
|
identifier = isIdentifier2() ? parseIdentifier() : void 0;
|
|
34396
34399
|
}
|
|
@@ -42915,6 +42918,9 @@ ${lanes.join("\n")}
|
|
|
42915
42918
|
for (let i = 0; i < clauses.length; i++) {
|
|
42916
42919
|
const clauseStart = i;
|
|
42917
42920
|
while (!clauses[i].statements.length && i + 1 < clauses.length) {
|
|
42921
|
+
if (fallthroughFlow === unreachableFlow) {
|
|
42922
|
+
currentFlow = preSwitchCaseFlow;
|
|
42923
|
+
}
|
|
42918
42924
|
bind(clauses[i]);
|
|
42919
42925
|
i++;
|
|
42920
42926
|
}
|
|
@@ -160279,6 +160285,11 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
160279
160285
|
}
|
|
160280
160286
|
return void 0;
|
|
160281
160287
|
}
|
|
160288
|
+
if (isExportDeclaration(parent2) && contextToken.kind === 42 /* AsteriskToken */ || isNamedExports(parent2) && contextToken.kind === 20 /* CloseBraceToken */) {
|
|
160289
|
+
isKeywordOnlyCompletion = true;
|
|
160290
|
+
keywordCompletion = 161 /* FromKeyword */;
|
|
160291
|
+
return void 0;
|
|
160292
|
+
}
|
|
160282
160293
|
if (isImportKeyword(contextToken) && isSourceFile(parent2)) {
|
|
160283
160294
|
keywordCompletion = 156 /* TypeKeyword */;
|
|
160284
160295
|
return contextToken;
|
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.4";
|
|
57
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
57
|
+
var version = `${versionMajorMinor}.0-dev.20231114`;
|
|
58
58
|
|
|
59
59
|
// src/compiler/core.ts
|
|
60
60
|
var emptyArray = [];
|
|
@@ -23031,6 +23031,9 @@ var Parser;
|
|
|
23031
23031
|
function nextTokenIsStringLiteral() {
|
|
23032
23032
|
return nextToken() === 11 /* StringLiteral */;
|
|
23033
23033
|
}
|
|
23034
|
+
function nextTokenIsFromKeyword() {
|
|
23035
|
+
return nextToken() === 161 /* FromKeyword */;
|
|
23036
|
+
}
|
|
23034
23037
|
function nextTokenIsIdentifierOrStringLiteralOnSameLine() {
|
|
23035
23038
|
nextToken();
|
|
23036
23039
|
return !scanner.hasPrecedingLineBreak() && (isIdentifier2() || token() === 11 /* StringLiteral */);
|
|
@@ -23726,7 +23729,7 @@ var Parser;
|
|
|
23726
23729
|
identifier = parseIdentifier();
|
|
23727
23730
|
}
|
|
23728
23731
|
let isTypeOnly = false;
|
|
23729
|
-
if (
|
|
23732
|
+
if ((identifier == null ? void 0 : identifier.escapedText) === "type" && (token() !== 161 /* FromKeyword */ || isIdentifier2() && lookAhead(nextTokenIsFromKeyword)) && (isIdentifier2() || tokenAfterImportDefinitelyProducesImportDeclaration())) {
|
|
23730
23733
|
isTypeOnly = true;
|
|
23731
23734
|
identifier = isIdentifier2() ? parseIdentifier() : void 0;
|
|
23732
23735
|
}
|
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.4.0-dev.
|
|
5
|
+
"version": "5.4.0-dev.20231114",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "b970fa4ae510c0e108670e497df967a05645a6a7"
|
|
118
118
|
}
|