Commit Graph
3491 Commits
Author SHA1 Message Date
Anders Hejlsberg 3a74ec4e99 Disable constraint reduction in intersections created by constraint hoisting (#58403) 2024-05-02 16:55:11 -07:00
Hana JooandAndrew Branch 33b156147b Add a code fixer for --isolatedDeclarations errors (#58260)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-04-30 15:25:51 -07:00
Wesley Wigham 36146aa2ea Remove seemingly unused SymbolLink constEnumReferenced (#58377) 2024-04-30 11:35:09 -07:00
Ron BucktonandJake Bailey cd566bad95 RegExp syntax checking performance (#58339)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-29 15:12:36 -04:00
Gabriela Araujo Britto d2ad3ca035 Improve diagnostics deduplication 2 (#58318) 2024-04-29 10:24:22 -07:00
Wesley Wigham f76727d17a Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
Jake Bailey 8d2e2d53c2 Move RegExp flag version mapping to LanguageFeatureMinimumTarget (#58311) 2024-04-25 15:22:21 -07:00
42f238bfbb Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
e62418e868 Isolated declarations errors (#58201)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 15:37:15 -07:00
Daniel Rosenwasser e8f22253ba Don't cache child lists for tokens (#58233) 2024-04-19 14:49:31 -07:00
Wesley Wigham 48870169dc Check nearest package.json dependencies for possible package names for specifier candidates (#58176) 2024-04-18 17:43:08 -07:00
Jake Bailey 17e420daf6 Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00
Jake Bailey 0dd12da165 Error on replacement character only in top-level scanning (#58227) 2024-04-17 11:34:00 -07:00
Sheetal Nandi cbae6cf9f4 Add template variable ${configDir} for substitution of config files directory path (#58042) 2024-04-16 16:25:07 -07:00
Andrew Branch 585a9af830 Respect package.json "type" and module-format-specific file extensions in more module modes (#57896) 2024-04-12 12:47:09 -07:00
Gabriela Araujo Britto 551a600e84 Add es2023 target (#58140) 2024-04-11 18:42:41 -07:00
Andrew Branch 5c55ce1ba2 Expand auto-import API to work on non-existent files and symbols (#58093) 2024-04-09 11:24:15 -07:00
Wesley Wigham f89a5fd674 Replace addUndefined in serializeTypeForDeclaration with the actual declaration (#58085) 2024-04-08 21:42:50 -07:00
Mateusz BurzyńskiandNathan Shively-Sanders 9ba0800646 Fixed braceless type tags with types starting with an open parenthesis (#57167)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-04-05 15:38:53 -07:00
Jake Bailey 3456c6e21c Monomorphize allocators for tsserver/public API, just like core compiler (#58045) 2024-04-04 17:03:03 -07:00
Anders Hejlsberg 39daa13099 Monomorphic flow nodes (#57977) 2024-04-04 16:53:15 -07:00
Andrew Branch 9f8a231270 Use evaluator for isolatedModules enum restrictions (#57966) 2024-04-04 09:56:23 -07:00
Oleksandr T 1ab2a8d83e fix(57761): Invalid verbatimModuleSyntax quick fix offered when also reexporting a value (#57769) 2024-04-03 16:06:44 -07:00
Jake Bailey 442720bccc Remove FlowNodes and FlowFlags from public API (#58036) 2024-04-02 18:24:40 -07:00
Sheetal NandiandTypeScript Bot 98f2c120d8 Take into account peerDependency versions when calculating packageId (#57029)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-04-01 09:04:02 -07:00
Wesley Wigham 426d8b686f Remove some unneeded parameters from NodeBuilder APIs (#57994) 2024-03-28 21:36:10 -07:00
Wesley Wigham a73ca902ea Remove getAllAccessorDeclarations from the EmitResolver (#57993) 2024-03-28 20:45:47 -07:00
Andrew Branch b24b5c4ec1 Allow cross-project references to const enums in isolatedModules when referenced project has preserveConstEnums (#57914) 2024-03-27 11:45:57 -07:00
Titian Cernicova-Dragomir fd388f7d00 Refactor expression evaluator (#57955) 2024-03-27 10:56:29 -07:00
Wesley Wigham e1874f3ffe Propagate outer type parameters of single signature types (#57403) 2024-03-27 09:57:09 -07:00
Oleksandr T 2de69b09c5 feat(41825): JSDoc equivalent of import * (#57207) 2024-03-26 13:52:43 -07:00
Jake Bailey a84577bf3b Remove getSuggestionForNonexistent* from TypeChecker (#57869) 2024-03-21 09:28:45 -07:00
Jake Bailey 7d504551ae Do not perserve references in declaration emit, unless preserve=true (#57681) 2024-03-20 15:06:02 -07:00
Sheetal Nandi ac2e122e49 Make builder not depend on information from dts emit about really needed modules (#57800) 2024-03-18 12:14:18 -07:00
Isabel Duan 0a671aa393 Change detection to detection by diff in organizeImports (#57267) 2024-03-15 16:07:39 -07:00
Ron Buckton 193d3ccef7 Track minimum language version for various language features (#57670) 2024-03-11 17:13:29 -04:00
Andrew BranchandJake Bailey 6d458e81cd Deduplicate protocol.ts content (#57361)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-03-04 11:41:49 -08:00
Titian Cernicova-Dragomir e089896be4 Preserve parameter types for optional parameters /fields with undefined in type and for required params with default value (#57484) 2024-02-29 09:42:26 -08:00
Jake BaileyandAndrew Branch 26df0cb23e Remove 5.5 deprecated compiler options (#57527)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-02-28 14:35:39 -08:00
Sheetal Nandi f23927a806 Remove code related to prepend and fix baselines (#57472) 2024-02-28 09:52:38 -08:00
Jake Bailey 65de938e4e Remove target=es3 (#57525) 2024-02-27 11:40:18 -08:00
Jake Bailey 23156cb970 Error on unused eslint directives, reenable lost eslint rules (#57350) 2024-02-27 10:49:41 -08:00
Anders Hejlsberg 36f9e9e037 Properly handle non-generic string mapping types in unions and intersections (#57197) 2024-01-28 02:10:50 -08:00
Evgeniy TimokhovandJake Bailey 4282067f89 Exposed TypeChecker.resolveName API to public along with SymbolFlags.All (#56932)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-01-19 15:05:53 -08:00
Andrew Branch 6cb6fc94ae Add --module preserve, support require in --moduleResolution bundler (#56785) 2024-01-19 12:03:24 -08:00
Jake Bailey ad2f465a38 Detect binary files by checking first 256 code units for 0xFFFD (#57008) 2024-01-16 16:15:23 -08:00
Andrew Branch 69f2e2ae65 Issue better error when unresolvable package in --moduleResolution node10 resolves with --moduleResolution bundler (#56949) 2024-01-16 09:36:14 -08:00
Anders Hejlsberg e6fe96c501 Add NoInfer<T> intrinsic represented as special substitution type (#56794) 2024-01-12 13:59:05 -08:00
Titian Cernicova-Dragomir fea4a4544f Do not remove binding alias in function declarations (#57020) 2024-01-12 11:23:22 -08:00
Oleksandr T 72d497352f fix(55994): Type-check Import Attributes in static imports (#56034) 2024-01-10 15:35:04 -08:00