typescript 5.4.0-dev.20240214 → 5.4.0-dev.20240216
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 -2
- package/lib/tsserver.js +20 -5
- package/lib/typescript.js +20 -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.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20240216`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -115286,7 +115286,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
115286
115286
|
return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
|
|
115287
115287
|
}
|
|
115288
115288
|
}
|
|
115289
|
-
const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target
|
|
115289
|
+
const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target >= 8 /* ES2021 */ ? 8 /* AllowNumericSeparator */ : 0);
|
|
115290
115290
|
return getLiteralText(node, currentSourceFile, flags);
|
|
115291
115291
|
}
|
|
115292
115292
|
function pushNameGenerationScope(node) {
|
package/lib/tsserver.js
CHANGED
|
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2340
2340
|
|
|
2341
2341
|
// src/compiler/corePublic.ts
|
|
2342
2342
|
var versionMajorMinor = "5.4";
|
|
2343
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
2343
|
+
var version = `${versionMajorMinor}.0-dev.20240216`;
|
|
2344
2344
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2345
2345
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2346
2346
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -120212,7 +120212,7 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
|
120212
120212
|
return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
|
|
120213
120213
|
}
|
|
120214
120214
|
}
|
|
120215
|
-
const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target
|
|
120215
|
+
const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target >= 8 /* ES2021 */ ? 8 /* AllowNumericSeparator */ : 0);
|
|
120216
120216
|
return getLiteralText(node, currentSourceFile, flags);
|
|
120217
120217
|
}
|
|
120218
120218
|
function pushNameGenerationScope(node) {
|
|
@@ -153803,7 +153803,7 @@ registerCodeFix({
|
|
|
153803
153803
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
153804
153804
|
eachDiagnostic(context, errorCodes27, (diag2) => {
|
|
153805
153805
|
const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program);
|
|
153806
|
-
if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + info.token.text)) {
|
|
153806
|
+
if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 /* ObjectLiteral */ ? info.identifier : info.token.text))) {
|
|
153807
153807
|
return;
|
|
153808
153808
|
}
|
|
153809
153809
|
if (fixId52 === fixMissingFunctionDeclaration && (info.kind === 2 /* Function */ || info.kind === 5 /* Signature */)) {
|
|
@@ -153875,7 +153875,22 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
|
|
|
153875
153875
|
));
|
|
153876
153876
|
if (!length(properties))
|
|
153877
153877
|
return void 0;
|
|
153878
|
-
return { kind: 3 /* ObjectLiteral */, token: param.name, properties, parentDeclaration: parent2 };
|
|
153878
|
+
return { kind: 3 /* ObjectLiteral */, token: param.name, identifier: param.name.text, properties, parentDeclaration: parent2 };
|
|
153879
|
+
}
|
|
153880
|
+
if (token.kind === 19 /* OpenBraceToken */ && isObjectLiteralExpression(parent2)) {
|
|
153881
|
+
const targetType = checker.getContextualType(parent2) || checker.getTypeAtLocation(parent2);
|
|
153882
|
+
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
153883
|
+
checker.getTypeAtLocation(parent2),
|
|
153884
|
+
targetType,
|
|
153885
|
+
/*requireOptionalProperties*/
|
|
153886
|
+
false,
|
|
153887
|
+
/*matchDiscriminantProperties*/
|
|
153888
|
+
false
|
|
153889
|
+
));
|
|
153890
|
+
if (!length(properties))
|
|
153891
|
+
return void 0;
|
|
153892
|
+
const identifier = "";
|
|
153893
|
+
return { kind: 3 /* ObjectLiteral */, token: parent2, identifier, properties, parentDeclaration: parent2 };
|
|
153879
153894
|
}
|
|
153880
153895
|
if (!isMemberName(token))
|
|
153881
153896
|
return void 0;
|
|
@@ -153891,7 +153906,7 @@ function getInfo10(sourceFile, tokenPos, errorCode, checker, program) {
|
|
|
153891
153906
|
));
|
|
153892
153907
|
if (!length(properties))
|
|
153893
153908
|
return void 0;
|
|
153894
|
-
return { kind: 3 /* ObjectLiteral */, token, properties, parentDeclaration: parent2.initializer };
|
|
153909
|
+
return { kind: 3 /* ObjectLiteral */, token, identifier: token.text, properties, parentDeclaration: parent2.initializer };
|
|
153895
153910
|
}
|
|
153896
153911
|
if (isIdentifier(token) && isJsxOpeningLikeElement(token.parent)) {
|
|
153897
153912
|
const target = getEmitScriptTarget(program.getCompilerOptions());
|
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.20240216`;
|
|
39
39
|
Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
40
40
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
41
41
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -118244,7 +118244,7 @@ ${lanes.join("\n")}
|
|
|
118244
118244
|
return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);
|
|
118245
118245
|
}
|
|
118246
118246
|
}
|
|
118247
|
-
const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target
|
|
118247
|
+
const flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0) | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0) | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0) | (printerOptions.target && printerOptions.target >= 8 /* ES2021 */ ? 8 /* AllowNumericSeparator */ : 0);
|
|
118248
118248
|
return getLiteralText(node, currentSourceFile, flags);
|
|
118249
118249
|
}
|
|
118250
118250
|
function pushNameGenerationScope(node) {
|
|
@@ -152618,7 +152618,22 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
152618
152618
|
));
|
|
152619
152619
|
if (!length(properties))
|
|
152620
152620
|
return void 0;
|
|
152621
|
-
return { kind: 3 /* ObjectLiteral */, token: param.name, properties, parentDeclaration: parent2 };
|
|
152621
|
+
return { kind: 3 /* ObjectLiteral */, token: param.name, identifier: param.name.text, properties, parentDeclaration: parent2 };
|
|
152622
|
+
}
|
|
152623
|
+
if (token.kind === 19 /* OpenBraceToken */ && isObjectLiteralExpression(parent2)) {
|
|
152624
|
+
const targetType = checker.getContextualType(parent2) || checker.getTypeAtLocation(parent2);
|
|
152625
|
+
const properties = arrayFrom(checker.getUnmatchedProperties(
|
|
152626
|
+
checker.getTypeAtLocation(parent2),
|
|
152627
|
+
targetType,
|
|
152628
|
+
/*requireOptionalProperties*/
|
|
152629
|
+
false,
|
|
152630
|
+
/*matchDiscriminantProperties*/
|
|
152631
|
+
false
|
|
152632
|
+
));
|
|
152633
|
+
if (!length(properties))
|
|
152634
|
+
return void 0;
|
|
152635
|
+
const identifier = "";
|
|
152636
|
+
return { kind: 3 /* ObjectLiteral */, token: parent2, identifier, properties, parentDeclaration: parent2 };
|
|
152622
152637
|
}
|
|
152623
152638
|
if (!isMemberName(token))
|
|
152624
152639
|
return void 0;
|
|
@@ -152634,7 +152649,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
152634
152649
|
));
|
|
152635
152650
|
if (!length(properties))
|
|
152636
152651
|
return void 0;
|
|
152637
|
-
return { kind: 3 /* ObjectLiteral */, token, properties, parentDeclaration: parent2.initializer };
|
|
152652
|
+
return { kind: 3 /* ObjectLiteral */, token, identifier: token.text, properties, parentDeclaration: parent2.initializer };
|
|
152638
152653
|
}
|
|
152639
152654
|
if (isIdentifier(token) && isJsxOpeningLikeElement(token.parent)) {
|
|
152640
152655
|
const target = getEmitScriptTarget(program.getCompilerOptions());
|
|
@@ -153181,7 +153196,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
|
|
|
153181
153196
|
return createCombinedCodeActions(ts_textChanges_exports.ChangeTracker.with(context, (changes) => {
|
|
153182
153197
|
eachDiagnostic(context, errorCodes27, (diag2) => {
|
|
153183
153198
|
const info = getInfo10(diag2.file, diag2.start, diag2.code, checker, context.program);
|
|
153184
|
-
if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + info.token.text)) {
|
|
153199
|
+
if (!info || !addToSeen(seen, getNodeId(info.parentDeclaration) + "#" + (info.kind === 3 /* ObjectLiteral */ ? info.identifier : info.token.text))) {
|
|
153185
153200
|
return;
|
|
153186
153201
|
}
|
|
153187
153202
|
if (fixId52 === fixMissingFunctionDeclaration && (info.kind === 2 /* Function */ || info.kind === 5 /* Signature */)) {
|
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.20240216`;
|
|
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.4.0-dev.
|
|
5
|
+
"version": "5.4.0-dev.20240216",
|
|
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": "c4de2afcc289d42b7bef3df30911e120e8bd6d39"
|
|
117
117
|
}
|