Commit graph

30159 commits

Author SHA1 Message Date
Mine Starks 019e4c698a Bump version to 3.9.8 and LKG 2021-01-04 16:17:37 -08:00
Sheetal Nandi ea2f68b00f Allow only package names as plugin names 2021-01-04 13:02:27 -08:00
Andrew Casey 9294e96531
Merge pull request #39988 from amcasey/pinned-release-3.9
Make release-3.9 buildable
2020-08-11 13:20:16 -07:00
Andrew Casey 5237f9e4cf
Drop testing of node 8
It's not worth figuring out why it's failing - we don't even test it in our AzDO or GH Actions runs.
2020-08-11 10:52:48 -07:00
Andrew Casey 6c1e494bee Make release-3.9 buildable
With this change, you can build the branch using `npm ci && npm run
build`.
2020-08-10 17:53:38 -07:00
TypeScript Bot a7d801176c Bump version to 3.9.7 and LKG 2020-07-15 17:56:28 +00:00
TypeScript Bot 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
TypeScript Bot 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 Wigham 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
TypeScript Bot 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
Ron Buckton 338e42fabe
Update request-pr-review script to latest version of octokit (#39031) 2020-06-15 12:12:09 -07:00
TypeScript Bot c388222b29 Bump version to 3.9.5 and LKG 2020-05-29 01:35:22 +00:00
Daniel e0d620d18e Update LKG. 2020-05-28 19:30:08 +00:00
Daniel Rosenwasser 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 Wigham 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 d49ad7acf8
Merge pull request #38721 from microsoft/cherry-pick-38719
Cherry pick #38719
2020-05-21 20:09:33 -07:00
Nathan Shively-Sanders 4ac4d9a940 Cherry-pick 79f1ec32bd
From #38719
2020-05-21 16:53:16 -07:00
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 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 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