Commit Graph
22132 Commits
Author SHA1 Message Date
TypeScript Bot a7d801176c Bump version to 3.9.7 and LKG 2020-07-15 17:56:28 +00:00
761a9ed6db Cherry-pick PR #39599 into release-3.9 (#39601)
Component commits:
c8d5b9891d Load ETW module from a specified path

Co-authored-by: Michael Crane <micran@microsoft.com>
2020-07-14 11:44:53 -07:00
75d6648f89 Cherry-pick PR #39573 into release-3.9 (#39602)
Component commits:
d1f8d0a153 fix(types/mocha): change deprecated Mocha types

Co-authored-by: Alexander T <alexander.tarasyuk@outlook.com>
2020-07-14 11:17:23 -07:00
TypeScript Bot c6f934381c Bump version to 3.9.6 and LKG 2020-06-30 21:42:36 +00:00
Nathan Shively-Sanders 1ee1212952 isDynamicName skips parentheses for element access
Neither `x[0]` nor `x[(0)]` should be dynamic names. Previously, the
latter was because `isDynamicName` didn't skip parentheses.

Since the binder treats dynamic names in property assignments as
assignment declarations, this incorrectly tried to create a binding for
expressions like `x[(0)] = 1`.

This caused an assert because `x[(0)]` would not take the dynamic name
code path during binding (`hasDynamicName` returned false), but the
normal code path for static names.
2020-06-23 14:21:23 -07:00
Wesley WighamandGitHub 986e9dd252 Fix crash when serializing the return type of a generic call to Array.prototype.flat (#38904) (#39079)
* Add declaration emit error and checking for circularly referential unions produced by recursive conditionals

* Allow indexed accesses to produce alias symbols on types

* Add test that still triggers the declaration emit error

* Fix spelling
2020-06-15 12:41:17 -07:00
9ec5fc5f35 Cherry-pick PR #38653 into release-3.9 (#38687)
Component commits:
97cb8188f0 No contextual types from circular mapped type properties

1dcf4ab32f Add regression test

Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2020-06-15 12:40:55 -07:00
Wesley Wigham 2fff325619 Fix recently added test so it is cross-plat 2020-06-15 12:17:16 -07:00
Wesley Wigham c88ed727de Patch to use this.timeout() > 0 rather than this.enableTimeout() to work with mocha 8+ 2020-06-15 12:12:55 -07:00
TypeScript Bot c388222b29 Bump version to 3.9.5 and LKG 2020-05-29 01:35:22 +00:00
Daniel RosenwasserandGitHub 28ea935aa2 Merge pull request #38811 from typescript-bot/pick/38808/release-3.9
🤖 Pick PR #38808 (Skip default when initially iterati...) into release-3.9
2020-05-28 11:34:20 -07:00
TypeScript Bot 4087757e9d Bump version to 3.9.4 and LKG 2020-05-28 18:14:29 +00:00
Wesley Wighamandtypescript-bot c34b39bcff Cherry-pick PR #38808 into release-3.9
Component commits:
2906ce4c98 Skip default when iterating exports in __importStar, same as __exportStar

1da7d7a28a Accept baselines
2020-05-27 18:39:12 +00:00
Nathan Shively-Sanders 4ac4d9a940 Cherry-pick 79f1ec32bd
From #38719
2020-05-21 16:53:16 -07:00
TypeScript Bot a076e9ebe2 Bump version to 3.9.3 and LKG 2020-05-19 22:33:09 +00:00
Daniel RosenwasserandGitHub 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 RosenwasserandGitHub 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
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 RosenwasserandGitHub 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 Hejlsbergandtypescript-bot 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 Trinityandtypescript-bot 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
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
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 RosenwasserandGitHub 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 01ce953dce Add mising semicolon to '__exportStar'. 2020-05-12 18:12:09 +00:00
Alexander Tandtypescript-bot 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
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 2020-05-08 23:44:27 +00:00
Nathan Shively-Sandersandtypescript-bot 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
Wesley Wighamandtypescript-bot 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 RosenwasserandGitHub 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
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
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
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
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 Hejlsbergandtypescript-bot 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
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 Bucktonandtypescript-bot 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
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
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
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
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
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
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
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>
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 RosenwasserandGitHub 1b8c68d746 Revert "Add check for delete expression must be optional (#37921)" (#38154)
This reverts commit 39beb1d011.
2020-04-24 16:05:18 -07:00