https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
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
5d78cbd Propagate nonInferrableType in &&, || and ?? operators (#38035) * Propagate nonInferrableType in &&, || and ?? operators * Add regression test * Simpler solution: getTypeFacts(neverType) should return TypeFacts.None 20 April 2020, 18:04:24 UTC
38f8db5 LEGO: Merge pull request 38072 LEGO: Merge pull request 38072 20 April 2020, 16:11:02 UTC
c0f64f1 LEGO: check in for master to temporary branch. 20 April 2020, 16:10:20 UTC
b346f57 prefix-unused-parameter-with-_ codefix now works in jsdoc @param (#36152) * Fix prepending unused TypeScript variables with underscore doesn't rename JSDoc @param. Fix test for quick fix "Prefix all unused declarations with '_' where possible". Fixes #33021. * Replace FindAllReferences.Core.eachSymbolReferenceInFile function call to more ligher call of getJSDocParameterTags when searching for a parameter in jsdoc. * Remove redundant constant declaration. * Add test for prefix single unused parameter in jsdoc. 17 April 2020, 20:18:05 UTC
a2628c9 fix(37242): add reference to return type for JSDocFunctionType 17 April 2020, 06:05:23 UTC
deb5bac Use string representation for negative numeric property names (#37936) 16 April 2020, 04:11:05 UTC
ca1f467 Update user baselines (#37946) Co-authored-by: typescript-bot <typescript@microsoft.com> 15 April 2020, 20:55:30 UTC
cdc3840 Fix crash on declaration emit for globalThis (#37992) 15 April 2020, 20:37:51 UTC
a16c441 fix(37940): add space after parameter decorator (#37959) 15 April 2020, 18:42:29 UTC
6fbaeeb Typo at Uint8Array[Symbol.toStringTag] (#37989) * Update es2015.symbol.wellknown.d.ts * Update baselines Co-authored-by: sirian <sirianru@gmail.com> 15 April 2020, 18:40:33 UTC
583e70b fix(refactor): keep comments after refactor (#35937) * add two tests: Refactor: Remove braces from arrow function * refactor: simplify test and add another test * fix: copyTrailingAsLeadingComments in addOrRemoveBracesToArrowFunction * test: add additional test * fix: clean up changes * fix: add check for newEdit * fix: add function for semi colon modifier * feat: grab all comments during refactor * refactor: update addOrRemoveBraces logic * fix: remove duplicate function call * Update src/services/refactors/addOrRemoveBracesToArrowFunction.ts * remove blank line remove blank line Co-authored-by: Jesse Trinity <42591254+jessetrinity@users.noreply.github.com> 15 April 2020, 18:06:04 UTC
06e05f2 Improve error message for computed enums (#37790) * Add error message for computed enums * Add test case for computed enums * Accept baselines * Fix returned value when error 15 April 2020, 17:50:33 UTC
92cd3ae No iteration type errors during CFA (#37965) * No iteration type errors during CFA * Add regression test 15 April 2020, 17:34:07 UTC
15c3e99 LEGO: Merge pull request 37976 LEGO: Merge pull request 37976 15 April 2020, 04:11:08 UTC
e505c79 LEGO: check in for master to temporary branch. 15 April 2020, 04:10:28 UTC
04069db LEGO: Merge pull request 37969 LEGO: Merge pull request 37969 14 April 2020, 22:11:21 UTC
49f5fbb LEGO: check in for master to temporary branch. 14 April 2020, 22:10:38 UTC
4538640 Added error when Enum member initaliser references itself (#34655) Fixes #34606 14 April 2020, 19:20:19 UTC
edd4e0a Add fastpath to isRelatedTo for type references (#37481) * Add fastpath to isRelatedTo for type references * Do not check intersections or unions to ignore propegating reference flags, properly set comparing jsx flag * Re-remove unneeded check * Just check for TypeFlags.Object * Remove else clause 13 April 2020, 22:54:37 UTC
8dd6b3a Accept recent tests with updated baseline code (#37945) 13 April 2020, 22:34:34 UTC
cede6ef Update user baselines (#37935) Co-authored-by: typescript-bot <typescript@microsoft.com> 13 April 2020, 22:08:41 UTC
6a5508b Update __exportStar helper to skip default and __esModule members (#37236) * Update __exportStar helper to skip default and __esModule * Accept new baselines * Remove esmodule check from helper 13 April 2020, 20:10:24 UTC
eb569a5 chore(ts-toolbelt): remove deprecated test (#37932) 13 April 2020, 19:32:01 UTC
141ee01 Retain imports in declaration emit if they augment an export of the importing file (#37820) * Retain imports in declaration emit if they augment an export of the importing file * (sp) * Check that a merge occurs, just because 13 April 2020, 19:31:14 UTC
a8e1ad4 fix(37781): import missing argument types for a new method (#37857) 13 April 2020, 17:23:12 UTC
5f46d42 Error on missing BigInt in es2020 (#37899) * Error on missing BigInt in ES2020 too. Previously it was only on ESNext, but bigint ships in ES 2020. There are no tests for this; passing `false` doesn't cause any tests to fail at least. * add tests 13 April 2020, 15:30:59 UTC
eb105ef Avoid circular reference in this-property assignments (#37827) * Avoid circular reference in this-property assignments To do this, don't check this-property assigments that have the this-property of the lhs appearing somewhere on the rhs: ```js class C { m() { this.x = 12 this.x = this.x + this.y } } ``` I tried suppressing the circularity error, but because we cache the first type discovered for a property, this still results in an implicit any for `x` in the previous example. It just doesn't have an error. Fixes #35099 * Add test case + rename function * Use isMatchingReference 10 April 2020, 23:41:31 UTC
795a5c8 fix(37150): ignore private fields in string index type checking (#37183) 10 April 2020, 16:53:53 UTC
aa6be6e fix(37364): show completions for string literal index on mapped type (#37367) 10 April 2020, 16:36:26 UTC
52dc9f2 No recursive intersection property checks (#37854) * No recursive intersection property checks * Add comment 10 April 2020, 02:23:36 UTC
6b1c102 No excessive stack depth global errors (#37873) * Report excessive stack depth on current node when no error node available * Accept new baselines 10 April 2020, 02:05:35 UTC
bc8a98f Add node 13 to CI 09 April 2020, 23:16:06 UTC
back to top