33954 Commits

Author SHA1 Message Date
Daniel Rosenwasser
ccf3d3c5f9 Bump version to '4.9.5' and LKG. v4.9.5 2023-01-30 18:14:14 +00:00
Ryan Cavanaugh
69e88ef551
Port ignore deprecations to 4.9 (#52419) 2023-01-25 23:23:42 -08:00
Ryan Cavanaugh
daf4e817a1
Port timestamp fix to 4.9 (#52426) 2023-01-25 20:08:35 -08:00
Daniel Rosenwasser
e2868216f6 Bump version to 4.9.4 and LKG. v4.9.4 2022-12-06 17:42:36 +00:00
Ryan Cavanaugh
eb5419fc8d
Cherry-pick #51704 to release 4.9 (#51712)
* Manual port of #51704

* Add a testcase
2022-12-05 11:13:46 -08:00
Daniel Rosenwasser
b4d382b9b1 Cherry-pick changes for narrowing to tagged literal types. 2022-12-02 22:42:35 +00:00
Sheetal Nandi
e7a02f43fc
Port of #51626 and #51689 to release-4.9 (#51627)
* When fsEvent for change is repeated

* When trying to check if program is uptodate, read the files from disk to determine the version instead of delaying so that new program is not created if file contents have not changed

* Test for empty string change

* Fix empty string for file versioning
2022-11-30 11:22:48 -08:00
Daniel Rosenwasser
1727912f04
Cherry-pick fix around visitEachChild to release-4.9. (#51544) 2022-11-29 10:13:26 -08:00
Daniel Rosenwasser
93bd577458 Bump version to 4.9.3 and LKG. v4.9.3 2022-11-12 00:32:14 +00:00
Daniel Rosenwasser
107f832b80 Update LKG. v4.9-rc 2022-11-01 03:13:23 +00:00
TypeScript Bot
31bee5682d
Cherry-pick PR #50977 into release-4.9 (#51363)
Component commits:
05d739be7e Add test that fails

c8ebfb8297 Handle impliedNodeFormat when handling sourceFileCache Fixes #50872

5c98b9cfc1 Revert the fix

651a47fdd6 Make sure impliedNodeFormat is set for the sourceFile

2c22989bd5 Revert "Make sure impliedNodeFormat is set for the sourceFile"
This reverts commit 651a47fdd6ea200e59fdf150dfa913230a86653a.

92bf32dcf5 Revert "Revert the fix"
This reverts commit 5c98b9cfc1f275877d8d57a60f8f28a5c8d08157.

5f7bc05e1f Merge branch 'main' into tsBuildImpliedNodeFormat

4bd8b9b0e9 Swap the keys for map

Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2022-10-31 16:37:29 -07:00
Daniel Rosenwasser
1e2fa7ae15 Update version to 4.9.2-rc and LKG. 2022-10-30 08:19:04 +00:00
Daniel Rosenwasser
7ab89e5c6e Merge remote-tracking branch 'origin/main' into release-4.9 2022-10-30 08:13:35 +00:00
TypeScript Bot
e5cd686def Update package-lock.json 2022-10-30 06:07:26 +00:00
TypeScript Bot
8d40dc15d1 Update package-lock.json 2022-10-29 06:07:05 +00:00
Ron Buckton
5cfb3a2fe3
Only call return() for an abrupt completion in user code (#51297) 2022-10-28 18:36:40 -04:00
Ron Buckton
a7a9d158e8
Fix for broken baseline in yieldInForInInDownlevelGenerator (#51345) 2022-10-28 16:56:53 -04:00
Ron Buckton
7f8426f4df
fix for-in enumeration containing yield in generator (#51295) 2022-10-28 15:09:10 -04:00
Jake Bailey
3d2b4017eb
Fix assertion functions accessed via wildcard imports (#51324)
* Add test

* Resolve alias of property in getTypeOfDottedName

* Always resolve

* Update tests
2022-10-27 20:27:53 -07:00
Oleksandr T
64d0d5ae14
fix(51301): Fixing an unused import at the end of a line removes the newline (#51320)
* fix(51301): keep the line break after removing the unused identifier

* preserve line breaks in import specifiers

* preserve line breaks in parameters and destructuring elements

* remove preserveLineBreak option
2022-10-27 17:27:36 -07:00
Jake Bailey
754eeb2986
Update CodeQL workflow and configuration, fix found bugs (#51263) 2022-10-27 16:29:55 -07:00
TypeScript Bot
d8aad26200 Update package-lock.json 2022-10-27 06:07:22 +00:00
Oleksandr T
d4f26c840b
fix(51245): Class with parameter decorator in arrow function causes "convert to default export" refactoring failure (#51256)
* fix(51245): don't rely on parent nodes in formatting rules

* check existing parent node
2022-10-26 16:59:44 -04:00
TypeScript Bot
16faf45682 Update package-lock.json 2022-10-26 06:07:52 +00:00
Oleksandr T
8b1ecdb701
fix(50654): "Move to a new file" breaks the declaration of referenced variable (#50681)
* fix(50654): remove entire import require call instead of the name

* handle require imports in ts files
2022-10-25 17:05:57 -07:00
Nathan Shively-Sanders
170a17fad5
Dom update 2022-10-25 (#51300)
* Update DOM

Looks like the changes are:

- AbortSignal.abort finally has the right type.
- Add OffscreenCanvas support
- Some new properties scattered around, some properties now allow `null`.
- rename VideoFrameMetadata -> VideoFrameCallbackMetadata
- Add CSSContainerRule, EXT_texture_norm16, OES_draw_buffers_indexed
- Some type aliases include more types in their union.

* Update baselines
2022-10-25 17:04:55 -07:00
Andrew Branch
9c4e14d751
Remove "No type information for this code" from baseline (#51311)
* Fix "No type information for this code" in baseline

* Just remove the message
2022-10-25 15:11:27 -07:00
Oleksandr T
88d25b4f23
fix(50068): Refactors trigger debug failure when JSX text has a ' and a tag on the same line. (#51299)
* fix(50068): rescan JsxText on JsxElement context

* fix lint errors

* add tests
2022-10-25 13:10:31 -07:00
TypeScript Bot
8bee69acf4 Update package-lock.json 2022-10-25 06:30:32 +00:00
Ron Buckton
702de1eeaa
Fix early call to return/throw on generator (#51294) 2022-10-24 22:37:42 -04:00
Andrew Casey
2c12b14999
Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue (#51271)
* Add a GH Action to file a new issue if we go a week without seeing a typescript-error-deltas issue

* Don't use the search terms in the title of the bug report
2022-10-24 10:23:04 -07:00
TypeScript Bot
6af270dee0 Update package-lock.json 2022-10-24 06:34:04 +00:00
TypeScript Bot
2cc4c16a26 Update package-lock.json 2022-10-23 06:13:35 +00:00
Jake Bailey
60934915d9
Fix apparent typo in getStringMappingType (#51248) 2022-10-22 08:23:41 -07:00
TypeScript Bot
61c26096e3 Update package-lock.json 2022-10-22 06:11:59 +00:00
Andrew Branch
ef69116c41
Generate shortest rootDirs module specifier instead of first possible (#51244)
* Generate shortest rootDirs module specifier instead of first possible

* Simplify `min`
2022-10-21 16:05:58 -07:00
Jake Bailey
bbb42f453d
Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262) 2022-10-21 10:04:40 -07:00
Ron Buckton
a56b254ad3
Include 'this' type parameter in isRelatedTo fast path (#51230) 2022-10-21 08:00:24 -04:00
Ron Buckton
3abd351c0e
Fix super property transform in async arrow in method (#51240) 2022-10-21 08:00:00 -04:00
TypeScript Bot
eed0511218 Update package-lock.json 2022-10-21 06:15:23 +00:00
Sheetal Nandi
2625c1feae
Make the init config category order predictable (#51247) 2022-10-20 13:23:18 -07:00
Oleksandr T
1ca99b3402
fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#50560)
* fix(50551): handle destructuring variables used before assignment

* skip the error in binding elements that refer to the same destructuring

* fix binding element type
2022-10-20 10:57:43 -07:00
TypeScript Bot
3f28fa12df Update package-lock.json 2022-10-20 06:12:31 +00:00
Anders Hejlsberg
906ebe4933
Revert structuredTypeRelatedTo change and fix isUnitLikeType (#51076)
* Revert structuredTypeRelatedTo change, fix isUnitLikeType

* Accept new baselines

* Add regression tests

* Fix formatting in test
2022-10-19 15:46:00 -07:00
Oleksandr T
8ac465239f
change type (#51231) 2022-10-19 12:38:37 -07:00
Oleksandr T
245a02cbed
fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#51227)
* fix(51222): add go-to-definition return statement to containing function

* add additional tests
2022-10-19 11:32:39 -07:00
Ron Buckton
2dff34e8c4
markAliasReferenced should include ExportValue as well (#51219) 2022-10-19 13:24:01 -04:00
TypeScript Bot
5ef2634f3d Update package-lock.json 2022-10-19 06:34:14 +00:00
Jake Bailey
d0f0e35c88
Remove old tslint comments (#51220) 2022-10-18 17:30:42 -07:00
Mateusz Burzyński
85d405a1d7
Fixed a false positive "await has no effect on the type" diagnostic with mixed generic union (#50833) 2022-10-18 14:10:03 -07:00