Skip to content

Commit b512d91

Browse files
Bump version to 4.1.3 and LKG
1 parent 3c73625 commit b512d91

11 files changed

+77
-49
lines changed

lib/lib.es5.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ interface ArrayConstructor {
13961396
(arrayLength?: number): any[];
13971397
<T>(arrayLength: number): T[];
13981398
<T>(...items: T[]): T[];
1399-
isArray<T>(arg: T | {}): arg is T extends readonly any[] ? (unknown extends T ? never : readonly any[]) : any[];
1399+
isArray(arg: any): arg is any[];
14001400
readonly prototype: any[];
14011401
}
14021402

lib/protocol.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -2569,7 +2569,9 @@ declare namespace ts.server.protocol {
25692569
None = "None",
25702570
Preserve = "Preserve",
25712571
ReactNative = "ReactNative",
2572-
React = "React"
2572+
React = "React",
2573+
ReactJSX = "ReactJSX",
2574+
ReactJSXDev = "ReactJSXDev"
25732575
}
25742576
const enum ModuleKind {
25752577
None = "None",
@@ -2579,6 +2581,7 @@ declare namespace ts.server.protocol {
25792581
System = "System",
25802582
ES6 = "ES6",
25812583
ES2015 = "ES2015",
2584+
ES2020 = "ES2020",
25822585
ESNext = "ESNext"
25832586
}
25842587
const enum ModuleResolutionKind {
@@ -2599,6 +2602,7 @@ declare namespace ts.server.protocol {
25992602
ES2018 = "ES2018",
26002603
ES2019 = "ES2019",
26012604
ES2020 = "ES2020",
2605+
JSON = "JSON",
26022606
ESNext = "ESNext"
26032607
}
26042608
}

lib/tsc.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
6767
var ts;
6868
(function (ts) {
6969
ts.versionMajorMinor = "4.1";
70-
ts.version = "4.1.2";
70+
ts.version = "4.1.3";
7171
var NativeCollections;
7272
(function (NativeCollections) {
7373
function tryGetNativeMap() {
@@ -37353,7 +37353,7 @@ var ts;
3735337353
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
3735437354
var name = node.propertyName || node.name;
3735537355
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
37356-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
37356+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
3735737357
}
3735837358
markSymbolOfAliasDeclarationIfTypeOnly(node, undefined, resolved, false);
3735937359
return resolved;
@@ -52612,6 +52612,7 @@ var ts;
5261252612
return errorType;
5261352613
}
5261452614
flowDepth++;
52615+
var sharedFlow;
5261552616
while (true) {
5261652617
var flags = flow.flags;
5261752618
if (flags & 4096) {
@@ -52621,6 +52622,7 @@ var ts;
5262152622
return sharedFlowTypes[i];
5262252623
}
5262352624
}
52625+
sharedFlow = flow;
5262452626
}
5262552627
var type = void 0;
5262652628
if (flags & 16) {
@@ -52680,8 +52682,8 @@ var ts;
5268052682
else {
5268152683
type = convertAutoToAny(declaredType);
5268252684
}
52683-
if (flags & 4096) {
52684-
sharedFlowNodes[sharedFlowCount] = flow;
52685+
if (sharedFlow) {
52686+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
5268552687
sharedFlowTypes[sharedFlowCount] = type;
5268652688
sharedFlowCount++;
5268752689
}
@@ -57019,9 +57021,9 @@ var ts;
5701957021
var oldCandidatesForArgumentError = candidatesForArgumentError;
5702057022
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
5702157023
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
57022-
var declCount = ts.length((_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
57023-
var isOverload = declCount > 1;
57024-
var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
57024+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
57025+
var isOverload = failedSignatureDeclarations.length > 1;
57026+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
5702557027
if (implDecl) {
5702657028
var candidate = getSignatureFromDeclaration(implDecl);
5702757029
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;

lib/tsserver.js

+14-8
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var ts;
9494
// If changing the text in this section, be sure to test `configurePrerelease` too.
9595
ts.versionMajorMinor = "4.1";
9696
/** The version of the TypeScript compiler release */
97-
ts.version = "4.1.2";
97+
ts.version = "4.1.3";
9898
/* @internal */
9999
var Comparison;
100100
(function (Comparison) {
@@ -45694,7 +45694,7 @@ var ts;
4569445694
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
4569545695
var name = node.propertyName || node.name;
4569645696
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
45697-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
45697+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
4569845698
}
4569945699
markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
4570045700
return resolved;
@@ -63123,6 +63123,7 @@ var ts;
6312363123
return errorType;
6312463124
}
6312563125
flowDepth++;
63126+
var sharedFlow;
6312663127
while (true) {
6312763128
var flags = flow.flags;
6312863129
if (flags & 4096 /* Shared */) {
@@ -63135,6 +63136,7 @@ var ts;
6313563136
return sharedFlowTypes[i];
6313663137
}
6313763138
}
63139+
sharedFlow = flow;
6313863140
}
6313963141
var type = void 0;
6314063142
if (flags & 16 /* Assignment */) {
@@ -63198,9 +63200,9 @@ var ts;
6319863200
// simply return the non-auto declared type to reduce follow-on errors.
6319963201
type = convertAutoToAny(declaredType);
6320063202
}
63201-
if (flags & 4096 /* Shared */) {
63203+
if (sharedFlow) {
6320263204
// Record visited node and the associated type in the cache.
63203-
sharedFlowNodes[sharedFlowCount] = flow;
63205+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
6320463206
sharedFlowTypes[sharedFlowCount] = type;
6320563207
sharedFlowCount++;
6320663208
}
@@ -68367,9 +68369,9 @@ var ts;
6836768369
var oldCandidatesForArgumentError = candidatesForArgumentError;
6836868370
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
6836968371
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
68370-
var declCount = ts.length((_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
68371-
var isOverload = declCount > 1;
68372-
var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
68372+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
68373+
var isOverload = failedSignatureDeclarations.length > 1;
68374+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
6837368375
if (implDecl) {
6837468376
var candidate = getSignatureFromDeclaration(implDecl);
6837568377
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
@@ -149981,6 +149983,8 @@ var ts;
149981149983
JsxEmit["Preserve"] = "Preserve";
149982149984
JsxEmit["ReactNative"] = "ReactNative";
149983149985
JsxEmit["React"] = "React";
149986+
JsxEmit["ReactJSX"] = "ReactJSX";
149987+
JsxEmit["ReactJSXDev"] = "ReactJSXDev";
149984149988
})(JsxEmit = protocol.JsxEmit || (protocol.JsxEmit = {}));
149985149989
var ModuleKind;
149986149990
(function (ModuleKind) {
@@ -149991,6 +149995,7 @@ var ts;
149991149995
ModuleKind["System"] = "System";
149992149996
ModuleKind["ES6"] = "ES6";
149993149997
ModuleKind["ES2015"] = "ES2015";
149998+
ModuleKind["ES2020"] = "ES2020";
149994149999
ModuleKind["ESNext"] = "ESNext";
149995150000
})(ModuleKind = protocol.ModuleKind || (protocol.ModuleKind = {}));
149996150001
var ModuleResolutionKind;
@@ -150014,6 +150019,7 @@ var ts;
150014150019
ScriptTarget["ES2018"] = "ES2018";
150015150020
ScriptTarget["ES2019"] = "ES2019";
150016150021
ScriptTarget["ES2020"] = "ES2020";
150022+
ScriptTarget["JSON"] = "JSON";
150017150023
ScriptTarget["ESNext"] = "ESNext";
150018150024
})(ScriptTarget = protocol.ScriptTarget || (protocol.ScriptTarget = {}));
150019150025
})(protocol = server.protocol || (server.protocol = {}));
@@ -157078,7 +157084,7 @@ var ts;
157078157084
};
157079157085
Session.prototype.getEncodedSemanticClassifications = function (args) {
157080157086
var _a = this.getFileAndProject(args), file = _a.file, project = _a.project;
157081-
return project.getLanguageService().getEncodedSemanticClassifications(file, args);
157087+
return project.getLanguageService().getEncodedSemanticClassifications(file, args, args.format);
157082157088
};
157083157089
Session.prototype.getProject = function (projectFileName) {
157084157090
return projectFileName === undefined ? undefined : this.projectService.findProject(projectFileName);

lib/tsserverlibrary.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -9084,7 +9084,9 @@ declare namespace ts.server.protocol {
90849084
None = "None",
90859085
Preserve = "Preserve",
90869086
ReactNative = "ReactNative",
9087-
React = "React"
9087+
React = "React",
9088+
ReactJSX = "ReactJSX",
9089+
ReactJSXDev = "ReactJSXDev"
90889090
}
90899091
enum ModuleKind {
90909092
None = "None",
@@ -9094,6 +9096,7 @@ declare namespace ts.server.protocol {
90949096
System = "System",
90959097
ES6 = "ES6",
90969098
ES2015 = "ES2015",
9099+
ES2020 = "ES2020",
90979100
ESNext = "ESNext"
90989101
}
90999102
enum ModuleResolutionKind {
@@ -9114,6 +9117,7 @@ declare namespace ts.server.protocol {
91149117
ES2018 = "ES2018",
91159118
ES2019 = "ES2019",
91169119
ES2020 = "ES2020",
9120+
JSON = "JSON",
91179121
ESNext = "ESNext"
91189122
}
91199123
}

lib/tsserverlibrary.js

+14-8
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ var ts;
288288
// If changing the text in this section, be sure to test `configurePrerelease` too.
289289
ts.versionMajorMinor = "4.1";
290290
/** The version of the TypeScript compiler release */
291-
ts.version = "4.1.2";
291+
ts.version = "4.1.3";
292292
/* @internal */
293293
var Comparison;
294294
(function (Comparison) {
@@ -45888,7 +45888,7 @@ var ts;
4588845888
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
4588945889
var name = node.propertyName || node.name;
4589045890
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
45891-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
45891+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
4589245892
}
4589345893
markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
4589445894
return resolved;
@@ -63317,6 +63317,7 @@ var ts;
6331763317
return errorType;
6331863318
}
6331963319
flowDepth++;
63320+
var sharedFlow;
6332063321
while (true) {
6332163322
var flags = flow.flags;
6332263323
if (flags & 4096 /* Shared */) {
@@ -63329,6 +63330,7 @@ var ts;
6332963330
return sharedFlowTypes[i];
6333063331
}
6333163332
}
63333+
sharedFlow = flow;
6333263334
}
6333363335
var type = void 0;
6333463336
if (flags & 16 /* Assignment */) {
@@ -63392,9 +63394,9 @@ var ts;
6339263394
// simply return the non-auto declared type to reduce follow-on errors.
6339363395
type = convertAutoToAny(declaredType);
6339463396
}
63395-
if (flags & 4096 /* Shared */) {
63397+
if (sharedFlow) {
6339663398
// Record visited node and the associated type in the cache.
63397-
sharedFlowNodes[sharedFlowCount] = flow;
63399+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
6339863400
sharedFlowTypes[sharedFlowCount] = type;
6339963401
sharedFlowCount++;
6340063402
}
@@ -68561,9 +68563,9 @@ var ts;
6856168563
var oldCandidatesForArgumentError = candidatesForArgumentError;
6856268564
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
6856368565
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
68564-
var declCount = ts.length((_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
68565-
var isOverload = declCount > 1;
68566-
var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
68566+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
68567+
var isOverload = failedSignatureDeclarations.length > 1;
68568+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
6856768569
if (implDecl) {
6856868570
var candidate = getSignatureFromDeclaration(implDecl);
6856968571
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;
@@ -150175,6 +150177,8 @@ var ts;
150175150177
JsxEmit["Preserve"] = "Preserve";
150176150178
JsxEmit["ReactNative"] = "ReactNative";
150177150179
JsxEmit["React"] = "React";
150180+
JsxEmit["ReactJSX"] = "ReactJSX";
150181+
JsxEmit["ReactJSXDev"] = "ReactJSXDev";
150178150182
})(JsxEmit = protocol.JsxEmit || (protocol.JsxEmit = {}));
150179150183
var ModuleKind;
150180150184
(function (ModuleKind) {
@@ -150185,6 +150189,7 @@ var ts;
150185150189
ModuleKind["System"] = "System";
150186150190
ModuleKind["ES6"] = "ES6";
150187150191
ModuleKind["ES2015"] = "ES2015";
150192+
ModuleKind["ES2020"] = "ES2020";
150188150193
ModuleKind["ESNext"] = "ESNext";
150189150194
})(ModuleKind = protocol.ModuleKind || (protocol.ModuleKind = {}));
150190150195
var ModuleResolutionKind;
@@ -150208,6 +150213,7 @@ var ts;
150208150213
ScriptTarget["ES2018"] = "ES2018";
150209150214
ScriptTarget["ES2019"] = "ES2019";
150210150215
ScriptTarget["ES2020"] = "ES2020";
150216+
ScriptTarget["JSON"] = "JSON";
150211150217
ScriptTarget["ESNext"] = "ESNext";
150212150218
})(ScriptTarget = protocol.ScriptTarget || (protocol.ScriptTarget = {}));
150213150219
})(protocol = server.protocol || (server.protocol = {}));
@@ -157272,7 +157278,7 @@ var ts;
157272157278
};
157273157279
Session.prototype.getEncodedSemanticClassifications = function (args) {
157274157280
var _a = this.getFileAndProject(args), file = _a.file, project = _a.project;
157275-
return project.getLanguageService().getEncodedSemanticClassifications(file, args);
157281+
return project.getLanguageService().getEncodedSemanticClassifications(file, args, args.format);
157276157282
};
157277157283
Session.prototype.getProject = function (projectFileName) {
157278157284
return projectFileName === undefined ? undefined : this.projectService.findProject(projectFileName);

lib/typescript.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ var ts;
288288
// If changing the text in this section, be sure to test `configurePrerelease` too.
289289
ts.versionMajorMinor = "4.1";
290290
/** The version of the TypeScript compiler release */
291-
ts.version = "4.1.2";
291+
ts.version = "4.1.3";
292292
/* @internal */
293293
var Comparison;
294294
(function (Comparison) {
@@ -45888,7 +45888,7 @@ var ts;
4588845888
var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);
4588945889
var name = node.propertyName || node.name;
4589045890
if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {
45891-
return getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText);
45891+
return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);
4589245892
}
4589345893
markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);
4589445894
return resolved;
@@ -63317,6 +63317,7 @@ var ts;
6331763317
return errorType;
6331863318
}
6331963319
flowDepth++;
63320+
var sharedFlow;
6332063321
while (true) {
6332163322
var flags = flow.flags;
6332263323
if (flags & 4096 /* Shared */) {
@@ -63329,6 +63330,7 @@ var ts;
6332963330
return sharedFlowTypes[i];
6333063331
}
6333163332
}
63333+
sharedFlow = flow;
6333263334
}
6333363335
var type = void 0;
6333463336
if (flags & 16 /* Assignment */) {
@@ -63392,9 +63394,9 @@ var ts;
6339263394
// simply return the non-auto declared type to reduce follow-on errors.
6339363395
type = convertAutoToAny(declaredType);
6339463396
}
63395-
if (flags & 4096 /* Shared */) {
63397+
if (sharedFlow) {
6339663398
// Record visited node and the associated type in the cache.
63397-
sharedFlowNodes[sharedFlowCount] = flow;
63399+
sharedFlowNodes[sharedFlowCount] = sharedFlow;
6339863400
sharedFlowTypes[sharedFlowCount] = type;
6339963401
sharedFlowCount++;
6340063402
}
@@ -68561,9 +68563,9 @@ var ts;
6856168563
var oldCandidatesForArgumentError = candidatesForArgumentError;
6856268564
var oldCandidateForArgumentArityError = candidateForArgumentArityError;
6856368565
var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;
68564-
var declCount = ts.length((_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol.declarations);
68565-
var isOverload = declCount > 1;
68566-
var implDecl = isOverload ? ts.find(((_b = failed.declaration) === null || _b === void 0 ? void 0 : _b.symbol.declarations) || ts.emptyArray, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
68566+
var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;
68567+
var isOverload = failedSignatureDeclarations.length > 1;
68568+
var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;
6856768569
if (implDecl) {
6856868570
var candidate = getSignatureFromDeclaration(implDecl);
6856968571
var isSingleNonGenericCandidate_1 = !candidate.typeParameters;

0 commit comments

Comments
 (0)