https://github.com/Microsoft/TypeScript

sort by:
Revision Author Date Message Commit Date
1294ee8 Bump version to 4.3.5 and LKG 30 June 2021, 22:06:15 UTC
7b61fa2 Cherry-pick PR #44724 into release-4.3 (#44822) Component commits: 55459467d6 Fix auto imports in opening JSX tag Co-authored-by: Andrew Branch <andrew@wheream.io> 30 June 2021, 21:33:26 UTC
3221035 Bump version to 4.3.4 and LKG 17 June 2021, 00:00:02 UTC
6d8fd79 Add SolutionBuilderHostBase.getCustomTransformers to be used when emitting. (#44496) This allows not having to specify the transformers during normal watch scneario Builds on top of #43984 16 June 2021, 23:44:42 UTC
14231af Bump version to 4.3.3 and LKG 16 June 2021, 22:59:02 UTC
89a171e Cherry-pick PR #44126 into release-4.3 (#44189) Component commits: 99110e9d9d Consider inferences between mapped type templates lower priority Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> 16 June 2021, 22:45:46 UTC
419f1e7 Cherry-pick PR #44070 into release-4.3 (#44187) Component commits: d1920805b0 Do not incorrectly add line separators for non-synthetic nodes when emitting node list As of 3c32f6e154ead6749b76ec9c19cbfdd2acad97d6, a line separator is added between nodes if the nodes are not synthetic and on separate lines. This it push s wrong and previously only happened if the non-synthetic nodes were on different lines but had the same parent. Fixes #44068. Co-authored-by: Paul Gschwendtner <paulgschwendtner@gmail.com> 16 June 2021, 22:28:44 UTC
60f6d7b Cherry-pick PR #44394 into release-4.3 (#44431) Component commits: b6754e401b Add test showing how setting strict is not preserved in tsbuildinfo Test for #44305 d3b479e5ba Handle strict flag when writing tsbuildinfo Fixes #44305 cee9f40fd9 Apply suggestions from code review Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 04 June 2021, 22:26:37 UTC
b60901d Fix duplicate visit of param tag comments (#44443) (#44444) Fixes #44422 Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> 04 June 2021, 21:05:55 UTC
4f7fe4a Cherry-pick PR #44290 into release-4.3 (#44425) Component commits: f3bf29a71c fix(44273): preserves 'override' modifier in JavaScript output Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com> 03 June 2021, 23:35:21 UTC
e425f57 Fix unintended 'as const' name lookup error (#44311) (#44370) * Fix logic for methods in isTypeParameterPossiblyReferenced * Add regression tests Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> 01 June 2021, 21:55:21 UTC
28e3e6f 🤖 Pick PR #44219 (Properly remove generic types that ...) into release-4.3 (#44243) * Cherry-pick PR #44219 into release-4.3 Component commits: 4475012558 Improve getNonNullableType function 86f09ae87c Add tests d45806a984 More closely match previous behavior 634b01ab3a Add non-strict mode test * Update LKG Co-authored-by: Anders Hejlsberg <andersh@microsoft.com> Co-authored-by: typescript-bot <typescript@microsoft.com> 25 May 2021, 18:40:42 UTC
d6e6fa7 Cherry-pick PR #44129 into release-4.3 (#44240) Component commits: 7a9854c4a4 Ensure static index signatures have an errorNode available 626b4319cb Merge branch 'master' into error-node-static-index-signatures a8327a0396 Lookup static index signature declarations in the right symbol table, stop checking prototype props Co-authored-by: Wesley Wigham <t-weswig@microsoft.com> 24 May 2021, 23:12:47 UTC
27d6e44 Bump version to 4.3.2 and LKG 23 May 2021, 08:34:14 UTC
fed2315 Cherry-pick PR #44186 into release-4.3 (#44188) Component commits: acdaf368c6 Move class name capture for private state until after declaration evaluates Co-authored-by: Ron Buckton <rbuckton@microsoft.com> 20 May 2021, 22:07:31 UTC
dec8261 Revert #43460 and #40884 (#44175) (#44177) * Revert "Only issue matching token errors on non-dupe locations (#43460)" This reverts commit 76a2ae3d69e7eba33890d65159ee66719c69b916. * Revert "Adding Diagnostic message for missing ']' and ')' in Array literal and conditional statements (#40884)" This reverts commit 555ef73da88a9316a5769b9329eb01f7ac0fc92b. * re-add clobbered merge lines 20 May 2021, 20:46:30 UTC
22c3c24 Cherry-pick PR #44125 into release-4.3 (#44136) Component commits: 34b80a51af Don’t offer import statement completions at `from` position afa4d051a9 Set isGlobalCompletion to false, use indexOf lookup Co-authored-by: Andrew Branch <andrew@wheream.io> 18 May 2021, 00:48:35 UTC
1d850c0 Cherry-pick PR #44008 into release-4.3 (#44029) Component commits: 8da9ed06f3 Test without change 5c1ae7a7ca Update showing fix in #44004 works Co-authored-by: Sheetal Nandi <shkamat@microsoft.com> 10 May 2021, 19:48:05 UTC
d805ce8 Bump version to 4.3.1-rc and LKG 09 May 2021, 07:27:07 UTC
bab601b Merge remote-tracking branch 'origin/master' into release-4.3 09 May 2021, 06:30:23 UTC
5b1e873 Update diagnostic message and quickfix for parameter property (#44010) 09 May 2021, 06:22:20 UTC
3125398 Update package-lock.json 08 May 2021, 06:06:18 UTC
e61d812 Update the type reference cache with correct project options (#44004) 07 May 2021, 23:58:41 UTC
42f0cf6 Don't eagerly get apparent type of spread expression contextual type (#44002) * Don't get apparent type of contextual type for spread expressions * Add regression test 07 May 2021, 22:44:17 UTC
cb9cd89 Revert #35877 - fix receiver on calls of imported and exported functions (#43993) 07 May 2021, 20:42:12 UTC
e5395ef Add writeFile and customTransformers to build and buildReferences (#43984) 07 May 2021, 19:13:17 UTC
4423871 Remove accidentally added file in baselines (#43998) 07 May 2021, 19:05:52 UTC
6bb481c Support semantic highlights for JS files (#43992) * Switches from never allowing semantic highlight on JS to only doing it if we have a valid source file * Adds a way to test and validate that an arbitrary JS file gets semantic classification results * Revert to just dropping the if statement 07 May 2021, 19:02:26 UTC
cfed79b Correctly use ownMap from module resolution cache (#43986) * Test showing the moduleResolutionCache reset issue with tsc --b --w * Fix incorrect usage of ownMap by making it function returning ownMap instead of constant value 07 May 2021, 16:56:29 UTC
f630365 Improve errors for incorrectly nested export default (#43967) * Improve errors for incorrectly nested export default The compiler and services don't handle incorrectly nested `export default` well right now: ```ts export = (x,y) => { export default { } } ``` Asking for document highlights, find all references or quick info on 'export' or 'default' cause a crash. After the crash is fixed, the error message is confusing and wrong: "An export assignment cannot be used outside a module." This PR: 1. Skips document highlights for incorrectly nested export default. 2. Skips find all refs for incorrectly nested export default. 3. Switches the fallback binding for incorrectly nested export default from Alias to Property. Neither is correct, but Property doesn't cause a crash in alias resolution. 4. Improves the error message to reflect a post-ES module world, which has export default and 'module' means 'ES module', not 'namespace'. Fixes #40082 and the related bugs mentioned above. * address PR comments 07 May 2021, 15:09:38 UTC
ad6ca7a Update package-lock.json 07 May 2021, 06:05:59 UTC
1ce15a4 Fix perf regression from #42556 (#43949) PR #42556 was a nice optimization that dramatically sped up comparisons of discriminated unions. Unfortunately, the cost of determining whether a union is discriminated can be prohibitively high. In particular, an internal team with a very large repo saw their type count double and their memory usage increase from 6GB to 9GB, breaking their build. This changes splits the difference by not trying to compute the property types of intersection types - a notoriously slow operation. 07 May 2021, 00:06:38 UTC
96c48b7 Fix package.json auto imports for pnpm without project references (#43892) * Fix package.json auto imports for pnpm without project references * Make property optional * Revert unnecessary unnittest change * Set symlinked files when setting symlinked directories * Update `typeDirectiveIsEqualTo` * Consider symlinks found during type reference directive resolution into `discoverProbableSymlinks` * Rename `originalFileName` to `originalPath`, make internal 06 May 2021, 21:51:30 UTC
71f338b Revert "typeRelatedToSomeType passes through intersectionState (#43707)" (#43983) This reverts commit db09cb595195d4eaa5dde0322c5a8fbb5f4b66d2. 06 May 2021, 20:12:36 UTC
a5607a4 Dont allow namespace reexport symbols when looking up valid local names (#43969) 06 May 2021, 19:03:48 UTC
233f28c When directory watcher is invoked with any file from node_modules package, invalidate for file paths in that package (#43974) Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com> 06 May 2021, 16:48:26 UTC
e0d7703 fix(43939): forbid converting getters to async/await (#43944) 06 May 2021, 08:48:54 UTC
97f5c62 Fix typo in system.ts (#43895) assigment -> assignment 06 May 2021, 08:40:00 UTC
b8da22e Update package-lock.json 06 May 2021, 06:05:58 UTC
456806b Allow filterType to consider union constraints of non-union types when determining never-ness (#43763) * Allow filterType to consider union constraints of non-union types when determining never-ness * Move impl to callback * Baseline change in narrowing behavior into test, fix post-LKG build 05 May 2021, 20:35:09 UTC
b83148f Unwrap substitutions on conditional check types before comparing them (#43888) 05 May 2021, 20:33:45 UTC
84da19e Add single-element fastpath to getSupertypeOrUnion (#43934) 05 May 2021, 20:32:23 UTC
6f8c3b0 fix(43957): insert Override keyword after static modifier (#43959) 05 May 2021, 15:52:50 UTC
2ef2718 Update package-lock.json 05 May 2021, 06:05:59 UTC
f7ef154 Use options from referenced project for including resolved imports in the file when using sources of project reference (#43914) * Test where allowJs present in referenced project affects picking up right set of import files * use options from referened project for including resolved imports in the file when using sources of project reference Fixes #43909 03 May 2021, 18:35:21 UTC
7a2a687 Update package-lock.json 02 May 2021, 06:06:27 UTC
7a8c5a0 Displayparts resolves non-values in link tags (#43903) Previously, the name resolution for link tags in displaypart generation mistakenly required a valueDeclaration. Now it uses the first declaration if there is no valueDeclaration, so that types and namespaces will also resolve. This is another instance of using valueDeclaration as "the default declaration", which doesn't apply to types. Fixes #43868 30 April 2021, 21:17:54 UTC
54096bd Use project relative preference for declaration emit (#42232) * Test where relative import isnt ideal in the declaration emit * use project relative preference for declaration emit Fixes #39117 * Fix incorrect path matching when calculating module specifier * Use correct baseUrl for the module specifier 30 April 2021, 20:22:05 UTC
c96b472 Handle localness in special cases by checking exported variable assignment (#43851) * Handle localness in special cases by checking exported variable assignment Fixes #42976 * Fix existing tests where arrow now behaves similar to function expression * Update src/services/goToDefinition.ts 30 April 2021, 20:17:59 UTC
c9eb62f getExternalModuleMember:always resolve alias of moduleSymbol (#43718) Previously, getExternalModuleMember passed through its received value of `dontResolveAlias` to every function that accepted it. That includes (1) resolution of the module symbol and (2) resolution of the module specifier. However, in TS, the module symbol is never an alias anyway, so dontResolveAlias doesn't make a difference. In JS, the module symbol *can* be an alias, and it should always be resolved. That's what this PR does. Fixes #43713 30 April 2021, 17:47:45 UTC
d16790e Update package-lock.json 30 April 2021, 06:06:15 UTC
004b3ae Simplify arity errors, rewording spread errors (#43855) * Scribbles + tests The second test actually requires node types * Basically working The two simple fixes, in arity error reporting, are in, and the simplification of arity error reporting is half-done. I haven't started on any improvements to call assignability. * trim out too-real test case * Finish cleanup And reword error a little. * Simplify and reword spread errors * handle spreads first * update baselines * Address PR comments 29 April 2021, 21:38:50 UTC
4ecb563 Complete `constructor` keyword after property declaration (#43654) * Complete `constructor` keyword after property declaration. * Fix logical errors. * Fix for more universal situations. * Only provide completions if property declaration is terminated. * Simplify many logical conditions. * Make the fix more reliable. * Narrowing the fix. 29 April 2021, 18:16:51 UTC
3e25424 fix(43408): emit nullable/optional types on getters (#43476) 29 April 2021, 16:20:40 UTC
b31b0eb Use single quotes consistently in diagnostic messages. (#43634) 29 April 2021, 14:15:31 UTC
37035da Update package-lock.json 29 April 2021, 06:06:20 UTC
a14b227 Enforce keyword order of `abstract` and `override` (#43829) * Enforce keyword order of abstract and override * Update baselines * Update existing test 28 April 2021, 23:41:28 UTC
791c747 Allow `override` as parameter property (#43831) * Allow `override` as parameter property * Update other baseline * Add test for override on normal parameter * Copy typo fix * Update baselines * Update API baseline 28 April 2021, 23:41:09 UTC
db09cb5 typeRelatedToSomeType passes through intersectionState (#43707) * typeRelatedToSomeType passes through intersectionState Previously it didn't, even though it should have. * fix parameter name lint 28 April 2021, 23:12:20 UTC
58c5412 Fix `node.getStart()` for nodes spanning multiline JSDoc comments (#43854) 28 April 2021, 18:37:27 UTC
046c65a Update package-lock.json 28 April 2021, 06:08:16 UTC
7748694 Relate non-augmenting subtypes without resorting to structural comparison (#43624) * Relate non-augmenting array subtypes without resorting to structural comparison * Fix lint * Generalize performance enhancement * Cache results, feed through via getNormalizedType to remove error intermediates * Use newly freed up object flags to limit member setting, fix crash with those object flags * Move flags because there is no TypeFlags.Reference :facepalm: 28 April 2021, 05:52:12 UTC
5e4fcfb Add instantiation rules for reverse mapped types (#42449) * Add instantiation rules for reverse mapped types * Add smaller example of same issue 27 April 2021, 22:01:46 UTC
cfb9a25 Update handbook link in readme (#43813) Co-authored-by: Andrew Thongsavath <andrew@athongsavath.com> 27 April 2021, 18:17:29 UTC
bbad560 Refrain from attempting to perform parameter fixing on a generic signature multiple times (#43835) * Refrain from attempting to perform parameter fixing on a generic signature multiple times * Remove assertion 27 April 2021, 17:49:27 UTC
353dc18 Update package-lock.json 27 April 2021, 06:08:01 UTC
3de706a Don’t create invalid type-only imports during add missing import (#43828) 26 April 2021, 18:52:34 UTC
d5af89c Contextual typing checks property assignments for type annotation (#43598) Property assignments can have a type annotation in JS. This PR adds a check for it in contextual typing. Fixes #43379 26 April 2021, 16:19:24 UTC
b9c1e98 Fix completions of exports elsewhere in same file (#43755) * Fix completions of exports elsewhere in same file * Undo messing up JSDoc-annotated module.exports assignments * Add other failing contextual type test * Rearrange contextual type logic for special assignments * Rename helper function 26 April 2021, 16:13:09 UTC
514d8d8 Update package-lock.json 25 April 2021, 06:07:54 UTC
4d4ea66 update contextual discrimination to include omitted members (#43633) This diff extends the types checked by discriminateContextualTypeByObjectMembers and discriminateContextualTypeByJSXAttributes to also include any optional components in the type union. fixes #41759 although it doesn't address the better error reporting for their last repro, which I'm not sure how to address. 24 April 2021, 21:26:29 UTC
0ad158e Update package-lock.json 24 April 2021, 06:07:33 UTC
482f781 fix(43559): allow renaming in files with no-default-lib enabled (#43579) 23 April 2021, 23:56:33 UTC
d171eee Omit spaces after https in jsdoc comments (#43800) * Omit spaces after https in jsdoc comments for tags with names. Fxes #42581 * fix semicolon lint 23 April 2021, 23:23:34 UTC
dee4903 Compute dervied generic-ness for substitutions and create lower priority inferences for substitutes (#43765) 23 April 2021, 22:51:05 UTC
bd7d0f2 Don’t allow an object literal with a spread as a fallback for destructuring a property not present in all constituents (#43783) * Add test * Don’t allow an object literal with a spread as a fallback for destructuring a property not present in all constituents 23 April 2021, 21:44:57 UTC
c552a4b fix(42829) ignore preceeding jsx whitespace (#43452) 22 April 2021, 22:12:05 UTC
1a41e19 Update package-lock.json 22 April 2021, 06:08:15 UTC
f6d425e Module Resolution and Type Reference directive cache updates and its API changes (#43700) * Make the module resolution cache apis for updating compiler options or clearing it * Cache package.json lookup results from module resolution * Use per directory cache for type reference directive resolution as well * Update Baselines and/or Applied Lint Fixes * Change trace according to feedback * Update Baselines and/or Applied Lint Fixes Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com> 22 April 2021, 04:30:18 UTC
fb0b1d7 Handle getter setter quickInfo (#43769) Fixes #43413 22 April 2021, 00:47:11 UTC
ba68dc8 Remove pin, it’s fixed (#43766) 21 April 2021, 21:18:04 UTC
f4b8adc Comment copy edit 21 April 2021, 19:51:36 UTC
8ea4ec9 Add `infer T` constraint inference rule matching up mapped type templates across check/extends types (#43649) 21 April 2021, 19:49:02 UTC
a433c3c Pin octokit types (#43762) * Pin @octokit/types to fix build error * Allow update package lock to be run on a workflow dispatch 21 April 2021, 18:50:29 UTC
45514d6 Update package-lock.json 21 April 2021, 06:08:19 UTC
3d24b85 Completion list for type literals in type arguments (#43526) * Completion list for type literals in type arguments * Add tests * Refactor for better readability * - Support non-identifier keys - Move main logic onto tryGetGlobalSymbols function 20 April 2021, 17:24:17 UTC
f270529 Fix object literals lack of this references (#43572) * fix: object literals lack of this references * test: improve cases 20 April 2021, 17:06:08 UTC
8513f78 Fix getCodeFixesAtPosition for ts(2339) thows error False expression: Token end is child end (#43645) * Fix getCodeFixesAtPosition for ts(2339) thows error False expression: Token end is child end Fixes #43191 * Add test 20 April 2021, 17:00:34 UTC
a910c8d Added skipDestructiveCodeActions argument to organize imports server command (#43184) * Stopped removing unused imports in files with syntactic errors * Added allowDestructiveCodeActions arg * Updated .d.ts baselines * Stop factoring syntax errors. Weird that no tests break... * Have args extend scope so it is not a breaking change * Update src/harness/harnessLanguageService.ts Co-authored-by: Jesse Trinity <jetrinit@microsoft.com> * Fixed API breaking change, and renamed to skip * Always with the baselines * One more .d.ts baseline to fix * Remove blank line in src/harness/harnessLanguageService.ts Co-authored-by: Jesse Trinity <jetrinit@microsoft.com> 20 April 2021, 16:04:17 UTC
f67ee44 Instantiate getter when infering setter parameter value (#43564) * Instantiate getter when infering setter parameter value * Use esnext on tests * Instantiate for JsDoc and getter from body * PR comments * Updated baseline 20 April 2021, 06:23:40 UTC
167ebcd Check type flags before checking multiple-meaning object flags (#43745) 20 April 2021, 05:35:11 UTC
7e4400b Stop checking getter/setter compatability twice (#43741) * Stop checking getter/setter compatability twice * Ensure modifier errors are still emitted on both accessors, accept modified baselines 19 April 2021, 22:53:48 UTC
52ec8ce Clean up ObjectFlags enum (#43732) * Clean up ObjectFlags enum * Accept new baselines 19 April 2021, 22:33:36 UTC
85c9d2c Use faster, stricter prop type comparison when merging props in union prop creation (#43696) * Use faster, stricter prop type comparison when merging props in union prop creation * Be better at determining this usage in methods, accept baselines * Small style change 19 April 2021, 22:25:12 UTC
1a04b17 Fix organize imports overlap (#43228) * Fix organize imports overlap * Refactored multiline end position * Added tests for single line trailing trivia * Fix rearranging imports * Fix lint error * PR coments 19 April 2021, 22:10:57 UTC
c671fe1 Skip up-to-date checks during force build (#43666) * Skip up-to-date checks during force build Save work by not checking timestamps or parsing the buildinfo file. Retain correctness checks (like input file existence). Suppress project status, which was confusing anyway. * Print a message to indicate that --force is causing the rebuild * Don't bother updating buildInfoChecked * Add missing force check 19 April 2021, 20:06:00 UTC
e0d5516 Remove preprinter, add parenthesizer callback to emit (#43652) 19 April 2021, 16:34:46 UTC
b1ab2b9 Wire up 'writing' parameter through protected derived class detection (#43455) Fixes #43443 19 April 2021, 16:20:21 UTC
e4e96c3 Update package-lock.json 18 April 2021, 06:07:36 UTC
0f2dabc Don't re-alias top-level type aliases with local type aliases (#43701) * No re-aliasing of top-level type aliases with local type aliases * Accept new baselines 17 April 2021, 14:07:46 UTC
back to top