https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
a7d8011 Bump version to 3.9.7 and LKG 15 July 2020, 17:56:28 UTC
761a9ed Cherry-pick PR #39599 into release-3.9 (#39601) Component commits: c8d5b9891d Load ETW module from a specified path Co-authored-by: Michael Crane <micran@microsoft.com> 14 July 2020, 18:44:53 UTC
75d6648 Cherry-pick PR #39573 into release-3.9 (#39602) Component commits: d1f8d0a153 fix(types/mocha): change deprecated Mocha types Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com> 14 July 2020, 18:17:23 UTC
c6f9343 Bump version to 3.9.6 and LKG 30 June 2020, 21:42:36 UTC
1ee1212 isDynamicName skips parentheses for element access Neither `x[0]` nor `x[(0)]` should be dynamic names. Previously, the latter was because `isDynamicName` didn't skip parentheses. Since the binder treats dynamic names in property assignments as assignment declarations, this incorrectly tried to create a binding for expressions like `x[(0)] = 1`. This caused an assert because `x[(0)]` would not take the dynamic name code path during binding (`hasDynamicName` returned false), but the normal code path for static names. 23 June 2020, 21:21:23 UTC
986e9dd Fix crash when serializing the return type of a generic call to Array.prototype.flat (#38904) (#39079) * Add declaration emit error and checking for circularly referential unions produced by recursive conditionals * Allow indexed accesses to produce alias symbols on types * Add test that still triggers the declaration emit error * Fix spelling 15 June 2020, 19:41:17 UTC
9ec5fc5 Cherry-pick PR #38653 into release-3.9 (#38687) Component commits: 97cb8188f0 No contextual types from circular mapped type properties 1dcf4ab32f Add regression test Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> Co-authored-by: Wesley Wigham <wwigham@gmail.com> 15 June 2020, 19:40:55 UTC
2fff325 Fix recently added test so it is cross-plat 15 June 2020, 19:17:16 UTC
c88ed72 Patch to use this.timeout() > 0 rather than this.enableTimeout() to work with mocha 8+ 15 June 2020, 19:12:55 UTC
338e42f Update request-pr-review script to latest version of octokit (#39031) 15 June 2020, 19:12:09 UTC
c388222 Bump version to 3.9.5 and LKG 29 May 2020, 01:35:22 UTC
e0d620d Update LKG. 28 May 2020, 19:30:08 UTC
28ea935 Merge pull request #38811 from typescript-bot/pick/38808/release-3.9 🤖 Pick PR #38808 (Skip default when initially iterati...) into release-3.9 28 May 2020, 18:34:20 UTC
4087757 Bump version to 3.9.4 and LKG 28 May 2020, 18:14:29 UTC
c34b39b Cherry-pick PR #38808 into release-3.9 Component commits: 2906ce4c98 Skip default when iterating exports in __importStar, same as __exportStar 1da7d7a28a Accept baselines 27 May 2020, 18:39:12 UTC
d49ad7a Merge pull request #38721 from microsoft/cherry-pick-38719 Cherry pick #38719 22 May 2020, 03:09:33 UTC
4ac4d9a Cherry-pick 79f1ec32bdad218a46ba58f9e01535aaf5433578 From #38719 21 May 2020, 23:53:16 UTC
c019c83 Cherry-pick PR #38683 into release-3.9 (#38718) Component commits: 1ecdbd9cf1 fix(38682): use stable typescript version Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com> 21 May 2020, 22:58:16 UTC
a076e9e Bump version to 3.9.3 and LKG 19 May 2020, 22:33:09 UTC
59d7d00 Merge pull request #38669 from typescript-bot/pick/38565/release-3.9 🤖 Pick PR #38565 (Perform intersection reduction befo...) into release-3.9 19 May 2020, 22:18:21 UTC
f713571 Merge pull request #38668 from typescript-bot/pick/38599/release-3.9 🤖 Pick PR #38599 (Fix regression organize imports dup...) into release-3.9 19 May 2020, 22:17:09 UTC
5b29b14 Cherry-pick PR #38579 into release-3.9 (#38666) Component commits: 0a696c902d Ensure formatter can always get a newline character ab09d67b49 Make FormatContext.host optional since it’s not necessary if format options are all applied 90923e2050 Make FormattingHost required again Co-authored-by: Andrew Branch <andrew@wheream.io> 19 May 2020, 21:40:23 UTC
7225809 Merge pull request #38506 from typescript-bot/pick/38500/release-3.9 🤖 Pick PR #38500 (regression(38485): Unable to specif...) into release-3.9 19 May 2020, 21:27:31 UTC
a654a23 Cherry-pick PR #38565 into release-3.9 Component commits: e03cb800d1 Perform intersection reduction before and after getApparentType 7af78d33a0 Add regression tests 19 May 2020, 21:22:29 UTC
fefdd74 Cherry-pick PR #38599 into release-3.9 Component commits: 428f5a19d6 delete import comments on organize imports 8003791d9f add unit test 26eaf706ab accept new baseline 81d1732fd8 respond to review comment 19 May 2020, 20:48:11 UTC
8037e26 🤖 Pick PR #38577 (Include unknown in spread prop over...) into release-3.9 (#38581) * Cherry-pick PR #38577 into release-3.9 Component commits: e5bccafc29 Include unknown in spread prop override check * Empty commit Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> Co-authored-by: Wesley Wigham <wwigham@gmail.com> 14 May 2020, 22:29:33 UTC
e354d47 Cherry-pick PR #38525 into release-3.9 (#38582) Component commits: 19624faea7 Fix build type error Co-authored-by: kingwl <kingwenlu@gmail.com> 14 May 2020, 21:58:52 UTC
3d5f66b Merge pull request #38509 from microsoft/semicolonExportStar3.9 [release-3.9] Add mising semicolon to '__exportStar'. 12 May 2020, 22:23:49 UTC
c9ba767 Update baselines. 12 May 2020, 19:39:40 UTC
01ce953 Add mising semicolon to '__exportStar'. 12 May 2020, 18:12:09 UTC
f185491 Cherry-pick PR #38500 into release-3.9 Component commits: ee3f2ce362 regression(38485): allow using rawText property in processing a tagged template 12 May 2020, 17:42:47 UTC
bd2833f Cherry-pick PR #38429 into release-3.9 (#38431) Component commits: 6e3c1d1c1b Fix detecting default project when file is part for more than one project but not part of default configured project (eg because its output of that projet) Fixes #38366 Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 12 May 2020, 17:17:16 UTC
551f0dd Bump version to 3.9.2 and LKG 08 May 2020, 23:44:27 UTC
8bd8a88 Merge pull request #38434 from typescript-bot/pick/38270/release-3.9 🤖 Pick PR #38270 (Improve assert message in binder) into release-3.9 08 May 2020, 23:32:31 UTC
7eb4cde Cherry-pick PR #38270 into release-3.9 Component commits: 9795fa6631 Improve assert message in binder Looking at the code, I don't think the assert can ever fire, but it clearly does, or did in the past. This will make it easier for people to create a repro. d815effa9b fix lint add6bbcfce Use BindableStaticNameExpression not BindableStaticAccessExpression This type does allow identifiers, but those are ruled out earlier, so I added an assert for that case. 08 May 2020, 23:11:51 UTC
a073560 Merge pull request #38372 from typescript-bot/pick/38368/release-3.9 🤖 Pick PR #38368 (Fix js missing type arguments on ex...) into release-3.9 08 May 2020, 17:54:35 UTC
623f78e Cherry-pick PR #38368 into release-3.9 Component commits: c827007a38 Fix js missing type arguments on existing nodes and jsdoc object literal declaration emit 128ef9370b Merge branch 'master' into js-declaration-fixes-mk2 a90f97c6f6 Add special lookups test case, rename helper 04e6b6fe92 Accept slightly modified baselines 08 May 2020, 07:06:07 UTC
659677f Merge pull request #38364 from typescript-bot/pick/38351/release-3.9 🤖 Pick PR #38351 (Fix regression in name resolution i...) into release-3.9 08 May 2020, 06:56:51 UTC
9edf9ec Cherry-pick PR #38395 into release-3.9 (#38402) Component commits: 6fe4be21e4 Exclude arrays and tuples from full intersection property check 9019e399e5 Add regression test Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> 08 May 2020, 06:56:33 UTC
ef028bc Cherry-pick PR #38377 into release-3.9 (#38386) Component commits: 4baff1b241 moveToNewFile: handle namespace imports too Fixes #35591 Co-authored-by: Eli Barzilay <eli@barzilay.org> 08 May 2020, 06:56:14 UTC
d906a47 Cherry-pick PR #38398 into release-3.9 (#38400) Component commits: 99c5c096c5 Properly finalize evolving array type in getTypeAtFlowCall b355cd4da4 Add regression test Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> 08 May 2020, 06:50:20 UTC
8f79cd4 ESLint suppressions because ain't nobody got time for this. 08 May 2020, 00:12:41 UTC
946f4be Remove unnecessary casts. 07 May 2020, 23:45:00 UTC
54fa1b7 Update LKG. 07 May 2020, 20:32:57 UTC
b7d3459 Properly handle private/protected members in unions of object types (#38277) (#38334) * Property handle private/protected properties in unions of object types * Add regression test Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> 07 May 2020, 20:18:27 UTC
9d6f126 Cherry-pick PR #38395 into release-3.9 Component commits: 6fe4be21e4 Exclude arrays and tuples from full intersection property check 9019e399e5 Add regression test 07 May 2020, 20:15:20 UTC
e261cdd Cherry-pick PR #38228 into release-3.9 (#38350) Component commits: 956ac2132a Allowed comment directives to be multiline 12749c9291 Added tests, and perhaps fixed a test runner bug? 99bb366fd6 I think it's going to need a consistent variable to loop over a21477d6ac Used dynamically computed indexes in verifies 992441d9b8 Added multiline tests 199d256ba2 Increased flexibility for multiline comment parsing 65a7587432 Undid a couple of formatting changes; removed backslashes from multiline regexp 036a4ae922 Merge branch 'master' b620104be2 Merge branch 'master' of https://github.com/microsoft/TypeScript into multiline-comment-directives Co-authored-by: Orta Therox <orta.therox@gmail.com> 06 May 2020, 20:11:45 UTC
e6709a4 Cherry-pick PR #38351 into release-3.9 Component commits: 39e68564ff Fix regression in name resolution in parameter 06 May 2020, 16:05:17 UTC
90570df Cherry-pick PR #38278 into release-3.9 (#38330) Component commits: d905cede25 Add missing getApparentType call c635e43ccc Add regression tests Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> 05 May 2020, 00:12:58 UTC
2c9900f 🤖 Pick PR #38273 (Harden node builder APIs to no long...) into release-3.9 (#38333) * Cherry-pick PR #38273 into release-3.9 Component commits: c80c177b44 Harden node builder APIs to no longer return `undefined` for a node when `NodeBuilderFlags.IgnoreErrors` is provided * Undo API changes for release branch Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> Co-authored-by: Wesley Wigham <wwigham@gmail.com> 04 May 2020, 23:15:41 UTC
90f12d6 Cherry-pick PR #38276 into release-3.9 (#38300) Component commits: b664c3dc6b Fix jsdoc variadic type nodes not being remapped to equivalent TS in output Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> 04 May 2020, 20:36:02 UTC
67ca514 Cherry-pick PR #38296 into release-3.9 (#38297) Component commits: 168be30fe1 Fix incorrect line text computation to stop comment directive searching Fixes #38289 Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 04 May 2020, 20:03:18 UTC
53ee194 Cherry-pick PR #38213 into release-3.9 (#38281) Component commits: 17f0dfbf9c fix(38177): add auto-import for missing argument type in new functions/methods Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com> 04 May 2020, 19:37:18 UTC
391a159 Cherry-pick PR #38272 into release-3.9 (#38274) Component commits: d6477f9167 Fix crash on duplicate default exports Co-authored-by: Andrew Branch <andrew@wheream.io> 30 April 2020, 20:46:59 UTC
f2c9398 🤖 Pick PR #38101 (Skip comparing optional property fl...) into release-3.9 (#38199) * Cherry-pick PR #38101 into release-3.9 Component commits: f0aeef14bf Skip comparing optional property flag when comparing against discriminant properties * Update LKG Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> Co-authored-by: typescript-bot <typescript@microsoft.com> 26 April 2020, 22:30:00 UTC
cefa5f4 Bump version to 3.9.1-rc and LKG 24 April 2020, 23:47:49 UTC
b07ed33 Merge branch 'master' into release-3.9 24 April 2020, 23:33:46 UTC
1b8c68d Revert "Add check for delete expression must be optional (#37921)" (#38154) This reverts commit 39beb1d011a6bc412a67e1dfa2ec1cb1de438b4f. 24 April 2020, 23:05:18 UTC
84c83da Revert #37106 (#38172) 24 April 2020, 23:04:33 UTC
b1d464d LEGO: Merge pull request 38171 LEGO: Merge pull request 38171 24 April 2020, 22:11:42 UTC
b0b6776 LEGO: check in for master to temporary branch. 24 April 2020, 22:10:50 UTC
968943f Reset error variable in downlevel for-await-of loop (#38170) * Rename forAwait tests * Reset error var in for-await loop 24 April 2020, 21:59:41 UTC
d28e38f Revert "make splice `deleteCount` required in es5.d.ts (#32643)" (#38169) This reverts commit ddcf139668c3a0aeda1da6a0d44887735ad37cdf. 24 April 2020, 21:30:28 UTC
31b81ba fix(38138): show suggestions for identifier in class property initializer (#38157) 24 April 2020, 20:50:34 UTC
ce95d9c Fix values and types merging in JS module exports (#37896) * Fix values and types merging in JS module exports * Fix everything * Share `setValueDeclaration` between binder (local merge) and checker (cross-file merge) * Revert accidental changes to baselines * Update baseline from master merge 24 April 2020, 20:49:48 UTC
1785d6c Special-case export assigned namespaces in getSpecifierForModuleSymbol so they behave like their containing module symbol (#38151) 24 April 2020, 20:10:34 UTC
fe140ac Fix truthiness call check for this-property access (#38163) 24 April 2020, 20:02:17 UTC
38ff776 Fix temp variable scoping in async generators (#38121) 24 April 2020, 19:10:29 UTC
689822c convertToAsyncFunction: Disable for `.then` with both fulfillment and rejection handlers (#38152) * Disable convert to async for `.then` with both fulfillment and rejection handlers * Delete baselines * Also disable refactor for 3+ arguments 24 April 2020, 16:52:18 UTC
a7d6825 Fix temp vars referenced in parameter (#38130) * Fix temp vars referenced in parameter * Update error message 24 April 2020, 03:45:39 UTC
815dc90 Issue an error on cross-file merges we cant emit (#38148) 24 April 2020, 02:01:16 UTC
d7e437a Have the `ChangeTracker` filter out edits that are no-ops (#38123) * Filter out edits that are no-ops in 'organize imports'. * Updated tests for 'organize imports'. * Always remove no-op changes from the change tracker. * Add a new `stringContainsAt` helper function to avoid traversing the entire file contents. * Combine `map`/`filter` sequence into `mapDefined`. * Fix up documentation. 23 April 2020, 19:54:49 UTC
9569e8a Fix newline issues when adding multiple imports (#38119) * Add new import declarations in a single TextChanges call * Refactor 23 April 2020, 18:59:38 UTC
c28bd65 LEGO: Merge pull request 38132 LEGO: Merge pull request 38132 23 April 2020, 04:11:18 UTC
ef5f0ef LEGO: check in for master to temporary branch. 23 April 2020, 04:10:34 UTC
ab0428c Update user baselines (#38109) Co-authored-by: typescript-bot <typescript@microsoft.com> 22 April 2020, 23:58:14 UTC
032aa90 Filter undefined from binding elements with initialisers without undefined in the type (#38122) * Filter undefined from binding elts w/o undefined-containing inits * use getTypeOfInitializer instead * improve comment based on Wesleys suggestion 22 April 2020, 22:45:15 UTC
ef83109 Prefer a likely literal over anonymous type in --noImplicitAny codefixes (#36015) * Prefer a likely literal over anonymous type in --noImplicitAny codefixes Before trying to make an anonymous type for a type's usage, we'll first check if there is exactly one builtin primitive the usage is assignable to, and use it if so. Right now that's only `number` and `string` because `boolean` has no distinguishable members. A couple of implementation details: * `tryInsertTypeAnnotation` needed to know to insert a type _after_ a node's `exclamationToken` if it exists * This code area was written before `??` :wink: * Used unknown/any instead of void when applicable * Fix little whitespace change in tests/cases/fourslash/codeFixInferFromUsagePropertyAccessJS.ts * Undid some now-unnecessary unknown additions * Took advice on restricting void to just call expressions 22 April 2020, 18:28:11 UTC
f248567 Filter undefined only in binding patterns in params (#38116) initialiser. But this is only correct when the initialiser is for a parameter. For example: ```ts declare let x: { s: string } | undefined; const { s } = x; ``` This PR removes undefined from the type of a binding pattern only when the binding pattern's parent is a parameter. This fixes the regression from 3.8. However, it's still not the ideal fix; we should be able to use control flow to solve this problem. Consider: ```ts const { s }: { s: string } | undefined = { s: 'hi' } declare function f({ s }: { s: string } | undefined = { s: 'hi' }): void ``` Neither line should have an error, but the first does in 3.8 and after this change. 22 April 2020, 16:56:32 UTC
d201691 fix(37825): exclude private fields from completions in subclasses (#37906) 22 April 2020, 16:07:36 UTC
92a6374 fix(38080): add outlining spans for TypeLiteral (#38089) 22 April 2020, 15:51:36 UTC
39beb1d Add check for delete expression must be optional (#37921) * Add check for delete expression must be optional * Add more tests 22 April 2020, 10:12:01 UTC
052d3f9 LEGO: Merge pull request 38104 LEGO: Merge pull request 38104 22 April 2020, 04:11:18 UTC
2784e03 LEGO: check in for master to temporary branch. 22 April 2020, 04:10:37 UTC
3c3b7dc Update user baselines (#37995) Co-authored-by: typescript-bot <typescript@microsoft.com> 21 April 2020, 23:30:09 UTC
7d4fc73 Fix preserveNewlines printer option when a list child has the same start or end as its parent (#37846) * Fix preserveNewlines printer option when a list child has the same start or end as its parent * Fix leading line separator calculation and JSX bug 21 April 2020, 22:34:30 UTC
d571a09 Navto covers all projects (#38027) * Remove needless structure/destructuring Just pass multiple arguments! Sheesh! * Basic working prototype * Cleaned up version 1. Add test 2. Change protocol. navto-all only happens when filename is undefined or missing. 3. Change location to earlier code path. This change was largely type-guided and resulted in some duplicated code, but I think it's less fault-prone. * remove temp notes * Single-project hits if projectFileName is provided and file is not * use original code as fallback 21 April 2020, 22:20:36 UTC
892427a LEGO: Merge pull request 38100 LEGO: Merge pull request 38100 21 April 2020, 22:11:20 UTC
9dd881b LEGO: check in for master to temporary branch. 21 April 2020, 22:10:39 UTC
a72e49e Delay pulling on signature contextual type until absolutely needed (#37851) 21 April 2020, 20:29:45 UTC
136f728 Fix js declaration emit for inherited and this-typed inherited fields (#37970) 21 April 2020, 20:13:50 UTC
6ea291a Remove superCallShouldBeFirst error (#37947) * Remove superCallShouldBeFirst error It seems redundant since TS gives an error on any use of `this` before super, and non-`this` uses before `super` should be fine. Fixes #37371 * Revert "Remove superCallShouldBeFirst error" This reverts commit 3c09153c8ad00d73d60e7000a0e6263a6028615a. * error except for target:"esnext" && useDefineForClassFields 21 April 2020, 19:58:37 UTC
1e48057 fix(15398): skip adding line breaks when replacing JS checks directives (#38086) 21 April 2020, 18:02:56 UTC
63ff657 Fix use-before-def with methods on esnext+useDefineForClassFields (#38033) * Fix use-before-def with methods on esnext+useDefineForClassFields It was incorrectly flagging methods as used before their definition, but this is allowed under any emit. * Add instance function test case 21 April 2020, 15:09:25 UTC
9684bb2 LEGO: Merge pull request 38084 LEGO: Merge pull request 38084 21 April 2020, 04:11:11 UTC
6d81577 LEGO: check in for master to temporary branch. 21 April 2020, 04:10:31 UTC
e7774c6 Handle non literal computed name when trying to get the name for object literal property name in json object (#37988) Fixes #37984 20 April 2020, 19:58:38 UTC
0f3f37b Fix typo in issue template titles (#38042) 20 April 2020, 19:14:26 UTC
9c1157a fix(37242): add reference to return type for JSDocFunctionType (#37911) 20 April 2020, 18:17:03 UTC
547fd12 Fix doc comment template on assignment expressions (#38032) 20 April 2020, 18:15:12 UTC
back to top