Commit Graph
27401 Commits
Author SHA1 Message Date
Sheetal Nandi 579d2bfe1f Make FileMap Apis to match map but just ensure that keys are always paths
Turn projectPendingBuild to config file map
2019-04-29 13:14:55 -07:00
Sheetal Nandi 50741e647b Use maps for all the watch data structures 2019-04-29 13:14:55 -07:00
Sheetal Nandi c615d48727 Make use of maps in build order calculation 2019-04-29 13:14:55 -07:00
Sheetal Nandi d4474a5dfc More refactoring to move file map creation inside solution builder 2019-04-29 13:14:54 -07:00
Sheetal Nandi b42e76b1e5 Remove usage of fileMap for output unchanged timestamp modification and simplify to use configFileMap 2019-04-29 13:13:22 -07:00
Sheetal Nandi 92365027a1 Remove getUpToDateStatusOfFile from solution builder since that test anyways is tested with the --watch mode 2019-04-29 13:13:22 -07:00
Sheetal Nandi e9d4e0b104 Unchanged output time is no more required 2019-04-29 13:13:22 -07:00
Sheetal Nandi 845f67a394 Make api to return build order 2019-04-29 13:13:21 -07:00
Sheetal Nandi 3e77b96824 Fix the graph ordering test case to check actual order and not just members as set 2019-04-29 13:11:52 -07:00
Sheetal Nandi b9eeaab050 Remove unused variable 2019-04-29 13:11:52 -07:00
Sheetal Nandi 1de70de099 No need to calculate and store project references graph 2019-04-29 13:11:52 -07:00
Sheetal Nandi 5443447eb2 Instead of maintaining queue for invalidated projects, use the pendingSet and graph queue 2019-04-29 13:11:51 -07:00
Ron Buckton 7423c6973c Merge pull request #31142 from Microsoft/binderPerf
Fix binder performance regression
2019-04-29 11:52:35 -07:00
TypeScript Bot 47d908161f Update user baselines (#31161) 2019-04-29 11:03:35 -07:00
Ron Buckton 57a8ee1507 Fix binder performance regression 2019-04-27 16:47:27 -07:00
Wenlu Wang 454b4280b1 check more case for empty binding patten (#25263)
* check more case for empty binding patten

* refactor binding pattern checking  getWidenedType

* fix spelling

* fix merge and rebase
2019-04-26 14:00:04 -07:00
Clay Miller d934401265 Change the type of 'uriComponent' (passed to 'encodeURIComponent') from 'string' to 'string | number | boolean'. Fixes #18159 (#31103)
- According to the ECMAScript 5.1 spec (§15.1.3.4), 'encodeURIComponent' invokes the abstract operation 'ToString': https://www.ecma-international.org/ecma-262/5.1/#sec-15.1.3.4
- In the spec (§9.8), 'ToString' accepts an 'Undefined', 'Null', 'Boolean', 'Number', 'String' or 'Object' argument: https://www.ecma-international.org/ecma-262/5.1/#sec-9.8
- TypeScript’s 'StringConstructor' accepts an argument with type 'any': https://github.com/Microsoft/TypeScript/blob/b0100100a18d740ad0b7c626bc81b800b5273ece/lib/lib.es5.d.ts#L518
2019-04-26 13:07:14 -07:00
Sheetal Nandi 94ee0dc769 Merge pull request #31100 from Microsoft/tsBuildCacheModuleResolution
Cache module resolutions across tsbuild to be able to resolve the modules faster
2019-04-26 07:33:59 -07:00
Jack Williams 0949ad1130 Fix #24991: Weaken narrowing for == (#29840)
Spelling
2019-04-25 19:30:03 -07:00
Anders Hejlsberg 95413f0a24 Merge pull request #31000 from Microsoft/ignoreStringIndexSignaturesOnly
Ignore string (but keep numeric) index signatures from constraints
2019-04-25 17:01:46 -07:00
Klaus Meinhardt d865ea774a resolveName: remove useless case (#28669)
PropertySignature cannot occur in a class.
The condition inside the clause required the parent to be a class, so it was never true.

This removes the case clause and the part of the condition that is now useless.
2019-04-25 15:43:43 -07:00
Max Heiber f9d12ed54b fix 31012 allow noEmitOnError with isolatedModules (#34) (#31043)
fix #31012

Since the purpose of isolatedModules: true is to
do extra validation to ensure that separate
compilation is safe

Allowing emit in the presence of errors is
compatible with that intention.

Signed-off-by: Max Heiber <max.heiber@gmail.com>
2019-04-25 15:31:03 -07:00
amaksimovich2 5b79b942e8 add action for enabling experimentalDescorators option in user config… (#30484)
* add action for enabling experimentalDescorators option in user config file, change error message for this case #29035

* add missing changes in tests

* Add "experimental decorators" tests for jsconfig file
2019-04-25 14:55:04 -07:00
Wenlu Wang b8e3c41ee1 fix jsdoc iterator on expression of export assignment (#30558) 2019-04-25 14:53:06 -07:00
Ryan Cavanaugh 867c992021 Update pull_request_template.md 2019-04-25 14:45:44 -07:00
Kagami Sascha Rosylight 1a75d525fa add ES2020 matchAll APIs (#30936) 2019-04-25 14:11:50 -07:00
Sheetal Nandi 9bb8373327 Accept API changes 2019-04-25 14:06:49 -07:00
Daniel Rosenwasser 58898f4351 Make Omit alias a separate type (#31115)
Make `Omit` alias a separate type
2019-04-25 16:40:24 -04:00
Klaus Meinhardt b45df892a8 emit error on destructuring of rest property (#29609)
Fixes: #26005
2019-04-25 13:33:49 -07:00
Andy Hanson dc7c9bad3d Avoid eagerly computing test payload (#27851) 2019-04-25 13:26:19 -07:00
Andy Hanson 9168bd4845 Simplify hasExportDeclarations (#27846) 2019-04-25 13:25:48 -07:00
Ely Alamillo 591b25593d update error message and update baselines (#27628) 2019-04-25 13:16:41 -07:00
Andy Hanson aafba363e4 Avoid recalculating versionPaths in loadNodeModuleFromDirectory (#27537)
* Avoid recalculating versionPaths in loadNodeModuleFromDirectory

* Update baselines
2019-04-25 11:06:31 -07:00
Andy Hanson 6e4c150d6b When function parameters span multiple lines, make the function span start at the ( (#26907)
* When function parameters span multiple lines, make the function span start at the `(`

* Undo unnecessary change
2019-04-25 10:53:39 -07:00
Wenlu Wang 583edce6b0 fix compiler crash (#25925) 2019-04-25 10:51:36 -07:00
Andy Hanson e007ccf97b Simplify chaining of transforms (#22994) 2019-04-25 10:38:20 -07:00
Wenlu Wang bc46c770bf allow literan enum const assertions (#30700)
* allow literan enum const assertions

* update desc
2019-04-25 10:09:21 -07:00
Daniel Rosenwasser a34f9880ea Accepted baselines. 2019-04-24 17:01:28 -07:00
Daniel Rosenwasser 57938e6cc2 Make Omit alias its own mapped type so that references to it never expand to Pick<...>. 2019-04-24 16:57:20 -07:00
Daniel Rosenwasser 622cb42137 Accepted baselines. 2019-04-24 16:45:30 -07:00
Daniel Rosenwasser 60e7b5d17e Added tests. 2019-04-24 16:43:17 -07:00
Andrew Branch b0100100a1 Merge pull request #31095 from andrewbranch/tslint-exclude-tests
Exclude tests/cases/* from tslint
2019-04-24 12:52:53 -07:00
Sheetal Nandi 93b958e0ea Share module resolution cache among different program 2019-04-24 12:47:01 -07:00
Sheetal Nandi 3264b64f08 Reuse map if module resolution is same for redirected and own files 2019-04-24 11:57:59 -07:00
Andrew Branch 4b81e37941 Merge pull request #31093 from andrewbranch/bug/30997
Fix crash getting error for type alias index signature without a type
2019-04-24 11:36:38 -07:00
Andrew Branch 7ba1c8aba2 Exclude everything in tests 2019-04-24 11:35:37 -07:00
Sheetal Nandi f27cf9b34e Merge pull request #30971 from Microsoft/dtsSignatureChange
Handle when change in type of dts may result in only dts emit but not js emit
2019-04-24 11:16:22 -07:00
Andrew Branch fc7b7c83b3 Exclude tests/cases from tslint 2019-04-24 10:41:17 -07:00
Andrew Branch 956436853e Fix crash getting error for type alias index signature without a type 2019-04-24 10:35:23 -07:00
Jordan Harband d4ff58d53f [fix] ES5 Object.keys only accepts an object (#27089) 2019-04-24 10:18:31 -07:00