Commit Graph

30137 Commits

Author SHA1 Message Date
TypeScript Bot
c019c83547 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>
2020-05-21 15:58:16 -07:00
TypeScript Bot
a076e9ebe2 Bump version to 3.9.3 and LKG v3.9.3 2020-05-19 22:33:09 +00:00
Daniel Rosenwasser
59d7d00005 Merge pull request #38669 from typescript-bot/pick/38565/release-3.9
🤖 Pick PR #38565 (Perform intersection reduction befo...) into release-3.9
2020-05-19 15:18:21 -07:00
Daniel Rosenwasser
f713571338 Merge pull request #38668 from typescript-bot/pick/38599/release-3.9
🤖 Pick PR #38599 (Fix regression organize imports dup...) into release-3.9
2020-05-19 15:17:09 -07:00
TypeScript Bot
5b29b141fa 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>
2020-05-19 14:40:23 -07:00
Daniel Rosenwasser
7225809a36 Merge pull request #38506 from typescript-bot/pick/38500/release-3.9
🤖 Pick PR #38500 (regression(38485): Unable to specif...) into release-3.9
2020-05-19 14:27:31 -07:00
Anders Hejlsberg
a654a23e46 Cherry-pick PR #38565 into release-3.9
Component commits:
e03cb800d1 Perform intersection reduction before and after getApparentType

7af78d33a0 Add regression tests
2020-05-19 21:22:29 +00:00
Jesse Trinity
fefdd74c2c 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
2020-05-19 20:48:11 +00:00
TypeScript Bot
8037e26dd4 🤖 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>
2020-05-14 15:29:33 -07:00
TypeScript Bot
e354d4785d Cherry-pick PR #38525 into release-3.9 (#38582)
Component commits:
19624faea7 Fix build type error

Co-authored-by: kingwl <kingwenlu@gmail.com>
2020-05-14 14:58:52 -07:00
Daniel Rosenwasser
3d5f66b872 Merge pull request #38509 from microsoft/semicolonExportStar3.9
[release-3.9] Add mising semicolon to '__exportStar'.
2020-05-12 15:23:49 -07:00
Daniel
c9ba767dd3 Update baselines. 2020-05-12 19:39:40 +00:00
Daniel
01ce953dce Add mising semicolon to '__exportStar'. 2020-05-12 18:12:09 +00:00
Alexander T
f185491092 Cherry-pick PR #38500 into release-3.9
Component commits:
ee3f2ce362 regression(38485): allow using rawText property in processing a tagged template
2020-05-12 17:42:47 +00:00
TypeScript Bot
bd2833f5f8 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>
2020-05-12 10:17:16 -07:00
TypeScript Bot
551f0dd9a1 Bump version to 3.9.2 and LKG v3.9.2 2020-05-08 23:44:27 +00:00
Daniel Rosenwasser
8bd8a88ab5 Merge pull request #38434 from typescript-bot/pick/38270/release-3.9
🤖 Pick PR #38270 (Improve assert message in binder) into release-3.9
2020-05-08 16:32:31 -07:00
Nathan Shively-Sanders
7eb4cdedb9 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.
2020-05-08 23:11:51 +00:00
Daniel Rosenwasser
a073560ebe 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
2020-05-08 10:54:35 -07:00
Wesley Wigham
623f78e20f 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
2020-05-08 07:06:07 +00:00
Daniel Rosenwasser
659677f6d0 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
2020-05-07 23:56:51 -07:00
Daniel Rosenwasser
9edf9ecc4b 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>
2020-05-07 23:56:33 -07:00
TypeScript Bot
ef028bcd08 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>
2020-05-07 23:56:14 -07:00
TypeScript Bot
d906a471dd 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>
2020-05-07 23:50:20 -07:00
Daniel
8f79cd42f4 ESLint suppressions because ain't nobody got time for this. 2020-05-08 00:12:41 +00:00
Daniel
946f4be633 Remove unnecessary casts. 2020-05-07 23:45:00 +00:00
Daniel
54fa1b7a8d Update LKG. 2020-05-07 20:32:57 +00:00
Daniel Rosenwasser
b7d34594ba 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>
2020-05-07 13:18:27 -07:00
Anders Hejlsberg
9d6f126c78 Cherry-pick PR #38395 into release-3.9
Component commits:
6fe4be21e4 Exclude arrays and tuples from full intersection property check

9019e399e5 Add regression test
2020-05-07 20:15:20 +00:00
TypeScript Bot
e261cdd2f6 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>
2020-05-06 13:11:45 -07:00
Ron Buckton
e6709a4cd4 Cherry-pick PR #38351 into release-3.9
Component commits:
39e68564ff Fix regression in name resolution in parameter
2020-05-06 16:05:17 +00:00
TypeScript Bot
90570dfe09 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>
2020-05-04 17:12:58 -07:00
TypeScript Bot
2c9900f9d1 🤖 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>
2020-05-04 16:15:41 -07:00
TypeScript Bot
90f12d6396 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>
2020-05-04 13:36:02 -07:00
TypeScript Bot
67ca514a7d 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>
2020-05-04 13:03:18 -07:00
TypeScript Bot
53ee1945aa 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>
2020-05-04 12:37:18 -07:00
TypeScript Bot
391a1596be 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>
2020-04-30 13:46:59 -07:00
TypeScript Bot
f2c93987c2 🤖 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>
v3.9-rc
2020-04-26 15:30:00 -07:00
TypeScript Bot
cefa5f4b05 Bump version to 3.9.1-rc and LKG 2020-04-24 23:47:49 +00:00
Daniel
b07ed3322a Merge branch 'master' into release-3.9 2020-04-24 23:33:46 +00:00
Daniel Rosenwasser
1b8c68d746 Revert "Add check for delete expression must be optional (#37921)" (#38154)
This reverts commit 39beb1d011.
2020-04-24 16:05:18 -07:00
Ryan Cavanaugh
84c83da3a9 Revert #37106 (#38172) 2020-04-24 16:04:33 -07:00
csigs
b1d464d5e5 LEGO: Merge pull request 38171
LEGO: Merge pull request 38171
2020-04-24 15:11:42 -07:00
csigs
b0b677649a LEGO: check in for master to temporary branch. 2020-04-24 22:10:50 +00:00
Ron Buckton
968943f355 Reset error variable in downlevel for-await-of loop (#38170)
* Rename forAwait tests

* Reset error var in for-await loop
2020-04-24 14:59:41 -07:00
Daniel Rosenwasser
d28e38f573 Revert "make splice deleteCount required in es5.d.ts (#32643)" (#38169)
This reverts commit ddcf139668.
2020-04-24 14:30:28 -07:00
Alexander T
31b81bafe7 fix(38138): show suggestions for identifier in class property initializer (#38157) 2020-04-24 13:50:34 -07:00
Andrew Branch
ce95d9ca6b 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
2020-04-24 13:49:48 -07:00
Wesley Wigham
1785d6c707 Special-case export assigned namespaces in getSpecifierForModuleSymbol so they behave like their containing module symbol (#38151) 2020-04-24 13:10:34 -07:00
Andrew Branch
fe140acc09 Fix truthiness call check for this-property access (#38163) 2020-04-24 13:02:17 -07:00