Skip to content

Commit e7f1caf

Browse files
Bump version to 5.1.5 and LKG
1 parent f244192 commit e7f1caf

9 files changed

+25
-28
lines changed

Diff for: lib/tsc.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and limitations under the License.
1818

1919
// src/compiler/corePublic.ts
2020
var versionMajorMinor = "5.1";
21-
var version = "5.1.4";
21+
var version = "5.1.5";
2222

2323
// src/compiler/core.ts
2424
var emptyArray = [];
@@ -60584,7 +60584,6 @@ function createTypeChecker(host) {
6058460584
} else if (targetFlags & 8388608 /* IndexedAccess */) {
6058560585
if (sourceFlags & 8388608 /* IndexedAccess */) {
6058660586
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
60587-
instantiateType(source2.objectType, reportUnreliableMapper);
6058860587
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
6058960588
}
6059060589
if (result2) {

Diff for: lib/tsserver.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -2304,7 +2304,7 @@ module.exports = __toCommonJS(server_exports);
23042304

23052305
// src/compiler/corePublic.ts
23062306
var versionMajorMinor = "5.1";
2307-
var version = "5.1.4";
2307+
var version = "5.1.5";
23082308
var Comparison = /* @__PURE__ */ ((Comparison3) => {
23092309
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
23102310
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -65235,7 +65235,6 @@ function createTypeChecker(host) {
6523565235
} else if (targetFlags & 8388608 /* IndexedAccess */) {
6523665236
if (sourceFlags & 8388608 /* IndexedAccess */) {
6523765237
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
65238-
instantiateType(source2.objectType, reportUnreliableMapper);
6523965238
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
6524065239
}
6524165240
if (result2) {
@@ -156314,7 +156313,7 @@ function getSourceFromOrigin(origin) {
156314156313
}
156315156314
function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
156316156315
const start2 = timestamp();
156317-
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
156316+
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
156318156317
const useSemicolons = probablyUsesSemicolons(sourceFile);
156319156318
const typeChecker = program.getTypeChecker();
156320156319
const uniques = /* @__PURE__ */ new Map();
@@ -158493,11 +158492,12 @@ function isModuleSpecifierMissingOrEmpty(specifier) {
158493158492
return true;
158494158493
return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
158495158494
}
158496-
function getVariableOrParameterDeclaration(contextToken) {
158495+
function getVariableOrParameterDeclaration(contextToken, location) {
158497158496
if (!contextToken)
158498158497
return;
158499-
const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
158500-
return declaration;
158498+
const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
158499+
const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
158500+
return possiblyParameterDeclaration || possiblyVariableDeclaration;
158501158501
}
158502158502
function isArrowFunctionBody(node) {
158503158503
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
@@ -158739,7 +158739,7 @@ function getStringLiteralCompletionEntries(sourceFile, node, position, typeCheck
158739158739
case 290 /* JsxAttribute */:
158740158740
if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
158741158741
const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
158742-
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
158742+
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
158743158743
}
158744158744
case 271 /* ImportDeclaration */:
158745158745
case 277 /* ExportDeclaration */:

Diff for: lib/tsserverlibrary.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5446,7 +5446,6 @@ declare namespace ts {
54465446
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
54475447
interface JsxSpreadAttribute extends ObjectLiteralElement {
54485448
readonly kind: SyntaxKind.JsxSpreadAttribute;
5449-
readonly name: PropertyName;
54505449
readonly parent: JsxAttributes;
54515450
readonly expression: Expression;
54525451
}

Diff for: lib/tsserverlibrary.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var ts = (() => {
3535
"src/compiler/corePublic.ts"() {
3636
"use strict";
3737
versionMajorMinor = "5.1";
38-
version = "5.1.4";
38+
version = "5.1.5";
3939
Comparison = /* @__PURE__ */ ((Comparison3) => {
4040
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
4141
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -63026,7 +63026,6 @@ ${lanes.join("\n")}
6302663026
} else if (targetFlags & 8388608 /* IndexedAccess */) {
6302763027
if (sourceFlags & 8388608 /* IndexedAccess */) {
6302863028
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
63029-
instantiateType(source2.objectType, reportUnreliableMapper);
6303063029
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
6303163030
}
6303263031
if (result2) {
@@ -155546,7 +155545,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155546155545
}
155547155546
function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
155548155547
const start = timestamp();
155549-
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
155548+
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
155550155549
const useSemicolons = probablyUsesSemicolons(sourceFile);
155551155550
const typeChecker = program.getTypeChecker();
155552155551
const uniques = /* @__PURE__ */ new Map();
@@ -157703,11 +157702,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157703157702
return true;
157704157703
return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
157705157704
}
157706-
function getVariableOrParameterDeclaration(contextToken) {
157705+
function getVariableOrParameterDeclaration(contextToken, location) {
157707157706
if (!contextToken)
157708157707
return;
157709-
const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157710-
return declaration;
157708+
const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157709+
const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
157710+
return possiblyParameterDeclaration || possiblyVariableDeclaration;
157711157711
}
157712157712
function isArrowFunctionBody(node) {
157713157713
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
@@ -158014,7 +158014,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158014158014
case 290 /* JsxAttribute */:
158015158015
if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
158016158016
const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
158017-
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
158017+
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
158018158018
}
158019158019
case 271 /* ImportDeclaration */:
158020158020
case 277 /* ExportDeclaration */:

Diff for: lib/typescript.d.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1398,7 +1398,6 @@ declare namespace ts {
13981398
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
13991399
interface JsxSpreadAttribute extends ObjectLiteralElement {
14001400
readonly kind: SyntaxKind.JsxSpreadAttribute;
1401-
readonly name: PropertyName;
14021401
readonly parent: JsxAttributes;
14031402
readonly expression: Expression;
14041403
}

Diff for: lib/typescript.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var ts = (() => {
3535
"src/compiler/corePublic.ts"() {
3636
"use strict";
3737
versionMajorMinor = "5.1";
38-
version = "5.1.4";
38+
version = "5.1.5";
3939
Comparison = /* @__PURE__ */ ((Comparison3) => {
4040
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
4141
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
@@ -63026,7 +63026,6 @@ ${lanes.join("\n")}
6302663026
} else if (targetFlags & 8388608 /* IndexedAccess */) {
6302763027
if (sourceFlags & 8388608 /* IndexedAccess */) {
6302863028
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
63029-
instantiateType(source2.objectType, reportUnreliableMapper);
6303063029
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
6303163030
}
6303263031
if (result2) {
@@ -155561,7 +155560,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
155561155560
}
155562155561
function getCompletionEntriesFromSymbols(symbols, entries, replacementToken, contextToken, location, position, sourceFile, host, program, target, log, kind, preferences, compilerOptions, formatContext, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importStatementCompletion, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextMap, isJsxIdentifierExpected, isRightOfOpenTag, includeSymbol = false) {
155563155562
const start = timestamp();
155564-
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
155563+
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
155565155564
const useSemicolons = probablyUsesSemicolons(sourceFile);
155566155565
const typeChecker = program.getTypeChecker();
155567155566
const uniques = /* @__PURE__ */ new Map();
@@ -157718,11 +157717,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
157718157717
return true;
157719157718
return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
157720157719
}
157721-
function getVariableOrParameterDeclaration(contextToken) {
157720+
function getVariableOrParameterDeclaration(contextToken, location) {
157722157721
if (!contextToken)
157723157722
return;
157724-
const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157725-
return declaration;
157723+
const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
157724+
const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
157725+
return possiblyParameterDeclaration || possiblyVariableDeclaration;
157726157726
}
157727157727
function isArrowFunctionBody(node) {
157728157728
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
@@ -158029,7 +158029,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
158029158029
case 290 /* JsxAttribute */:
158030158030
if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
158031158031
const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
158032-
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
158032+
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
158033158033
}
158034158034
case 271 /* ImportDeclaration */:
158035158035
case 277 /* ExportDeclaration */:

Diff for: lib/typingsInstaller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var path = __toESM(require("path"));
5454

5555
// src/compiler/corePublic.ts
5656
var versionMajorMinor = "5.1";
57-
var version = "5.1.4";
57+
var version = "5.1.5";
5858

5959
// src/compiler/core.ts
6060
var emptyArray = [];

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "typescript",
33
"author": "Microsoft Corp.",
44
"homepage": "https://www.typescriptlang.org/",
5-
"version": "5.1.4",
5+
"version": "5.1.5",
66
"license": "Apache-2.0",
77
"description": "TypeScript is a language for application scale JavaScript development",
88
"keywords": [

Diff for: src/compiler/corePublic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const versionMajorMinor = "5.1";
44
// The following is baselined as a literal template type without intervention
55
/** The version of the TypeScript compiler release */
66
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
7-
export const version = "5.1.4" as string;
7+
export const version = "5.1.5" as string;
88

99
/**
1010
* Type of objects whose values are all of the same type.

0 commit comments

Comments
 (0)