2194 Commits

Author SHA1 Message Date
Andrew Branch
e635bb97f5
Allow --module bundler --moduleResolution commonjs (#62320) 2025-08-22 14:17:18 -07:00
Daniel Rosenwasser
be86783155
Give more specific errors for verbatimModuleSyntax (#62113) 2025-07-23 15:38:01 -07:00
Idan Goshen
3ba257ffac
fix: diagnostic message for class name 'Object' when targeting different ECMAScript versions (#61850) 2025-06-30 15:46:33 -07:00
Roman A
dfb7488978
Fix capitalisation for checkJs (#61795) 2025-06-29 09:24:21 -07:00
Ryan Cavanaugh
efeb135c6f
Revert #54442 and add a testcase (#61955) 2025-06-27 08:52:58 -07:00
Andrew Branch
cb38d99d08
Add --module node20 (#61805) 2025-06-09 14:20:00 -07:00
René
1e2494566e
explicitly disallow using in ambient contexts (#61781) 2025-06-06 13:44:02 -07:00
Nicolò Ribaudo
a69c6d0bb7
Add support for import defer proposal (#60757)
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
Co-authored-by: Nicolò Ribaudo <hell@nicr.dev>
2025-06-06 12:11:21 -07:00
Ryan Cavanaugh
cd341998a9
tsc --init update (#61813) 2025-06-06 12:03:28 -07:00
Zzzen
e37ca49c70
arguments should not be allowed in class static block (#48172)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-05-02 06:38:33 -07:00
Chiri Vulpes
2bed7feee8
Account for right operands & fix a weird error message for leftmost nullish literals in checkNullishCoalesceOperands (#59569) 2025-02-21 14:17:08 -08:00
Daniel Rosenwasser
0652664e64
Fix error message incorrectly referencing 'asserts' instead of 'assert'. (#61066) 2025-01-28 14:42:35 -08:00
Jake Bailey
220706eb03
Add new option "libReplacement" (#60829) 2025-01-23 17:34:52 -08:00
Ryan Cavanaugh
2c865e461e
--erasableSyntaxOnly (#61011)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-01-23 15:56:35 -08:00
Andrew Branch
5e52b28ee6
Support require(esm) in --module nodenext (#60761) 2025-01-22 16:56:17 -08:00
Andrew Branch
f69580f821
Add --module node18 (#60722) 2024-12-13 10:16:23 -08:00
Mateusz Burzyński
239a2a936f
Error on override used on dynamically named class members (#60691) 2024-12-06 11:05:25 -08:00
Joost Koehoorn
44331b9fa3
Fix grammar issue in TS9025 diagnostic message (#60136) 2024-10-07 11:12:47 -07:00
Titian Cernicova-Dragomir
476e9ee201
Extract node type printer (#59282) 2024-09-30 09:19:42 -07:00
Isabel Duan
f6d2e73c5a
add jsx fragments to callLikeExpression (#59933) 2024-09-27 15:16:29 -07:00
Andrew Branch
bd3d70058c
Rewrite relative import extensions with flag (#59767) 2024-09-27 12:27:16 -07:00
Ron Buckton
25ab551a12
Report implict any error when widening null/undefined in presence of … (#59661) 2024-09-26 17:06:57 -04:00
Andrew Branch
9ad213fa8f
Validate JSON imports into ESM in --module nodenext (#60019) 2024-09-24 13:02:42 -07:00
Daniel Rosenwasser
278f260d0d
Specialize the message on JSX tags looking for the JSX factory namespace (#58870) 2024-09-24 11:52:44 -07:00
Sheetal Nandi
49ad1a3917
Remove tsbuildInfo specification error now that we need it for non incremental scenarios as well and there is no way to disable it (#59960) 2024-09-18 10:41:58 -07:00
Andrew Branch
a86b5e2b01
Fix error message for type-only import of ES module from CJS (#59711) 2024-08-23 12:05:40 -07:00
Sheetal Nandi
d06fb82d7c
Add option --stopBuildOnErrors to tsbuild to get previous behavior of not building downstream projects if upstream has errors (#59433) 2024-08-16 19:02:42 -07:00
Wesley Wigham
1250b480a5
Suggest simplifications for overzealous shifts (#59519) 2024-08-14 13:07:50 -07:00
Zzzen
ab7b624558
Deprecate module keyword for namespace declarations (#58007)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2024-07-23 17:22:38 -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
graphemecluster
165350dc8f
Provide User-Friendly Message for Extended Unicode Escapes in Regular Expressions in Non-Unicode Modes (#58981)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-07-17 22:08:54 -04:00
Andrew Branch
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
Anders Hejlsberg
652c96c123
Fix circularity errors in intra-binding-pattern references (#59183) 2024-07-15 13:48:44 -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
Wesley Wigham
46410044ad
Improve error message for unserializable private and protected class members (#59229) 2024-07-11 11:05:52 -07:00
Andrew Branch
fa4f2e5148
Allow dynamic import attributes in --module preserve (#59005) 2024-06-25 07:31:32 -07:00
Sheetal Nandi
d44c9c32e9
Always build project irrespective of errors in dependency with tsc -b (#58854) 2024-06-14 13:12:07 -07:00
Andrew Branch
56289733a4
Revert #57896 (#58857) 2024-06-13 16:40:23 -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
Evan Wallace
8d62e2f175
Implement "Arbitrary Module Namespace Identifiers" (#58640)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-06-04 13:40:50 -07:00
graphemecluster
0cc62c3007
Correct Regular Expressions Behavior Related to Annex B (#58320)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-29 16:14:10 -04:00
Titian Cernicova-Dragomir
8537bb72eb
Error if type node uses inaccessible type in isolated declarations (#58620) 2024-05-22 15:51:11 -07:00
Wesley Wigham
b682ed4504
Lock down computed names in object literals and classes under --isolatedDeclarations (#58596) 2024-05-22 12:28:07 -07:00
Sheetal Nandi
ef01ea1ac6
Stop checking existing resolution now that we have concept of package ID (#58528) 2024-05-14 10:30:22 -07:00
Hana Joo
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
Ron Buckton
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