module: remove --experimental-transform-types#61803
module: remove --experimental-transform-types#61803marco-ippolito wants to merge 1 commit intonodejs:mainfrom
Conversation
|
Review requested:
|
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 88.84% 89.66% +0.82%
==========================================
Files 674 676 +2
Lines 204957 205951 +994
Branches 39309 39434 +125
==========================================
+ Hits 182087 184670 +2583
+ Misses 15088 13426 -1662
- Partials 7782 7855 +73
🚀 New features to boost your workflow:
|
|
This PR's goal is to remove transform-types. So in this PR, I think just remove the |
c62af40 to
70303e1
Compare
|
Applied suggestions, only remove transform related stuff |
70303e1 to
50a77db
Compare
|
Cna someone help me understand the CI failure? |
The node/test/parallel/test-runner-cli.js Lines 67 to 68 in 50a77db |
That doesn't really make sense, type stripping has been unflagged for a while, that flag is now a no-op. The issue seems to be that the following branch is no longer needed: node/test/parallel/test-runner-cli.js Lines 71 to 74 in 50a77db |
|
The flag still forces an early exit if no amaro, but if it's not provided, then the default-off behaviour can still be tested. assert.strictEqual(child.stderr.toString(), '');
const stdout = child.stdout.toString();
assert.match(stdout, /ok 1 - this should pass/);
assert.match(stdout, /ok 2 - this should pass/);
assert.match(stdout, /ok 3 - this should pass/);
if (!process.config.variables.node_use_amaro) {
// e.g. Compiled with `--without-amaro`.
assert.doesNotMatch(stdout, /ok 4 - this should pass/);
} else {
assert.match(stdout, /ok 4 - this should pass/);
assert.match(stdout, /ok 5 - this should pass/);
assert.match(stdout, /ok 6 - this should pass/);
}
assert.strictEqual(child.status, 0);
assert.strictEqual(child.signal, null); |
50a77db to
1708c57
Compare
|
The
notable-change
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
This PR removes the
--experimental-transform-typesflag and all related code, tests, and documentation.Refs: nodejs/typescript#51