https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
89d7b5e Bump version to 4.0.6 and LKG 08 December 2020, 22:21:13 UTC
fa2403f Allow only package names as plugin names 08 December 2020, 22:15:00 UTC
524480f Bump version to 4.0.5 and LKG 26 October 2020, 21:19:52 UTC
4f78376 Update LKG 23 October 2020, 23:32:26 UTC
2c0e966 Pick/41079/release 4.0 (#41204) * Cherry-pick PR #41079 into release-4.0 Component commits: 6fa32badaf `transformGenerators`: handle `CommaListExpression` Uses essentially the same code as `visitCommaExpression` (which was moved, to keep both together and close to `visit{Right,Left}AssociativeBinaryExpression`). Fixes #40614. * Accepted baselines. Co-authored-by: Eli Barzilay <eli@barzilay.org> 22 October 2020, 19:54:18 UTC
cf13477 Bump version to 4.0.4 and LKG 19 October 2020, 20:01:15 UTC
60ad73d Cherry-pick PR #40880 into release-4.0 (#41107) Component commits: ca35546663 Add test that fails c7b5005aca Handle noEmit on semantic builder's emit as well 6a05abdff8 Add test for tsbuildinfo text verification 8bae5210ee Fix noEmit handling for tsbuildinfo emit with SemanticDiagnosticBuilder 0fd4a08b75 Add test for noEmitOnError with SemanticDiagnosticsBuilder 4fa1d78a6c Fix tsbuildinfo emit with SemanticDiagnosticsBuilder on noEmitOnError a3968e7574 Update src/compiler/builder.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 174b00a9a6 Update src/compiler/builder.ts Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 15 October 2020, 01:56:04 UTC
91628ac Merge pull request #40703 from amcasey/NpmCi40 Backport package-lock infra changes to 4.0 22 September 2020, 20:48:45 UTC
a76f015 Backport package-lock infra changes to 4.0 From #40146 Fixes #40692 22 September 2020, 17:33:23 UTC
e9d8ccb fix(40640) add missing notApplicableReason in protocol (#40680) (#40688) * update protocol * fix lint error Co-authored-by: Jesse Trinity <jesse.trinity@microsoft.com> 22 September 2020, 06:53:03 UTC
fee3bfb Bump version to 4.0.3 and LKG 18 September 2020, 17:46:05 UTC
2eb5dea Update LKG 18 September 2020, 00:43:07 UTC
1dde4bb Merge pull request #40595 from typescript-bot/pick/39924/release-4.0 🤖 Pick PR #39924 (Insert auto imports after header co...) into release-4.0 16 September 2020, 21:19:23 UTC
23c77c4 Merge pull request #40444 from amcasey/Cherry40043 Set stackTraceLimit to 0 in fileSystemEntryExists 16 September 2020, 19:50:57 UTC
e3301f7 Cherry-pick PR #39924 into release-4.0 Component commits: 45d9eb5e3c place first import after header d35d719dab don't insert before non-header 16 September 2020, 18:41:03 UTC
65b84e7 Cherry-pick PR #40273 into release-4.0 (#40303) Component commits: 2c0e01aa94 Fix misplaced comma in auto imported specifier Co-authored-by: Andrew Branch <andrew@wheream.io> 15 September 2020, 00:08:51 UTC
657576a Set stackTraceLimit to 0 in fileSystemEntryExists The exception thrown by Node.js's fs.statSync function contains a stack trace that can be expensive to compute. Since this exception isn't used by fileSystemEntryExists, we can safely set Error.stackTraceLimit to 0 without a change in behavior. --- A significant performance improvement was noticed with this change while profiling tsserver on packages within a proprietary monorepo. Specifically, my team saw high self time percentages for Node.js's uvException and handleErrorFromBinding internal functions. These functions are executed within fs.statSync when it fails to find the given path. https://user-images.githubusercontent.com/906558/90183227-220cb800-dd81-11ea-8d61-f41f89481f46.png fs.statSync: https://github.com/nodejs/node/blob/v14.4.0/lib/fs.js#L1030-L1037 handleErrorFromBinding: https://github.com/nodejs/node/blob/v14.4.0/lib/internal/fs/utils.js#L254-L269 uvException: https://github.com/nodejs/node/blob/v14.4.0/lib/internal/errors.js#L390-L443 ## Measurements After adding Error.stackTraceLimit = 0, we saw: - For a large configured project with 12,565 files, tsserver reached the projectLoadingFinish event 48.78% faster. (~46.786s vs ~31.447s) - For a medium project with 7,064 files, tsserver was 25.75% faster. (~20.897s vs ~16.618s) - For a small project with 796 files, tsserver was only a negligible 3.00% faster. (~3.545s vs ~3.442) Measurements were taken on macOS 10.15.6, Node.js 14.4.0, and a recent master commit of TypeScript (610fa28d). The average of 3 runs before and after this change were taken. I would normally include .cpuprofile and isolate-*-*-*.log files, but can't post them publicly in this case. If there's any other summaries the TypeScript team would be curious about I can report them. ## fs.statSync Misses Within our monorepo, the fs.statSync misses were mostly searches for alternative file extensions of module imports. - For node_modules imports, a lot of .ts/.tsx lookups failed until the .d.ts file was found. - Within projects with a lot of JSX files, .ts files were looked for before finding the .tsx version. - In the medium scale project mentioned above, a total of 38,515 non-existent files were queried during createProgram. 09 September 2020, 00:51:54 UTC
3e7a8e7 Cherry-pick PR #40348 into release-4.0 (#40349) Component commits: 3b332792a6 Fix call hierarchy item serialization and server tests Co-authored-by: Andrew Branch <andrew@wheream.io> 08 September 2020, 17:52:13 UTC
8890dcb Cherry-pick PR #40118 into release-4.0 (#40134) Component commits: e1f4f9cfc8 Fix tuple name homogeneity check Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> 26 August 2020, 23:38:07 UTC
912cbdf Update LKG 17 August 2020, 02:14:20 UTC
076db46 Cherry-pick PR #40072 into release-4.0 (#40076) Component commits: 1582b76053 Revert "Add '(approximate)' to the beginning of quick info requests in PartialSemantic mode (#40061)" This reverts commit 2426eb4980d34c762e745cdb5062ca211e65f25e. Co-authored-by: Daniel Rosenwasser <drosen@microsoft.com> 17 August 2020, 02:01:12 UTC
c9c6cd2 Bump version to 4.0.2 and LKG 15 August 2020, 01:16:37 UTC
5f5dac0 Add '(approximate)' to the beginning of quick info requests in PartialSemantic mode (#40061) * Add '(approximate)' to the beginning of quick info requests. * Use 'approximation' instead of 'approximate'. 15 August 2020, 01:01:11 UTC
1030455 Ensure file, include and exclude specs used are strings (#40041) * Test displaying failure when specs used are not strings * Ensure specs used are strings Fixes #38164, #39856 * Feedback 14 August 2020, 23:59:19 UTC
edaa8aa Merge pull request #39989 from amcasey/pinned-release-4.0 Pin dependencies in release branch 13 August 2020, 17:24:54 UTC
f88f306 Update LKG 13 August 2020, 06:22:57 UTC
a192551 Cherry-pick PR #40026 into release-4.0 (#40028) Component commits: 8f442baa3c Revert to including only open files in partial semantic server mode Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 13 August 2020, 03:45:52 UTC
6620b25 🤖 Pick PR #40005 (feat(40004): Missing Compiler API p...) into release-4.0 (#40015) * Cherry-pick PR #40005 into release-4.0 Component commits: fa1ed85593 feat(40004): make isNamedTupleMember public * Update LKG Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com> Co-authored-by: typescript-bot <typescript@microsoft.com> 12 August 2020, 07:10:04 UTC
7558de6 Cherry-pick PR #39702 into release-4.0 (#39985) Component commits: cd5dde5d79 Improve deprecated suggestion node position 6e39ee706e fix typo a593fd03fe Simplify code 58f6f3daf2 merge helper function Co-authored-by: kingwl <kingwenlu@gmail.com> 12 August 2020, 06:33:56 UTC
47c23aa Pin dependencies in release branch With this change, you can build the branch using `npm ci && npm run build`. 11 August 2020, 01:02:58 UTC
3055018 Cherry-pick PR #39950 into release-4.0 (#39951) Component commits: 6e5d75b58b Use isUncalledFunctionReference for aliases too Fixes bogus deprecated notices on imports of functions with deprecated overloads, but with some non-deprecated overloads. Fixes microsoft/vscode#104238 e2eb319e72 Just check all declarations, don't call isUncalledFunction Co-authored-by: Nathan Shively-Sanders <nathansa@microsoft.com> 07 August 2020, 17:40:44 UTC
264d27e 🤖 Pick PR #39937 (Handle empty package.json files) into release-4.0 (#39938) * Cherry-pick PR #39937 into release-4.0 Component commits: 0b9b321b0c Handle empty package.json files * Update LKG Co-authored-by: Andrew Branch <andrew@wheream.io> Co-authored-by: typescript-bot <typescript@microsoft.com> 06 August 2020, 17:37:28 UTC
071b649 Cherry-pick PR #39932 into release-4.0 (#39933) Component commits: f53db98f88 Add missing 'importName' for private field helpers Co-authored-by: Ron Buckton <rbuckton@microsoft.com> 06 August 2020, 16:56:58 UTC
10bfb7c 🤖 Pick PR #39883 (Renames in servermode per feedback) into release-4.0 (#39888) * Cherry-pick PR #39883 into release-4.0 Component commits: d320625392 Server mode renames as per feedback e8d798db59 More renames 508226eec3 Merge branch 'master' into serverModeRename * Update LKG Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> Co-authored-by: typescript-bot <typescript@microsoft.com> 05 August 2020, 21:37:43 UTC
024a09b Update LKG 05 August 2020, 05:30:59 UTC
eeea32b Handle the fact that noResolveResolution resolution is reused Fixes #39795 05 August 2020, 05:18:08 UTC
1763b8e Update LKG 04 August 2020, 07:29:17 UTC
d063105 Rename and use the default ref instead of having a `workflow_dispatch` option 04 August 2020, 07:16:09 UTC
4f02a04 Add an 'Update LKG' action (#39897) 04 August 2020, 07:15:51 UTC
7cf6184 Cherry-pick PR #39889 into release-4.0 (#39890) Component commits: c3ac7fa2e7 Handle the fact that noResolveResolution resolution is reused Fixes #39795 Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 04 August 2020, 05:19:53 UTC
3a6dde0 Make numeric Array constructors take ArrayLikeBuffer union PR #38449 changed the second overload of the constructor for Int8, Uint8, Int32, Uint32, Int16, Uint16, Float, Float64 -Array so that it no longer includes `ArrayBufferLike`. It's just `ArrayLike<number>`. This is fine except in the case that the caller provides exactly `ArrayLike<number> | ArrayBufferLike`. This PR adds ArrayBufferLike back so that the union is once again accepted. This avoids a breaking change, in particular in one Microsoft-internal codebase. 03 August 2020, 23:57:29 UTC
5463606 Update LKG. 03 August 2020, 05:18:50 UTC
fe74f34 Bump version to 4.0.1-rc. 03 August 2020, 05:14:17 UTC
e141dd1 Merge branch 'master' into release-4.0 03 August 2020, 05:12:42 UTC
7e93035 LEGO: Merge pull request 39868 LEGO: Merge pull request 39868 03 August 2020, 04:11:41 UTC
b092fb3 LEGO: check in for master to temporary branch. 03 August 2020, 04:10:44 UTC
aee78ac Add separate flag serverMode for server mode (#39735) * Add separate flag serverMode for server mode to allow back compatibility * Addressed code review feedback. Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 03 August 2020, 01:18:26 UTC
86a87c4 Limit auto import provider project size (#39855) * Limit auto import provider project size * Add test * Make option configurable * Fix test * Only bail when setting is auto * Fix other test * Update API baseline 03 August 2020, 00:47:49 UTC
9498978 In JS declaration emit, move imports painted in nested contexts to the root private context (#39818) * In JS declaration emit, move imports painted in nested contexts to the root private context * Add test for nathan 01 August 2020, 01:25:37 UTC
1b97d03 Update user baselines (#39502) Co-authored-by: typescript-bot <typescript@microsoft.com> 31 July 2020, 22:06:29 UTC
d3877d2 Redo in narrowing for intersections (#39637) * Redo in-narrowing for intersections Still need to carve out an exception for globalThis * exempt globalThis from `in` narrowing 30 July 2020, 21:58:22 UTC
32934a9 Merge pull request #39824 from microsoft/fix35484 Allow assignments to a narrowable reference to be considered narrowable 30 July 2020, 19:27:34 UTC
7119e2b The iteration type of overloaded iterator signatures derives from the intersection of their return types (#39722) 30 July 2020, 18:37:04 UTC
315b5f4 PR Feedback 30 July 2020, 18:13:58 UTC
faf128d Fix formatting scanner on JSX text that looks like trivia (#39718) * Fix formatting scanner on JSX text that looks like trivia * Combine if statements Co-authored-by: Andrew Branch <andrew@wheream.io> 30 July 2020, 17:56:14 UTC
bffe354 Issue35876: Give better error message when Classic Module Resolution with incorrect path (#38105) * added Error 5084 to diagnosticMessages.json * added test case errorForBareSpecifierWithImplicitModuleResolution1 to tests/cases/compiler * modified checker.ts to report error 5084 when classic resolution and incorrect path are used * added baseline changes * passes all test cases including src/testRunner/unittests/ tests * Update with feedback * Make it check whether it is the right module resolution kind * Use the right diagnostic message in tsserver tests Co-authored-by: Meera Shivakumar <mshivaku@umich.edu> Co-authored-by: Orta <git@orta.io> 30 July 2020, 17:45:29 UTC
a320e1b Make `getLocalSymbolForExportDefault` look harder for an export Look for a symbol that has a `.localSymbol` property instead of blindly using the first one. Fixes #37829. 30 July 2020, 17:09:21 UTC
b601487 Updates Uint8ArrayConstructor to match MDN documentation. (#38449) * Updates Uint8ArrayConstructor to match MDN documentation. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/Uint8Array ``` new Uint8Array(); // new in ES2017 new Uint8Array(length); new Uint8Array(typedArray); new Uint8Array(object); new Uint8Array(buffer [, byteOffset [, length]]); ``` While the previous constructors aren't significantly different from the new, it would prevent someone from doing `new Uint8Array(myBuffer, undefined, undefined)` since there was no overload that accepted undefined as a second parameter and buffer as first. Fixes #38446 * Fixes constructor defenition for all other typed arrays. * Renames property to `array` since it is no longer an `arrayOrBuffer`. 30 July 2020, 12:51:50 UTC
21963ce Restore reference change 30 July 2020, 01:41:05 UTC
4c90ba9 Temporary revert to compare user test baselines 30 July 2020, 01:13:27 UTC
bae111f fix(39245): change related diagnostic for missing rest parameter arguments (#39356) Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 30 July 2020, 00:25:13 UTC
b9db641 Allow assignments to a narrowable reference to be considered narrowable 29 July 2020, 23:37:25 UTC
9b2d487 Fix this-parameter emit for JSDocFunction types (#39814) * Fix this parameter emit for JSDocFunction types Previously, parameters with names that were not `new` were treated like rest parameters. This is incorrect: parameters with the name `this` should emit a `this` parameter. Fixes #38550 * :heart: quote style 29 July 2020, 21:11:59 UTC
f2d1531 Fix location for duplicate function implementation errors Use only the relevant declarations (by collecting them in the for loop), and use `declaration` if `getNameOfDeclaration` didn't work (useful for `export default` with anonymous functions). Fixes #39804. Also, use `nodeIsPresent` once, and a random `?.`. 29 July 2020, 20:07:00 UTC
c66b690 Merge pull request #39792 from amcasey/OverloadErrors4 Reduce unnecessary error computation 29 July 2020, 17:43:59 UTC
2f3b835 Merge pull request #39794 from amcasey/Mocha4 Move off deprecated mocha types 28 July 2020, 21:37:18 UTC
189a6d7 Move off deprecated mocha types 28 July 2020, 21:04:29 UTC
03b6580 Make @enum,@this tag construction stricter (#39791) The type expression is required, so the type should reflect that. 28 July 2020, 20:49:42 UTC
2480458 Reduce unnecessary error computation ...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped. 28 July 2020, 20:03:31 UTC
8f04f91 Add diagnostic info to getNameForExportedSymbol crash (#39790) * Add diagnostic info to getNameForExportedSymbol crash * Add JS indicator 28 July 2020, 19:53:56 UTC
79e2ed2 Merge pull request #39776 from amcasey/OverloadErrors Reduce unnecessary error computation 28 July 2020, 17:35:22 UTC
1f1521c Undo accidental change from #39772 (#39779) * Undo accidental change * Delete test 27 July 2020, 23:55:59 UTC
68ba670 Add contextual type for generator return type (#39772) * WIP * Add contextual type for generator return type 27 July 2020, 22:14:47 UTC
5b2b70b Merge pull request #39774 from amcasey/Mocha Move off deprecated mocha types 27 July 2020, 21:54:14 UTC
6318cc6 Move off deprecated mocha types 27 July 2020, 21:29:19 UTC
195fad2 Reduce unnecessary error computation ...during overload resolution. Based on a trace that was spending 30% of a (very slow) overload resolution elaborating errors that were then dropped. 27 July 2020, 21:11:24 UTC
48e58f4 Handle unresolved baseType when trying to get completions for static member (#39731) * Handle unresolved baseType when trying to get completions for static member Fixes #38067 * Update src/services/completions.ts Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> * correct the condition Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 24 July 2020, 23:37:28 UTC
c5d21e7 Lower priority for speculative variadic tuple inferences (#39723) * Inference to [...T, X?] has lower priority than inference to [...T, X] * Update tests * Accept new API baselines 24 July 2020, 22:00:53 UTC
823b69a Fixes slow nav to issue by keeping project with result. (#39721) Also cache the result of config file name for open files Fixes #38491 24 July 2020, 20:33:25 UTC
73b268e Use new octokit API method in review request script (#39719) 23 July 2020, 22:43:48 UTC
2fb0436 LEGO: Merge pull request 39706 LEGO: Merge pull request 39706 22 July 2020, 22:11:58 UTC
7c5ed71 LEGO: check in for master to temporary branch. 22 July 2020, 22:10:54 UTC
ec33814 Make AutoImportProviderProject work with symlinked monorepos (#39679) * Hack everything together * Add test * Remove realpath from program * Ensure symlinked directories are directories * Revert unnecessary change * Update baselines * Use host program realpath on AutoImportProviderProject files before program creation * Which fixes hasRoots() too * Apply suggestions from code review Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> * Lint Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 22 July 2020, 20:53:30 UTC
312a6f0 Add a fastpath for comparing common mapped types like Pick which avoids manufacturing intermediate type identities (#39696) 22 July 2020, 18:59:16 UTC
b834096 Fix emit/formatting issues in refactors (#39506) * Fix #37948 * Fix formatter skipping tab/space fixup on comments, handle trailing commas in list closing line count. Fixes #37944 * Add newline between imports and main body of new file in moveToNewFile Fixes #37941 * Update baseline (probably broken before?) 22 July 2020, 17:31:42 UTC
e76d172 Fix 38219: signature helper works for optional function condition. (#39672) * fix optional fuction condition. * Adds a test Co-authored-by: Orta <git@orta.io> 22 July 2020, 16:30:21 UTC
8a05707 Fix 31995: make cached key more precise to avoid returning wrong cached value. (#39670) * fix 31995 * revert useless change only for debug. * add test 22 July 2020, 16:26:17 UTC
294a040 not escape unicode char for import path string. (#39463) * not escape unicode char for import path string. * fix test. 22 July 2020, 15:28:29 UTC
34adaaf Support loading of child project if found project is not pure solution has some of its own files and project references (#39613) * Use disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions Fixes #39144 * Handle indirect references * Support loading of child project if found project is not pure solution has some of its own files and project references Fixes #38605 * Fix grammar 21 July 2020, 22:02:10 UTC
e92afac Add disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions (#39593) * Use disableReferencedProjectLoad to stop loading child projects to allow users to disable loading large solutions Fixes #39144 * Handle indirect references * PR feedback 21 July 2020, 21:24:15 UTC
5484687 switch typeof any could be checked for unreachable (#39389) * switch typeof any could be checked for unreachable * fix stupid error * support unknown * remvoe use less code. * fix spelling. 21 July 2020, 17:51:27 UTC
d897646 fix 39453 (#39579) * fix 39453 * add restriction. * add tests * comment. * fix as suggestion. 21 July 2020, 16:40:25 UTC
56865f7 LEGO: Merge pull request 39682 LEGO: Merge pull request 39682 21 July 2020, 04:11:42 UTC
ea75b00 LEGO: check in for master to temporary branch. 21 July 2020, 04:10:47 UTC
94d6b45 Consistent errors on circular base types (#39675) * Properly track and report errors on circular base types * Accept new baselines * Add regression test 21 July 2020, 03:35:47 UTC
5ae4b5d Properly preserve numeric string named properties in declaration files (#39658) * Properly preserve names of properties with numeric literal strings * Accept new baselines 20 July 2020, 17:36:46 UTC
3b22339 Triple slash references must resolve against the resolved file name (.d.ts and not original source file) since they are rewritten in the .d.ts emit (#39645) * Add tests corresponding to repro from #37928 * Triple slash references must resolve against the resolved file name (.d.ts and not original source file) since they are rewritten in the .d.ts emit * Remove the scenario not fixed in this PR 17 July 2020, 23:25:32 UTC
92f41c8 tests(39373): add addition tests (#39631) 17 July 2020, 20:30:57 UTC
f19c610 Adds latest version of TypeScript to the repro code (#39641) 17 July 2020, 19:15:49 UTC
191f4f6 Explicitly add dependency on node to compiler tsconfig, remove es6+ string method usage (#39636) 17 July 2020, 14:02:05 UTC
back to top