Commit Graph
3552 Commits
Author SHA1 Message Date
Ron Buckton 2598c94bab Temporary monomorphic Node projection 2024-10-01 15:10:58 -04:00
Ron Buckton aaf7906ce3 Monomorphic flag calculation and property access for name/jsDoc 2024-09-20 16:15:47 -04:00
Ron Buckton 0f2a20fa57 Unify types 2024-09-20 01:33:24 -04:00
Ron Buckton 85e91cb62b Less aggressive use of optional chaining 2024-09-18 09:56:02 -04:00
Ron Buckton 37746fd5b1 Merge branch 'main' into slim-ast-node 2024-09-17 16:12:13 -04:00
Ron Buckton 5d99110c21 Add initial slim AstNode API 2024-09-17 15:23:32 -04:00
8230bc66a7 Drop unnecessary type arguments in the isolated declarations quick fix (#59665)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-09-16 10:35:50 -07:00
52eaa7b02f Enable --isolatedDeclarations on TS codebase (#59635)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-09-15 18:10:52 -07:00
Sheetal Nandi 87d0e771a8 Fix issues with global typings cache and what gets watches (#59869) 2024-09-05 13:06:30 -07:00
Armando AguirreandArmando Aguirre Sepulveda 6260f7ab78 Added typeToTypeNode with truncation (#59332)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-30 14:16:18 -07:00
Daniel Rosenwasser e6f3bafddf Optimize path mapping lookups (#59048) 2024-08-29 09:17:24 -07:00
Andrew Branch a5eec2485f Simplify handling of node:-prefixed modules in auto-imports (#59702) 2024-08-21 16:43:21 -07:00
ZzzenandDaniel Rosenwasser 533ed3d665 error on variables that are used but never initialized (#55887)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2024-08-20 13:02:54 -07:00
936a79bbb5 Expose TypeChecker. getAwaitedType to public (#59268)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-08-19 10:58:15 -07:00
Andrew Branch bcb1545aa3 Allow existing imports in file to supersede package.json filter (#59604) 2024-08-15 15:00:31 -07:00
Oleksandr T. 7049af5f4f fix(58166): Class parameter property with initializer before required property emits non-nullable parameter for declaration emit (#58177) 2024-08-12 15:42:09 -07:00
Andrew Branch 09caaf60aa Add autoImportSpecifierExcludeRegexes preference (#59543) 2024-08-09 11:12:18 -07:00
Armando AguirreandArmando Aguirre Sepulveda 5f79e16d33 Refactored node builder flags and tests (#59440)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-08 13:19:24 -07:00
Jake Bailey 99878128f0 Don't treat an instantiation expression as an assertion in skipOuterExpressions (#59538) 2024-08-06 15:01:46 -07:00
Mateusz Burzyński 451388cfd5 Fixed quick fixes for inferred type predicates (#58958) 2024-07-26 10:21:18 -07:00
Ryan Cavanaugh 71fb864138 Disallow truthiness/nullishness checks on syntax that never varies on it (#59217) 2024-07-22 15:26:17 -07:00
Isabel Duan dfb870150c fix35982: allow BigIntLiteral to parse as PropertyName for literal object and indices (#58608) 2024-07-19 17:48:08 -07:00
Jake Bailey 85d6bb6fe6 Add new option "noUncheckedSideEffectImports" (#58941) 2024-07-19 17:35:02 -07:00
Ron Buckton 6f530cc4ce Add TReturn/TNext to Iterable et al (#58243) 2024-07-19 13:14:00 -04:00
Sheetal Nandi afa03f0948 Allow declarationMap to be emitted when transpiling declarations and option is enabled (#59337) 2024-07-17 17:07:17 -07:00
Andrew BranchandJake Bailey a9139bfdfe Only look up package.json type if module is node16/nodenext or file is in node_modules (#58825)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-07-17 09:23:51 -07:00
Sheetal Nandi 6369240da6 Store information in buildInfo to repopulate mode mismatch based on status of package.json (#59286) 2024-07-16 10:12:14 -07:00
Anders Hejlsberg 652c96c123 Fix circularity errors in intra-binding-pattern references (#59183) 2024-07-15 13:48:44 -07:00
Gabriela Araujo Britto 03143729b1 Make type comparison error elaboration consistent (#58859) 2024-07-15 11:11:40 -07:00
Sheetal Nandi 9c093c13e6 Do not reuse ambient module name resolution from other files while determining if resolution can be reused (#59243) 2024-07-12 14:43:00 -07:00
Oleksandr T e450c463c6 fix(59011): TypeScript generates invalid types if @import tags are spread over multiple lines (#59026) 2024-07-10 15:37:49 -07:00
Daniel Rosenwasser a6fb4dc103 Create a SourceFile-level indirection on children maps, store SyntaxList children directly on nodes. (#59154) 2024-07-08 16:55:41 -07:00
Sheetal Nandi 247a98335d In project, instead of iterating over program files to determine if file needs to be detached, do it through existing mechanism of releasing oldSourceFile (#59181) 2024-07-08 13:37:44 -07:00
Sheetal Nandi 22bbe867fd Show dts errors with --noEmit, fix some of the incremental noEmit issues and support dts diagnostics and fix the caching diagnostics in program (#59065) 2024-06-28 13:55:49 -07:00
Lars KappertandJake Bailey 752135eb40 Remove unused exports & dead code (using Knip) (#56817)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-06-27 14:24:01 -07:00
Mateusz Burzyński 7410cfd632 Deprecate .hasRestElement in favor of combinedFlags (#58864) 2024-06-17 15:53:32 -07:00
Jake Bailey b63e5307ab Expose getBigIntLiteralType (#58887) 2024-06-17 11:25:43 -07:00
Andrew Branch 56289733a4 Revert #57896 (#58857) 2024-06-13 16:40:23 -07:00
Gabriela Araujo Britto 4857546865 Region-based semantic diagnostics (#57842) 2024-06-13 16:21:01 -07:00
Sheetal Nandi b258429aaa tsc -b removes silent noEmitOnError and emits files even if there are errors (#58838) 2024-06-13 13:12:35 -07:00
Sheetal Nandi dca9182ca8 Always write tsbuildInfo when running tsc -b (#58626) 2024-06-12 13:46:19 -07:00
Sheetal Nandi d8086f14b6 BuildInfo refactoring: Now that we dont have bundle we dont need program field explicitly (#58789) 2024-06-06 15:08:11 -07:00
Evan WallaceandRon Buckton 8d62e2f175 Implement "Arbitrary Module Namespace Identifiers" (#58640)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-06-04 13:40:50 -07:00
Wesley Wigham 112e860602 Allow references to the global Symbol in computed property names under isolatedDeclarations (#58771) 2024-06-04 12:55:24 -07:00
Sheetal Nandi 9edddc73ad Write buildInfo even if we dont emit js or dts for --outFile scenarios (#58760) 2024-06-03 17:06:14 -07:00
Ben Lickly fc42002a10 Improve the performance of isolatedDeclarations quickfix (#58722) 2024-05-31 09:04:07 -07:00
Wesley Wigham bbfc1aa281 Enable JS emit for noCheck and noCheck for transpileModule (#58364) 2024-05-30 13:38:37 -07:00
Gabriela Araujo Britto 8f408cc120 Check resolution of tslib per file (#58654) 2024-05-28 16:45:51 -07:00
graphemeclusterandRon Buckton d0ef028841 Improve Recovery of Unterminated Regular Expressions (#58289)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-24 15:46:26 -04:00
Wesley WighamandTypeScript Bot b3f3bb3d38 Propagate the error any type in union and intersection construction (#58610)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-23 09:38:57 -07:00