Skip to content

Commit

Permalink
Bump version to 4.4.2 and LKG
Browse files Browse the repository at this point in the history
  • Loading branch information
typescript-bot committed Aug 24, 2021
1 parent 5719423 commit a10409c
Show file tree
Hide file tree
Showing 13 changed files with 126 additions and 119 deletions.
8 changes: 6 additions & 2 deletions lib/lib.dom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6400,6 +6400,12 @@ interface HTMLDocument extends Document {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}

/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};

interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}

Expand Down Expand Up @@ -17201,7 +17207,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler

/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
HTMLDocument: Document;
/** @deprecated This is a legacy alias of `navigator`. */
readonly clientInformation: Navigator;
/**
Expand Down Expand Up @@ -18266,7 +18271,6 @@ declare var Image: {
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
declare var HTMLDocument: Document;
/** @deprecated This is a legacy alias of `navigator`. */
declare var clientInformation: Navigator;
/**
Expand Down
8 changes: 2 additions & 6 deletions lib/protocol.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1954,11 +1954,7 @@ declare namespace ts.server.protocol {
interface SignatureHelpResponse extends Response {
body?: SignatureHelpItems;
}
const enum InlayHintKind {
Type = "Type",
Parameter = "Parameter",
Enum = "Enum"
}
type InlayHintKind = "Type" | "Parameter" | "Enum";
interface InlayHintsRequestArgs extends FileRequestArgs {
/**
* Start position of the span.
Expand All @@ -1976,7 +1972,7 @@ declare namespace ts.server.protocol {
interface InlayHintItem {
text: string;
position: Location;
kind?: InlayHintKind;
kind: InlayHintKind;
whitespaceBefore?: boolean;
whitespaceAfter?: boolean;
}
Expand Down
15 changes: 8 additions & 7 deletions lib/tsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
ar[i] = from[i];
}
}
return to.concat(ar || from);
return to.concat(ar || Array.prototype.slice.call(from));
};
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
Expand Down Expand Up @@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
var ts;
(function (ts) {
ts.versionMajorMinor = "4.4";
ts.version = "4.4.1-rc";
ts.version = "4.4.2";
var NativeCollections;
(function (NativeCollections) {
function tryGetNativeMap() {
Expand Down Expand Up @@ -16439,6 +16439,10 @@ var ts;
return false;
}
ts.hasContextSensitiveParameters = hasContextSensitiveParameters;
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
ts.isInfinityOrNaNString = isInfinityOrNaNString;
})(ts || (ts = {}));
var ts;
(function (ts) {
Expand Down Expand Up @@ -58343,9 +58347,6 @@ var ts;
function isNumericComputedName(name) {
return isTypeAssignableToKind(checkComputedPropertyName(name), 296);
}
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
function isNumericLiteralName(name) {
return (+name).toString() === name;
}
Expand Down Expand Up @@ -67453,7 +67454,7 @@ var ts;
}
else {
var text = ts.getTextOfPropertyName(member.name);
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
if (isNumericLiteralName(text) && !ts.isInfinityOrNaNString(text)) {
error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name);
}
}
Expand Down Expand Up @@ -67546,7 +67547,7 @@ var ts;
return evaluate(expr.expression);
case 79:
var identifier = expr;
if (isInfinityOrNaNString(identifier.escapedText)) {
if (ts.isInfinityOrNaNString(identifier.escapedText)) {
return +(identifier.escapedText);
}
return ts.nodeIsMissing(expr) ? 0 : evaluateEnumMember(expr, getSymbolOfNode(member.parent), identifier.escapedText);
Expand Down
47 changes: 23 additions & 24 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.4.1-rc";
ts.version = "4.4.2";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -20671,6 +20671,11 @@ var ts;
return false;
}
ts.hasContextSensitiveParameters = hasContextSensitiveParameters;
/* @internal */
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
ts.isInfinityOrNaNString = isInfinityOrNaNString;
})(ts || (ts = {}));
/* @internal */
var ts;
Expand Down Expand Up @@ -69868,9 +69873,6 @@ var ts;
// but this behavior is consistent with checkIndexedAccess
return isTypeAssignableToKind(checkComputedPropertyName(name), 296 /* NumberLike */);
}
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
function isNumericLiteralName(name) {
// The intent of numeric names is that
// - they are names with text in a numeric form, and that
Expand Down Expand Up @@ -80543,7 +80545,7 @@ var ts;
}
else {
var text = ts.getTextOfPropertyName(member.name);
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
if (isNumericLiteralName(text) && !ts.isInfinityOrNaNString(text)) {
error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name);
}
}
Expand Down Expand Up @@ -80643,7 +80645,7 @@ var ts;
return evaluate(expr.expression);
case 79 /* Identifier */:
var identifier = expr;
if (isInfinityOrNaNString(identifier.escapedText)) {
if (ts.isInfinityOrNaNString(identifier.escapedText)) {
return +(identifier.escapedText);
}
return ts.nodeIsMissing(expr) ? 0 : evaluateEnumMember(expr, getSymbolOfNode(member.parent), identifier.escapedText);
Expand Down Expand Up @@ -124907,7 +124909,7 @@ var ts;
if (ts.isJsxExpression(node)) {
inJSXElement = false;
}
if (ts.isIdentifier(node) && !inJSXElement && !inImportClause(node) && !isInfinityOrNaNString(node.escapedText)) {
if (ts.isIdentifier(node) && !inJSXElement && !inImportClause(node) && !ts.isInfinityOrNaNString(node.escapedText)) {
var symbol = typeChecker.getSymbolAtLocation(node);
if (symbol) {
if (symbol.flags & 2097152 /* Alias */) {
Expand Down Expand Up @@ -125039,9 +125041,6 @@ var ts;
function isRightSideOfQualifiedNameOrPropertyAccess(node) {
return (ts.isQualifiedName(node.parent) && node.parent.right === node) || (ts.isPropertyAccessExpression(node.parent) && node.parent.name === node);
}
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "NaN";
}
var tokenFromDeclarationMapping = new ts.Map([
[252 /* VariableDeclaration */, 7 /* variable */],
[162 /* Parameter */, 6 /* parameter */],
Expand Down Expand Up @@ -137104,7 +137103,7 @@ var ts;
for (var i = 0; i < args.length; ++i) {
var originalArg = args[i];
var arg = ts.skipParentheses(originalArg);
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableExpression(arg)) {
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {
continue;
}
var identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);
Expand Down Expand Up @@ -137142,17 +137141,20 @@ var ts;
var regex = leadingParameterNameCommentRegexFactory(name);
return ts.some(ranges, function (range) { return regex.test(sourceFileText.substring(range.pos, range.end)); });
}
function isHintableExpression(node) {
function isHintableLiteral(node) {
switch (node.kind) {
case 217 /* PrefixUnaryExpression */:
return ts.isLiteralExpression(node.operand);
case 217 /* PrefixUnaryExpression */: {
var operand = node.operand;
return ts.isLiteralExpression(operand) || ts.isIdentifier(operand) && ts.isInfinityOrNaNString(operand.escapedText);
}
case 110 /* TrueKeyword */:
case 95 /* FalseKeyword */:
case 212 /* ArrowFunction */:
case 211 /* FunctionExpression */:
case 203 /* ObjectLiteralExpression */:
case 202 /* ArrayLiteralExpression */:
case 104 /* NullKeyword */:
return true;
case 79 /* Identifier */: {
var name = node.escapedText;
return isUndefined(name) || ts.isInfinityOrNaNString(name);
}
}
return ts.isLiteralExpression(node);
}
Expand Down Expand Up @@ -137232,6 +137234,9 @@ var ts;
printer.writeNode(4 /* Unspecified */, typeNode, /*sourceFile*/ file, writer);
});
}
function isUndefined(name) {
return name === "undefined";
}
}
InlayHints.provideInlayHints = provideInlayHints;
})(InlayHints = ts.InlayHints || (ts.InlayHints = {}));
Expand Down Expand Up @@ -160088,12 +160093,6 @@ var ts;
/** Completion was re-triggered as the current completion list is incomplete. */
CompletionTriggerKind[CompletionTriggerKind["TriggerForIncompleteCompletions"] = 3] = "TriggerForIncompleteCompletions";
})(CompletionTriggerKind = protocol.CompletionTriggerKind || (protocol.CompletionTriggerKind = {}));
var InlayHintKind;
(function (InlayHintKind) {
InlayHintKind["Type"] = "Type";
InlayHintKind["Parameter"] = "Parameter";
InlayHintKind["Enum"] = "Enum";
})(InlayHintKind = protocol.InlayHintKind || (protocol.InlayHintKind = {}));
var IndentStyle;
(function (IndentStyle) {
IndentStyle["None"] = "None";
Expand Down
10 changes: 3 additions & 7 deletions lib/tsserverlibrary.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5886,7 +5886,7 @@ declare namespace ts {
interface InlayHint {
text: string;
position: number;
kind?: InlayHintKind;
kind: InlayHintKind;
whitespaceBefore?: boolean;
whitespaceAfter?: boolean;
}
Expand Down Expand Up @@ -8739,11 +8739,7 @@ declare namespace ts.server.protocol {
interface SignatureHelpResponse extends Response {
body?: SignatureHelpItems;
}
enum InlayHintKind {
Type = "Type",
Parameter = "Parameter",
Enum = "Enum"
}
type InlayHintKind = "Type" | "Parameter" | "Enum";
interface InlayHintsRequestArgs extends FileRequestArgs {
/**
* Start position of the span.
Expand All @@ -8761,7 +8757,7 @@ declare namespace ts.server.protocol {
interface InlayHintItem {
text: string;
position: Location;
kind?: InlayHintKind;
kind: InlayHintKind;
whitespaceBefore?: boolean;
whitespaceAfter?: boolean;
}
Expand Down
47 changes: 23 additions & 24 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.4.1-rc";
ts.version = "4.4.2";
/* @internal */
var Comparison;
(function (Comparison) {
Expand Down Expand Up @@ -20865,6 +20865,11 @@ var ts;
return false;
}
ts.hasContextSensitiveParameters = hasContextSensitiveParameters;
/* @internal */
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
ts.isInfinityOrNaNString = isInfinityOrNaNString;
})(ts || (ts = {}));
/* @internal */
var ts;
Expand Down Expand Up @@ -70062,9 +70067,6 @@ var ts;
// but this behavior is consistent with checkIndexedAccess
return isTypeAssignableToKind(checkComputedPropertyName(name), 296 /* NumberLike */);
}
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "-Infinity" || name === "NaN";
}
function isNumericLiteralName(name) {
// The intent of numeric names is that
// - they are names with text in a numeric form, and that
Expand Down Expand Up @@ -80737,7 +80739,7 @@ var ts;
}
else {
var text = ts.getTextOfPropertyName(member.name);
if (isNumericLiteralName(text) && !isInfinityOrNaNString(text)) {
if (isNumericLiteralName(text) && !ts.isInfinityOrNaNString(text)) {
error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name);
}
}
Expand Down Expand Up @@ -80837,7 +80839,7 @@ var ts;
return evaluate(expr.expression);
case 79 /* Identifier */:
var identifier = expr;
if (isInfinityOrNaNString(identifier.escapedText)) {
if (ts.isInfinityOrNaNString(identifier.escapedText)) {
return +(identifier.escapedText);
}
return ts.nodeIsMissing(expr) ? 0 : evaluateEnumMember(expr, getSymbolOfNode(member.parent), identifier.escapedText);
Expand Down Expand Up @@ -125489,7 +125491,7 @@ var ts;
if (ts.isJsxExpression(node)) {
inJSXElement = false;
}
if (ts.isIdentifier(node) && !inJSXElement && !inImportClause(node) && !isInfinityOrNaNString(node.escapedText)) {
if (ts.isIdentifier(node) && !inJSXElement && !inImportClause(node) && !ts.isInfinityOrNaNString(node.escapedText)) {
var symbol = typeChecker.getSymbolAtLocation(node);
if (symbol) {
if (symbol.flags & 2097152 /* Alias */) {
Expand Down Expand Up @@ -125621,9 +125623,6 @@ var ts;
function isRightSideOfQualifiedNameOrPropertyAccess(node) {
return (ts.isQualifiedName(node.parent) && node.parent.right === node) || (ts.isPropertyAccessExpression(node.parent) && node.parent.name === node);
}
function isInfinityOrNaNString(name) {
return name === "Infinity" || name === "NaN";
}
var tokenFromDeclarationMapping = new ts.Map([
[252 /* VariableDeclaration */, 7 /* variable */],
[162 /* Parameter */, 6 /* parameter */],
Expand Down Expand Up @@ -137686,7 +137685,7 @@ var ts;
for (var i = 0; i < args.length; ++i) {
var originalArg = args[i];
var arg = ts.skipParentheses(originalArg);
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableExpression(arg)) {
if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {
continue;
}
var identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);
Expand Down Expand Up @@ -137724,17 +137723,20 @@ var ts;
var regex = leadingParameterNameCommentRegexFactory(name);
return ts.some(ranges, function (range) { return regex.test(sourceFileText.substring(range.pos, range.end)); });
}
function isHintableExpression(node) {
function isHintableLiteral(node) {
switch (node.kind) {
case 217 /* PrefixUnaryExpression */:
return ts.isLiteralExpression(node.operand);
case 217 /* PrefixUnaryExpression */: {
var operand = node.operand;
return ts.isLiteralExpression(operand) || ts.isIdentifier(operand) && ts.isInfinityOrNaNString(operand.escapedText);
}
case 110 /* TrueKeyword */:
case 95 /* FalseKeyword */:
case 212 /* ArrowFunction */:
case 211 /* FunctionExpression */:
case 203 /* ObjectLiteralExpression */:
case 202 /* ArrayLiteralExpression */:
case 104 /* NullKeyword */:
return true;
case 79 /* Identifier */: {
var name = node.escapedText;
return isUndefined(name) || ts.isInfinityOrNaNString(name);
}
}
return ts.isLiteralExpression(node);
}
Expand Down Expand Up @@ -137814,6 +137816,9 @@ var ts;
printer.writeNode(4 /* Unspecified */, typeNode, /*sourceFile*/ file, writer);
});
}
function isUndefined(name) {
return name === "undefined";
}
}
InlayHints.provideInlayHints = provideInlayHints;
})(InlayHints = ts.InlayHints || (ts.InlayHints = {}));
Expand Down Expand Up @@ -160282,12 +160287,6 @@ var ts;
/** Completion was re-triggered as the current completion list is incomplete. */
CompletionTriggerKind[CompletionTriggerKind["TriggerForIncompleteCompletions"] = 3] = "TriggerForIncompleteCompletions";
})(CompletionTriggerKind = protocol.CompletionTriggerKind || (protocol.CompletionTriggerKind = {}));
var InlayHintKind;
(function (InlayHintKind) {
InlayHintKind["Type"] = "Type";
InlayHintKind["Parameter"] = "Parameter";
InlayHintKind["Enum"] = "Enum";
})(InlayHintKind = protocol.InlayHintKind || (protocol.InlayHintKind = {}));
var IndentStyle;
(function (IndentStyle) {
IndentStyle["None"] = "None";
Expand Down
Loading

0 comments on commit a10409c

Please sign in to comment.