diff --git a/lib/tsc.js b/lib/tsc.js index d425ad1b55369..e81c6d87ee334 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { var ts; (function (ts) { ts.versionMajorMinor = "4.4"; - ts.version = "4.4.2"; + ts.version = "4.4.3"; var NativeCollections; (function (NativeCollections) { function tryGetNativeMap() { @@ -97526,6 +97526,10 @@ var ts; }); parsedConfigs = undefined; } + if (packageJsonMap) { + ts.clearMap(packageJsonMap, ts.closeFileWatcher); + packageJsonMap = undefined; + } } function getCurrentBuilderProgram() { return builderProgram; diff --git a/lib/tsserver.js b/lib/tsserver.js index 6e4ee30b7be1d..fe6210be028d9 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -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.4.2"; + ts.version = "4.4.3"; /* @internal */ var Comparison; (function (Comparison) { @@ -118027,6 +118027,10 @@ var ts; }); parsedConfigs = undefined; } + if (packageJsonMap) { + ts.clearMap(packageJsonMap, ts.closeFileWatcher); + packageJsonMap = undefined; + } } function getCurrentBuilderProgram() { return builderProgram; @@ -126702,13 +126706,16 @@ var ts; case 204 /* PropertyAccessExpression */: propertyAccessToConvert = parent; node = propertyAccessToConvert.expression; - if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && - node.end === contextToken.pos && - node.getChildCount(sourceFile) && - ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) { + var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert); + if (ts.nodeIsMissing(leftmostAccessExpression) || + ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && + node.end === contextToken.pos && + node.getChildCount(sourceFile) && + ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) { // This is likely dot from incorrectly parsed expression and user is starting to write spread // eg: Math.min(./**/) // const x = function (./**/) {} + // ({./**/}) return undefined; } break; diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 5fa1cd290e10a..d7f4aeafca012 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -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.4.2"; + ts.version = "4.4.3"; /* @internal */ var Comparison; (function (Comparison) { @@ -118221,6 +118221,10 @@ var ts; }); parsedConfigs = undefined; } + if (packageJsonMap) { + ts.clearMap(packageJsonMap, ts.closeFileWatcher); + packageJsonMap = undefined; + } } function getCurrentBuilderProgram() { return builderProgram; @@ -127284,13 +127288,16 @@ var ts; case 204 /* PropertyAccessExpression */: propertyAccessToConvert = parent; node = propertyAccessToConvert.expression; - if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && - node.end === contextToken.pos && - node.getChildCount(sourceFile) && - ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) { + var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert); + if (ts.nodeIsMissing(leftmostAccessExpression) || + ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && + node.end === contextToken.pos && + node.getChildCount(sourceFile) && + ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) { // This is likely dot from incorrectly parsed expression and user is starting to write spread // eg: Math.min(./**/) // const x = function (./**/) {} + // ({./**/}) return undefined; } break; diff --git a/lib/typescript.js b/lib/typescript.js index 44462973f29fb..ebd4c15a2a6a7 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -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.4.2"; + ts.version = "4.4.3"; /* @internal */ var Comparison; (function (Comparison) { @@ -118221,6 +118221,10 @@ var ts; }); parsedConfigs = undefined; } + if (packageJsonMap) { + ts.clearMap(packageJsonMap, ts.closeFileWatcher); + packageJsonMap = undefined; + } } function getCurrentBuilderProgram() { return builderProgram; @@ -127284,13 +127288,16 @@ var ts; case 204 /* PropertyAccessExpression */: propertyAccessToConvert = parent; node = propertyAccessToConvert.expression; - if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && - node.end === contextToken.pos && - node.getChildCount(sourceFile) && - ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) { + var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert); + if (ts.nodeIsMissing(leftmostAccessExpression) || + ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && + node.end === contextToken.pos && + node.getChildCount(sourceFile) && + ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) { // This is likely dot from incorrectly parsed expression and user is starting to write spread // eg: Math.min(./**/) // const x = function (./**/) {} + // ({./**/}) return undefined; } break; diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index 20a6fc52e509b..9fb67067ec13c 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -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.4.2"; + ts.version = "4.4.3"; /* @internal */ var Comparison; (function (Comparison) { @@ -118221,6 +118221,10 @@ var ts; }); parsedConfigs = undefined; } + if (packageJsonMap) { + ts.clearMap(packageJsonMap, ts.closeFileWatcher); + packageJsonMap = undefined; + } } function getCurrentBuilderProgram() { return builderProgram; @@ -127284,13 +127288,16 @@ var ts; case 204 /* PropertyAccessExpression */: propertyAccessToConvert = parent; node = propertyAccessToConvert.expression; - if ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && - node.end === contextToken.pos && - node.getChildCount(sourceFile) && - ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */) { + var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert); + if (ts.nodeIsMissing(leftmostAccessExpression) || + ((ts.isCallExpression(node) || ts.isFunctionLike(node)) && + node.end === contextToken.pos && + node.getChildCount(sourceFile) && + ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) { // This is likely dot from incorrectly parsed expression and user is starting to write spread // eg: Math.min(./**/) // const x = function (./**/) {} + // ({./**/}) return undefined; } break; diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index a0e7177a10ceb..ba475a0e8e99f 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -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.4.2"; + ts.version = "4.4.3"; /* @internal */ var Comparison; (function (Comparison) { @@ -118016,6 +118016,10 @@ var ts; }); parsedConfigs = undefined; } + if (packageJsonMap) { + ts.clearMap(packageJsonMap, ts.closeFileWatcher); + packageJsonMap = undefined; + } } function getCurrentBuilderProgram() { return builderProgram; diff --git a/package.json b/package.json index d62bcb0c5f439..a7b638357953d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "4.4.2", + "version": "4.4.3", "license": "Apache-2.0", "description": "TypeScript is a language for application scale JavaScript development", "keywords": [ diff --git a/src/compiler/corePublic.ts b/src/compiler/corePublic.ts index f82b32beb3570..2d7cc75a278f3 100644 --- a/src/compiler/corePublic.ts +++ b/src/compiler/corePublic.ts @@ -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.4.2" as string; + export const version = "4.4.3" as string; /** * Type of objects whose values are all of the same type.