34058 Commits

Author SHA1 Message Date
Daniel Rosenwasser
9a79aeb650
Update LKG. (#51683) 2022-11-29 12:05:35 -08:00
Anders Hejlsberg
cee6366c48
Fix isTypeDerivedFrom to properly handle {} and intersections (#51631)
* Fix isTypeDerivedFrom to properly handle {} and intersections

* Add tests
2022-11-29 08:29:35 -08:00
TypeScript Bot
c460e7e892 Update package-lock.json 2022-11-29 06:06:38 +00:00
Sheetal Nandi
59e659ac4a
More test cleanup/baselining for future changes (#51635)
* More test cleanup/baselining for future changes

* More cleanup

* More cleanup

* Make the reuse program structure stable for each test
2022-11-28 15:49:08 -08:00
Andrew Branch
e6d7b526c8
Fix multiline import specifier sorting (#51634)
* Fix multiline import specifier sorting

* Update baselines

* Switch to EmitFlag, set hasTrailingComma on original node array

* Update API baseline

* Update baselines
2022-11-28 15:35:32 -08:00
TypeScript Bot
0c60da9288 Update package-lock.json 2022-11-28 06:06:49 +00:00
TypeScript Bot
f6628a4573 Update package-lock.json 2022-11-24 06:06:27 +00:00
Sheetal Nandi
c1427c90b6
Convert reuse program structure and tracing of module resolution to baseline for easier updates (#51628)
* Modify all usages of file name lower casing to use custom lower casing method

* Baseline reuse program structure tests for easy update when making changes to module resolution
2022-11-22 20:58:21 -08:00
TypeScript Bot
842e733efb Update package-lock.json 2022-11-22 06:07:09 +00:00
Mateusz Burzyński
5cd2d975c3
Fixed an issue with in not being able to be used on narrowed down expression of a generic nullable type (#51502)
* Fixed an issue with `in` not being able to be used on narrowed down expression of a generic nullable type

* Add another test case from a new issue

* Move the fix to `hasEmptyObjectIntersection`
2022-11-22 07:03:58 +01:00
TypeScript Bot
12d7e4bdbf Update package-lock.json 2022-11-21 06:07:01 +00:00
Joshua Chen
df7f5fc94e
Avoid emitting temp variable in downleveled import() (#51562) 2022-11-20 01:22:41 -05:00
TypeScript Bot
fa15877d63 Update package-lock.json 2022-11-20 06:06:26 +00:00
TypeScript Bot
d8aced98d9 Update package-lock.json 2022-11-19 06:06:21 +00:00
Wesley Wigham
b4024a5506
Preserve input key style when writing mapped type keys in declaration emit (#50781) 2022-11-18 12:54:12 -08:00
TypeScript Bot
89d9af2ab9 Update package-lock.json 2022-11-18 06:06:48 +00:00
Wesley Wigham
a3092c798a
Preserve alias symbols on references to type aliases via imports (#51152)
* Preserve alias symbols on references to type aliases via imports

* Fix lint
2022-11-17 21:25:31 -08:00
Jake Bailey
00dc0b6674
Flip imports to case insensitive sorting (#51579) 2022-11-17 15:35:28 -08:00
Jake Bailey
2d2a4343b8
Reformat imports to be one identifier per line (#51565) 2022-11-17 13:42:18 -08:00
Jake Bailey
8eed2ca2dd
Consistently respect --no-typecheck flag in build (#51575) 2022-11-17 12:44:39 -08:00
Anders Hejlsberg
7b85cd6b72
Numeric literals assignable to enum literals only when values match (#51561)
* Numeric literal assignable to enum literal only when values match

* Accept new baselines

* Update compiler sources

* Accept new baselines

* Fix test runner

* Any numeric literal type is assignable to a computed numeric enum type
2022-11-16 18:56:01 -08:00
TypeScript Bot
e99c935927 Update package-lock.json 2022-11-16 06:06:49 +00:00
Sheetal Nandi
2f2a17ad0b
Removing some unnecessary methods from host and function parameters (#51499) 2022-11-15 17:34:58 -08:00
Jake Bailey
4d53a1f8f1
Move deprecate from Debug to deprecatedCompat (#51522) 2022-11-15 16:00:33 -08:00
Simon Tretter
f4ddc1a09b
visitEachChild not traversing all nodes (#51543)
fixes https://github.com/microsoft/TypeScript/issues/51542
2022-11-15 18:18:17 -05:00
Tomasz Lenarcik
dfc1242aaf
Fix asyncDelegator reporting "done" too early (#51274)
* Fix asyncDelegator reporting done too early

* Add unit test for yields inside finally block

See #45400
2022-11-15 18:12:26 -05:00
Andrew Branch
89ce16ccfd
Fix auto-import when paths points to project reference redirect (#51492)
* Fix auto-import when `paths` points to project reference redirect

* Put paths specifiers to redirects in lower priority bucket
2022-11-15 14:19:15 -08:00
Andrew Branch
3fcd1b51a1
Refactor module resolution Extensions, fix lookup priorities (#51471)
* Refactor `Extensions`, fix lookup priorities

* Update baselines

* Clean up

* Temporarily apply same fix to `node` for testing

* Revert ancestor node_modules lookups back to two passes

* Revert "Temporarily apply same fix to `node` for testing"

This reverts commit 4014f3005a2a01a5c71a88e6418cc635498a83bc.

* Update baselines

* Add new test for node_modules searching behavior

* Update new baseline
2022-11-15 14:18:11 -08:00
Charlie Fish
53ef2fc90d
Improving Date.getTime documentation (#51365) 2022-11-15 08:48:20 -08:00
TypeScript Bot
3431912175 Update package-lock.json 2022-11-15 06:06:44 +00:00
Jonathan Kingston
c0f8d1cf75
fix(51277): Array find thisArg fix from being void (#51278) 2022-11-14 16:49:11 -08:00
Oleksandr T
5016d13f8d
fix(51112): skip checking binding parameters for functions that contains arguments (#51258) 2022-11-14 16:32:36 -08:00
Jake Bailey
fbdf00ce12
Undo accidental style changes from Map/Set PR (#51529) 2022-11-14 14:52:00 -08:00
Jake Bailey
b553affd5c
Fix smoke test substitution (#51494) 2022-11-11 16:29:42 -08:00
Jake Bailey
021fd20aac
Add smoke tests to CI (#51464) 2022-11-11 14:07:37 -08:00
TypeScript Bot
2d5e37272d Update package-lock.json 2022-11-11 06:07:05 +00:00
Sheetal Nandi
9ede7ce006
Fix incorrect spelling of packageId (#51483) 2022-11-10 16:55:49 -08:00
Sheetal Nandi
c5aea89230
Add alias ResolutionMode for ModuleKind.ESNext | ModuleKind.CommonJs | undefined (#51482)
* Add alias ResolutionMode for ModuleKind.ESNext | ModuleKind.CommonJs | undefined

* ResolutionMode | undefined = ResolutionMode

* More
2022-11-10 16:47:46 -08:00
Sheetal Nandi
3eafb64faf
Handle reusing type reference resolution in resolution cache correctly (#51475)
* Add tests where typeRef resolution is not in the cache

* Ensure that type ref reuse is actually handled since type ref resolution only sends containingSourceFileMode and not containingSourceFile
2022-11-10 16:03:25 -08:00
Jake Bailey
10125e48c0
Fix __importDefault when used on typescript libraries (#51474) 2022-11-10 13:57:57 -08:00
TypeScript Bot
9eb8bd6c5b Update package-lock.json 2022-11-10 06:07:04 +00:00
Sheetal Nandi
57a916c455
Emit buildinfo if file deleted isnt global (#51472)
* Add test for when file is deleted

* Emit buildinfo if file deleted isnt global
2022-11-09 18:07:17 -08:00
Jake Bailey
9f64a3a58c
Remove ts.{Map,Set,ESMap,Iterator} and associated types (#51439) 2022-11-09 15:06:31 -08:00
Jake Bailey
d798493647
Remove no-unnecessary-qualifier from eslintrc (#51456) 2022-11-09 15:02:29 -08:00
Jake Bailey
2ade485685
Make lkg task depend on local task instead (#51468) 2022-11-09 13:46:28 -08:00
Ron Buckton
e67b06e909
Simplistic watch mode for runtests (#51461)
* Simplistic watch mode for runtests

* Use esbuild WatchMode object for testRunner updates

* switch AbortController to CancelToken
2022-11-09 15:07:08 -05:00
Sheetal Nandi
6e0a62e8dd
Detangle unittests to reference helpers directly (#51450)
* Remove unnecessary redirection now that we are not in namespaces

* Move the tsc helpers in one place

* Move virtual file system with watch in unittests folder instead of harness since harness doesnt use it anyways

* Replace protocol and commandNames

* Revert incorrect pick
2022-11-09 10:02:40 -08:00
Jake Bailey
19091abda1
Fix missing awaits in Herebyfile (#51465) 2022-11-09 08:00:58 -08:00
Jake Bailey
0993c017ba
Fix JSDoc eslint rule for properties and methods (#51462) 2022-11-08 16:35:10 -08:00
Jake Bailey
d237468cda
Add --no-typecheck option for runtests/runtests-parallel/min/local (#51460) 2022-11-08 15:39:04 -08:00