Skip to content

Commit

Permalink
Bump version to 4.5.4 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Dec 11, 2021
1 parent 1d4ec40 commit 1bc124e
Show file tree
Hide file tree
Showing 8 changed files with 76 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
20 changes: 18 additions & 2 deletions lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down
20 changes: 18 additions & 2 deletions lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down
20 changes: 18 additions & 2 deletions lib/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down
20 changes: 18 additions & 2 deletions lib/typescriptServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/typingsInstaller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
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": "4.5.3",
"version": "4.5.4",
"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 @@ -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.
Expand Down

0 comments on commit 1bc124e

Please sign in to comment.