-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
util: move deprecated util._extend() to EoL
#60812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Review requested:
|
00e47e3 to
0424c81
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #60812 +/- ##
==========================================
+ Coverage 88.43% 88.55% +0.11%
==========================================
Files 703 703
Lines 208235 208231 -4
Branches 40085 40155 +70
==========================================
+ Hits 184162 184397 +235
+ Misses 16069 15829 -240
- Partials 8004 8005 +1
🚀 New features to boost your workflow:
|
|
|
|
First, I'm going to write a codemod for this deprecation to move forward with user that use this api directly. |
benjamingr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the benefit (we don't have to maintain it) is low and the breakage is big with this one.
|
IMO benefit is:
|
|
We already have a deprecation so users know they should not use this API. Breaking millions of installations to teach users not to use an API sounds like a very aggressive/breaking move to me and I would rather we don't unless we find a way to avoid the breakage. |
|
What if we land this in v25 so it's will be on v26 LTS it's mean the gap between two LTS is sufficient. |
We throw an error? I thought we just emit a warning don't we? |
My bad miss wording. yeah I mean warning |
|
Thanks @AugustinMauroy for the heads up on bsky. :) If this were to land, which version of Node would this go out on? At the very least I can deprecate versions prior to this and mention in the deprecation notice that they'll break after upgrading to node x.y.z, whatever that is. If a backport is needed I can do that (but would prefer not to). Please don't worry on account of I do appreciate the concern though! |
as it v25 and v26 if I got it correctly |
This is labelled
semver-major
|
|
Thanks Antoine for this clarification! |
|
Are we really ok with breaking millions of installs just to delete a deprecated API? |
|
Re the 3 benefits cited in #60812 (comment), "reducing deprecated APIs" for its own sake is not much of a benefit; if the native solution isn't enticing enough, then it's not better; and_forcing_ users isn't something we should want to do. I don't think the massive amount of breakage this will absolutely cause is going to ever be worth it. |
Description
Granting DEP0060 (old one) to End of life and remove it form source code. First time I do that I'm not sure if I do it correctly
Comparison