Commit Graph

31378 Commits

Author SHA1 Message Date
Oleksandr T 09048656d2 feat(40750): add refactoring to infer a return type annotation to a function (#41052) 2020-11-03 16:22:13 -08:00
csigs 31927549eb LEGO: Merge pull request 41393
LEGO: Merge pull request 41393
2020-11-03 16:11:17 -08:00
csigs 3b059985dd LEGO: check in for master to temporary branch. 2020-11-04 00:10:47 +00:00
Sheetal Nandi 9c60d5a4d3 Dont look for properties of Object and Function type when looking to resolve named import from module with export= (#37964)
* Add tests

* Dont look at object or function type when looking for members of `export=` type to be resolved by named imports
Fixes #37165

* Create separate cache when skipping function and object property augmentation

* Lookup in both cache if not skipObjectFunctionPropertyAugment
2020-11-03 12:22:30 -08:00
csigs b00870ead4 LEGO: Merge pull request 41384
LEGO: Merge pull request 41384
2020-11-03 10:11:08 -08:00
csigs 8452f9741b LEGO: check in for master to temporary branch. 2020-11-03 18:10:38 +00:00
Daniel Rosenwasser 9871b5f17c Fix Markdown spec link (#41375) 2020-11-02 23:03:37 -08:00
Daniel Rosenwasser 4d19d98ca1 Bump 4.2 (#41377)
* Bump version to 4.2.

* Accepted baselines.
2020-11-02 23:02:03 -08:00
TypeScript Bot 07d5f5f3bc Update package-lock.json 2020-11-03 06:17:06 +00:00
csigs 935a108841 LEGO: Merge pull request 41376
LEGO: Merge pull request 41376
2020-11-02 22:11:08 -08:00
csigs 487b37cc24 LEGO: check in for master to temporary branch. 2020-11-03 06:10:40 +00:00
Oleksandr T ad70313141 fix(39858): generate valid async/await code for imported functions (#40154) 2020-11-02 16:12:08 -08:00
csigs 620217c363 LEGO: Merge pull request 41373
LEGO: Merge pull request 41373
2020-11-02 16:11:27 -08:00
csigs 4116034b27 LEGO: check in for master to temporary branch. 2020-11-03 00:10:55 +00:00
Oleksandr T 5d81b17d02 fix(40042): add modifiers in correct position for decorated methods (#40050) 2020-11-02 15:52:57 -08:00
Oleksandr T e4c1568c5d fix(41078): add element access expressions support in convertFunctionToEs6Class (#41089) 2020-11-02 15:49:22 -08:00
Thomas Williamson 8ed251d0c7 Support xml namespace prefix for JSX elements and attributes (#37421)
* Support xml namespace prefix for JSX elements and attributes

Just as with the `-` character, `:` is now also treated specially in JSX
element and attribute names, but is only allowed a single time, and not
at the beginning or end of the name, as is specified in the JSX spec.
All tests in jsxInvalidEsprimaTestSuite still fail, but for slightly
different reasons now. Two lines in jsxEsprimaFbTestSuite were
uncommented as they included elements with namespaces, and they now pass
without error.

* Add case for colons at ends of identifier

* Add case for jsx namepsace intrinsics

* Add cases with upcase idents for jsx namespaces

* Add case for jsx namespaces with react option

* Always consider jsx names with colon to be intrinsics

* Adjust comment about chars valid in jsx names but not js idents

* Fix minor typo in namespace prefix test case variable name

* Remove misleading comments on isUnhyphenatedJsxName
2020-11-02 15:34:36 -08:00
Oleksandr T 3f92a6498f fix(40257): fix type parameters range (#40265) 2020-11-02 15:20:13 -08:00
Wenlu Wang ce8d702586 Add support for pedantic property access (#40171)
* Add support for pedantic property access

* accept baseline

* Update diag message

* Avoid pedantic

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2020-11-02 15:19:00 -08:00
Oleksandr T 056d01afda fix(38283): fix incorrect parsing of static modifier (#41127) 2020-11-02 14:45:26 -08:00
okmttdhr 7db5f68144 Add index signature for anonymous object literal type (#37903)
* Use ts.map for stylistic consistency

* Show error only if noImplicitAny is set

* Accept baseline for noImplicitAnyIndexing

* Fix lint error

* Add test cases for indexedAccessWithFreshObjectLiteral
2020-11-02 14:35:56 -08:00
Oleksandr T f646ec87fc fix(40901): skip checking custom arguments name in a constructor (#40912) 2020-11-02 14:35:07 -08:00
Daniel Rosenwasser 373b352333 Rename 'compat' to 'deprecatedCompat'. (#41000) 2020-11-02 14:25:12 -08:00
Oleksandr T 075477f9cf fix(35779): emit comments after trailing comma (#37887) 2020-11-02 14:24:55 -08:00
Nathan Shively-Sanders ae81add083 Separate delete-all-imports from other delete-all (#41105)
This fixes the first part of #32196
2020-11-02 14:18:50 -08:00
Ben Lichtman 53bc006752 Merge pull request #41226 from a-tarasyuk/feat/eslint
feat(eslint): upgrade typescript-eslint/eslint
2020-11-02 09:05:03 -08:00
Oleksandr T 2437ce5793 feat(eslint): upgrade typescript-eslint/eslint 2020-11-02 12:37:10 +02:00
TypeScript Bot 4a7b6dc749 Update package-lock.json 2020-11-02 06:17:07 +00:00
Wesley Wigham 816af71d58 Fix incremental emit issue where dependency relations implied by synthesized imports would not be detected (#41346)
* Fix incremental emit issue where dependency relations implies by synthesized imports would not be detected

* Update src/compiler/program.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-11-01 16:05:49 -08:00
TypeScript Bot 6bef0cb0c4 Update package-lock.json 2020-11-01 06:16:09 +00:00
TypeScript Bot 71a2c59c55 Update package-lock.json 2020-10-31 06:15:18 +00:00
Wesley Wigham 479105090d Merge pull request #41330 from weswigham/jsx-import-source-as-auto-import
Auto-include types for the jsx import source in the new jsx transforms
2020-10-30 16:51:04 -07:00
Wesley Wigham 1e1ae3034b Update src/compiler/program.ts
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2020-10-30 16:21:36 -07:00
Wesley Wigham fe94a2180c Use same metho as importHelpers to add synthetic import 2020-10-30 16:16:23 -07:00
Wesley Wigham 8493ee8824 Add mroe incremental-affecting affixes to compiler options, add incremental test for changing jsxImportSource 2020-10-30 16:01:27 -07:00
Wesley Wigham fe3b3436e6 Add affectsModuleResolution: true ot jsx and jsxImportSource options 2020-10-30 15:38:20 -07:00
Wesley Wigham e044b56d7f Merge pull request #40985 from weswigham/static-decl-ref
Adjust typeof import name lookup to better match type query lookup
2020-10-30 11:13:23 -07:00
Ron Buckton b9ed93ee6c Merge pull request #41331 from microsoft/fix39149
Fix double alias of complex export/import/default/namespace combination
2020-10-30 09:25:58 -07:00
csigs 966d978513 LEGO: Merge pull request 41335
LEGO: Merge pull request 41335
2020-10-30 05:11:10 -07:00
csigs 3cbce3acf3 LEGO: check in for master to temporary branch. 2020-10-30 12:10:39 +00:00
TypeScript Bot 80dc9d9e3c Update package-lock.json 2020-10-30 06:16:14 +00:00
Ron Buckton f944afd053 Fix double alias of complex export/import/default/namespace combination 2020-10-29 18:42:36 -07:00
Ron Buckton bcbe1d7638 Merge pull request #41094 from microsoft/destructuringEvaluationOrder
Fix destructuring evaluation order for initializers
2020-10-29 17:12:18 -07:00
Oleksandr T eb6ddf6b29 fix(40671): suggest ConvertStringToTemplateLiteral refactoring for string with property/element acceses elements (#40942) 2020-10-29 15:23:11 -07:00
Wesley Wigham 6714998e01 Auto-include types for the jsx import source in the new jsx transforms 2020-10-29 14:17:24 -07:00
Ron Buckton 2b7e790732 Update control flow for nested binary exprs 2020-10-29 13:32:32 -07:00
Jesse Trinity b27d4bf3f6 noop in setTypeAcquisiton for undefined (#41291)
* noop in setTypeAcquisiton for undefined

* accept new baseline

* add regression test
2020-10-29 13:30:42 -07:00
Wesley Wigham 60b8bbcabe Update style 2020-10-29 13:03:25 -07:00
Sheetal Nandi 6bde4b5c02 Fix missing file name of extended source file in synchronizeProjectList when it is missing on disk (#41222)
Fixes #40136
2020-10-29 12:18:43 -07:00
Andrew Branch 6428140204 Log AutoImportProvider creation time (#41315) 2020-10-29 09:00:50 -07:00