util: move deprecated utils to runtime deprecation#50488
util: move deprecated utils to runtime deprecation#50488marco-ippolito wants to merge 18 commits into
Conversation
add0754 to
59b3343
Compare
59b3343 to
7ada75d
Compare
|
Is there any particular reason to do so? If not, we might as well keep it as a doc-only deprecation. |
|
Not a particular reason per se but if it was deprecated it means it somehow needs to be removed, if we dont want to remove it, why deprecate it? It's dead code, we can probably runtime deprecate it in 22 and drop in 23. |
Because it fits one of those cases: Lines 7 to 11 in ed16a46 Being doc-deprecated doesn't mean it has to ever be runtime deprecated: node/doc/contributing/collaborator-guide.md Lines 489 to 491 in 3922d18 |
|
I feel like that's more of the case of features like Domain which are probably gonna stay there forever. |
|
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. |
|
Anyone can add (or request to add) the
tsc-agenda
|
|
@marco-ippolito please update the PR description to include the list of functions that will be moved from doc-deprecation to runtime deprecation. |
0ce06a1 to
1c663d4
Compare
|
I think this is adding unnecessary pain to our users for very little benefit for us (if any at all). Anyway, ping @nodejs/tsc since this is semver major. |
|
Most of these API have been deprecated since v4, almost 9 years ago. It's moving to runtime deprecation so no work from package maintainers required. |
But why? Is it just out of principle? Are you on board with causing some (tiny) amount of pain to our users just for a question of principle? It seems to me we would need some other justification for that. |
As soon as people start seeing a runtime deprecation, they will ask package maintainers to handle it.
We're not keeping them like in a museum. We're keeping them to avoid "breaking" people for little benefit. That's also why the
We can't really and don't measure use of features, so there's no reliable way to say whether the ecosystem is based on them. |
|
We have already removed in the past some of these utils: |
The deprecation code has been created in 6.12.0, I think we can move to runtime deprecation in 22
Moving the following APIs from documentation-only deprecation to runtime deprecation: