Bump version to 4.5.4 and LKG

This commit is contained in:
TypeScript Bot 2021-12-11 00:10:14 +00:00
parent 1d4ec40130
commit 1bc124e635
8 changed files with 76 additions and 12 deletions

View File

@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
var ts;
(function (ts) {
ts.versionMajorMinor = "4.5";
ts.version = "4.5.3";
ts.version = "4.5.4";
var NativeCollections;
(function (NativeCollections) {
function tryGetNativeMap() {

View File

@ -100,7 +100,7 @@ var ts;
// 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
ts.version = "4.5.3";
ts.version = "4.5.4";
/* @internal */
var Comparison;
(function (Comparison) {
@ -128608,8 +128608,24 @@ var ts;
source = CompletionSource.ClassMemberSnippet;
}
}
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
// closed, as in:
//
// return <>
// foo <butto|
// </>
//
// We can detect this case by checking if both:
//
// 1. The location is "<", so we are completing immediately after it.
// 2. The "<" has the same position as its parent, so is not a binary expression.
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
if (kind === "JSX attribute" /* jsxAttribute */
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
&& preferences.includeCompletionsWithSnippetText
&& preferences.jsxAttributeCompletionStyle
&& preferences.jsxAttributeCompletionStyle !== "none") {
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

View File

@ -294,7 +294,7 @@ var ts;
// 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
ts.version = "4.5.3";
ts.version = "4.5.4";
/* @internal */
var Comparison;
(function (Comparison) {
@ -129190,8 +129190,24 @@ var ts;
source = CompletionSource.ClassMemberSnippet;
}
}
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
// closed, as in:
//
// return <>
// foo <butto|
// </>
//
// We can detect this case by checking if both:
//
// 1. The location is "<", so we are completing immediately after it.
// 2. The "<" has the same position as its parent, so is not a binary expression.
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
if (kind === "JSX attribute" /* jsxAttribute */
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
&& preferences.includeCompletionsWithSnippetText
&& preferences.jsxAttributeCompletionStyle
&& preferences.jsxAttributeCompletionStyle !== "none") {
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

View File

@ -294,7 +294,7 @@ var ts;
// 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
ts.version = "4.5.3";
ts.version = "4.5.4";
/* @internal */
var Comparison;
(function (Comparison) {
@ -129190,8 +129190,24 @@ var ts;
source = CompletionSource.ClassMemberSnippet;
}
}
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
// closed, as in:
//
// return <>
// foo <butto|
// </>
//
// We can detect this case by checking if both:
//
// 1. The location is "<", so we are completing immediately after it.
// 2. The "<" has the same position as its parent, so is not a binary expression.
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
if (kind === "JSX attribute" /* jsxAttribute */
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
&& preferences.includeCompletionsWithSnippetText
&& preferences.jsxAttributeCompletionStyle
&& preferences.jsxAttributeCompletionStyle !== "none") {
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

View File

@ -294,7 +294,7 @@ var ts;
// 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
ts.version = "4.5.3";
ts.version = "4.5.4";
/* @internal */
var Comparison;
(function (Comparison) {
@ -129190,8 +129190,24 @@ var ts;
source = CompletionSource.ClassMemberSnippet;
}
}
// Before offering up a JSX attribute snippet, ensure that we aren't potentially completing
// a tag name; this may appear as an attribute after the "<" when the tag has not yet been
// closed, as in:
//
// return <>
// foo <butto|
// </>
//
// We can detect this case by checking if both:
//
// 1. The location is "<", so we are completing immediately after it.
// 2. The "<" has the same position as its parent, so is not a binary expression.
var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location);
if (kind === "JSX attribute" /* jsxAttribute */ && preferences.includeCompletionsWithSnippetText && preferences.jsxAttributeCompletionStyle && preferences.jsxAttributeCompletionStyle !== "none") {
if (kind === "JSX attribute" /* jsxAttribute */
&& (location.kind !== 29 /* LessThanToken */ || location.pos !== location.parent.pos)
&& preferences.includeCompletionsWithSnippetText
&& preferences.jsxAttributeCompletionStyle
&& preferences.jsxAttributeCompletionStyle !== "none") {
var useBraces_1 = preferences.jsxAttributeCompletionStyle === "braces";
var type = typeChecker.getTypeOfSymbolAtLocation(symbol, location);
// If is boolean like or undefined, don't return a snippet we want just to return the completion.

View File

@ -89,7 +89,7 @@ var ts;
// 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
ts.version = "4.5.3";
ts.version = "4.5.4";
/* @internal */
var Comparison;
(function (Comparison) {

View File

@ -2,7 +2,7 @@
"name": "typescript",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "4.5.3",
"version": "4.5.4",
"license": "Apache-2.0",
"description": "TypeScript is a language for application scale JavaScript development",
"keywords": [

View File

@ -5,7 +5,7 @@ namespace ts {
// 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 = "4.5.3" as string;
export const version = "4.5.4" as string;
/**
* Type of objects whose values are all of the same type.