module: remove --experimental-transform-types#61803
module: remove --experimental-transform-types#61803marco-ippolito wants to merge 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
This PR removes the `--experimental-transform-types` flag and all related code, tests, and documentation. It also changes the following user facing APIs: - `stripTypeScriptTypes` now only accepts the code to transform, and not the options object. It also does not add a sourceURL comment at the end of the transformed code. - `process.features.typescript` now only returns a boolean.
2ea1afe to
c62af40
Compare
I think we should add Then the question becomes what to do with For the purposes of this PR, perhaps the simplest thing to do would be to just keep |
|
User can run |
I wouldn't do that:
Why risk it? |
If we think thats a possibility in the future, then we should keep TLDR - keep this semver-major change as breaking only for those using transform but anyone using strip should not have a breaking change. Does that make sense? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #61803 +/- ##
==========================================
- Coverage 89.73% 89.67% -0.06%
==========================================
Files 675 675
Lines 204676 204668 -8
Branches 39330 39281 -49
==========================================
- Hits 183660 183536 -124
- Misses 13293 13419 +126
+ Partials 7723 7713 -10
🚀 New features to boost your workflow:
|
This PR removes the
--experimental-transform-typesflag and all related code, tests, and documentation.It also changes the following user facing APIs:
stripTypeScriptTypesnow only accepts the code to transform, and not the options object.It also does not add a sourceURL comment at the end of the transformed code.
process.features.typescriptnow only returns a boolean.Technically the
stripTypeScriptTypescould have landed as a separate commit but I believe since it's a semver major commit it makes no difference.Refs: nodejs/typescript#51