Skip to content

Commit

Permalink
Bump version to 5.1.5 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Jun 27, 2023
1 parent f244192 commit e7f1caf
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 28 deletions.
3 changes: 1 addition & 2 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ and limitations under the License.

// src/compiler/corePublic.ts
var versionMajorMinor = "5.1";
var version = "5.1.4";
var version = "5.1.5";

// src/compiler/core.ts
var emptyArray = [];
Expand Down Expand Up @@ -60584,7 +60584,6 @@ function createTypeChecker(host) {
} else if (targetFlags & 8388608 /* IndexedAccess */) {
if (sourceFlags & 8388608 /* IndexedAccess */) {
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
instantiateType(source2.objectType, reportUnreliableMapper);
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
}
if (result2) {
Expand Down
14 changes: 7 additions & 7 deletions lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,7 @@ module.exports = __toCommonJS(server_exports);

// src/compiler/corePublic.ts
var versionMajorMinor = "5.1";
var version = "5.1.4";
var version = "5.1.5";
var Comparison = /* @__PURE__ */ ((Comparison3) => {
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
Expand Down Expand Up @@ -65235,7 +65235,6 @@ function createTypeChecker(host) {
} else if (targetFlags & 8388608 /* IndexedAccess */) {
if (sourceFlags & 8388608 /* IndexedAccess */) {
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
instantiateType(source2.objectType, reportUnreliableMapper);
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
}
if (result2) {
Expand Down Expand Up @@ -156314,7 +156313,7 @@ function getSourceFromOrigin(origin) {
}
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) {
const start2 = timestamp();
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
const useSemicolons = probablyUsesSemicolons(sourceFile);
const typeChecker = program.getTypeChecker();
const uniques = /* @__PURE__ */ new Map();
Expand Down Expand Up @@ -158493,11 +158492,12 @@ function isModuleSpecifierMissingOrEmpty(specifier) {
return true;
return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
}
function getVariableOrParameterDeclaration(contextToken) {
function getVariableOrParameterDeclaration(contextToken, location) {
if (!contextToken)
return;
const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
return declaration;
const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
return possiblyParameterDeclaration || possiblyVariableDeclaration;
}
function isArrowFunctionBody(node) {
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
Expand Down Expand Up @@ -158739,7 +158739,7 @@ function getStringLiteralCompletionEntries(sourceFile, node, position, typeCheck
case 290 /* JsxAttribute */:
if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
}
case 271 /* ImportDeclaration */:
case 277 /* ExportDeclaration */:
Expand Down
1 change: 0 additions & 1 deletion lib/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5446,7 +5446,6 @@ declare namespace ts {
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
interface JsxSpreadAttribute extends ObjectLiteralElement {
readonly kind: SyntaxKind.JsxSpreadAttribute;
readonly name: PropertyName;
readonly parent: JsxAttributes;
readonly expression: Expression;
}
Expand Down
14 changes: 7 additions & 7 deletions lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var ts = (() => {
"src/compiler/corePublic.ts"() {
"use strict";
versionMajorMinor = "5.1";
version = "5.1.4";
version = "5.1.5";
Comparison = /* @__PURE__ */ ((Comparison3) => {
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
Expand Down Expand Up @@ -63026,7 +63026,6 @@ ${lanes.join("\n")}
} else if (targetFlags & 8388608 /* IndexedAccess */) {
if (sourceFlags & 8388608 /* IndexedAccess */) {
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
instantiateType(source2.objectType, reportUnreliableMapper);
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
}
if (result2) {
Expand Down Expand Up @@ -155546,7 +155545,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
}
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) {
const start = timestamp();
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
const useSemicolons = probablyUsesSemicolons(sourceFile);
const typeChecker = program.getTypeChecker();
const uniques = /* @__PURE__ */ new Map();
Expand Down Expand Up @@ -157703,11 +157702,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
return true;
return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
}
function getVariableOrParameterDeclaration(contextToken) {
function getVariableOrParameterDeclaration(contextToken, location) {
if (!contextToken)
return;
const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
return declaration;
const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
return possiblyParameterDeclaration || possiblyVariableDeclaration;
}
function isArrowFunctionBody(node) {
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
Expand Down Expand Up @@ -158014,7 +158014,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
case 290 /* JsxAttribute */:
if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
}
case 271 /* ImportDeclaration */:
case 277 /* ExportDeclaration */:
Expand Down
1 change: 0 additions & 1 deletion lib/typescript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,6 @@ declare namespace ts {
type JsxAttributeValue = StringLiteral | JsxExpression | JsxElement | JsxSelfClosingElement | JsxFragment;
interface JsxSpreadAttribute extends ObjectLiteralElement {
readonly kind: SyntaxKind.JsxSpreadAttribute;
readonly name: PropertyName;
readonly parent: JsxAttributes;
readonly expression: Expression;
}
Expand Down
14 changes: 7 additions & 7 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var ts = (() => {
"src/compiler/corePublic.ts"() {
"use strict";
versionMajorMinor = "5.1";
version = "5.1.4";
version = "5.1.5";
Comparison = /* @__PURE__ */ ((Comparison3) => {
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
Expand Down Expand Up @@ -63026,7 +63026,6 @@ ${lanes.join("\n")}
} else if (targetFlags & 8388608 /* IndexedAccess */) {
if (sourceFlags & 8388608 /* IndexedAccess */) {
if (result2 = isRelatedTo(source2.objectType, target2.objectType, 3 /* Both */, reportErrors2)) {
instantiateType(source2.objectType, reportUnreliableMapper);
result2 &= isRelatedTo(source2.indexType, target2.indexType, 3 /* Both */, reportErrors2);
}
if (result2) {
Expand Down Expand Up @@ -155561,7 +155560,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
}
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) {
const start = timestamp();
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken);
const variableOrParameterDeclaration = getVariableOrParameterDeclaration(contextToken, location);
const useSemicolons = probablyUsesSemicolons(sourceFile);
const typeChecker = program.getTypeChecker();
const uniques = /* @__PURE__ */ new Map();
Expand Down Expand Up @@ -157718,11 +157717,12 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
return true;
return !((_a = tryCast(isExternalModuleReference(specifier) ? specifier.expression : specifier, isStringLiteralLike)) == null ? void 0 : _a.text);
}
function getVariableOrParameterDeclaration(contextToken) {
function getVariableOrParameterDeclaration(contextToken, location) {
if (!contextToken)
return;
const declaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node) || (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
return declaration;
const possiblyParameterDeclaration = findAncestor(contextToken, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : (isParameter(node) || isTypeParameterDeclaration(node)) && !isIndexSignatureDeclaration(node.parent));
const possiblyVariableDeclaration = findAncestor(location, (node) => isFunctionBlock(node) || isArrowFunctionBody(node) || isBindingPattern(node) ? "quit" : isVariableDeclaration(node));
return possiblyParameterDeclaration || possiblyVariableDeclaration;
}
function isArrowFunctionBody(node) {
return node.parent && isArrowFunction(node.parent) && (node.parent.body === node || // const a = () => /**/;
Expand Down Expand Up @@ -158029,7 +158029,7 @@ ${newComment.split("\n").map((c) => ` * ${c}`).join("\n")}
case 290 /* JsxAttribute */:
if (!isRequireCallArgument(node) && !isImportCall(parent2)) {
const argumentInfo = ts_SignatureHelp_exports.getArgumentInfoForCompletions(parent2.kind === 290 /* JsxAttribute */ ? parent2.parent : node, position, sourceFile);
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType();
return argumentInfo && getStringLiteralCompletionsFromSignature(argumentInfo.invocation, node, argumentInfo, typeChecker) || fromContextualType(0 /* None */);
}
case 271 /* ImportDeclaration */:
case 277 /* ExportDeclaration */:
Expand Down
2 changes: 1 addition & 1 deletion lib/typingsInstaller.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var path = __toESM(require("path"));

// src/compiler/corePublic.ts
var versionMajorMinor = "5.1";
var version = "5.1.4";
var version = "5.1.5";

// src/compiler/core.ts
var emptyArray = [];
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "typescript",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "5.1.4",
"version": "5.1.5",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/compiler/corePublic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const versionMajorMinor = "5.1";
// The following is baselined as a literal template type without intervention
/** The version of the TypeScript compiler release */
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
export const version = "5.1.4" as string;
export const version = "5.1.5" as string;

/**
* Type of objects whose values are all of the same type.
Expand Down

0 comments on commit e7f1caf

Please sign in to comment.