| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Review requested:
|
Sorry, something went wrong.
Codecov Report✅ All modified and coverable lines are covered by tests. @@ 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
... and 47 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
|
debug@<2.6.7 was the sticking-point last time (#53429) – these versions still see a couple of million downloads a week, although that sounds like a significant drop. |
Sorry, something went wrong.
|
First, I'm going to write a codemod for this deprecation to move forward with user that use this api directly. |
Sorry, something went wrong.
There was a problem hiding this comment.
I think the benefit (we don't have to maintain it) is low and the breakage is big with this one.
Sorry, something went wrong.
|
IMO benefit is:
|
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
We throw an error? I thought we just emit a warning don't we? |
Sorry, something went wrong.
My bad miss wording. yeah I mean warning |
Sorry, something went wrong.
|
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 debug, though, for API changes. It's the package's fault for using an underscored method like that anyway, and has since been rectified. From a cursory view, the version range that used _extend is minimally used - I'll double check that when issuing the deprecation notice, but it shouldn't be a problem. I do appreciate the concern though! |
Sorry, something went wrong.
as it v25 and v26 if I got it correctly |
Sorry, something went wrong.
This is labelled semver-major PRs that contain breaking changes and should be released in the next major version. , it couldn't go in v25 as v25.0.0 has already been released. It would go to the release lines that haven't been cutoff at the time of landing (if it were to land today, that'd be v26+). |
Sorry, something went wrong.
|
Thanks Antoine for this clarification! |
Sorry, something went wrong.
|
Are we really ok with breaking millions of installs just to delete a deprecated API? |
Sorry, something went wrong.
|
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. |
Sorry, something went wrong.
|
I also think "forcing users to update their code" is not a strong enough motivation in itself either, especially when the code in question usually lies in users' dependencies that they don't control, and the result is really "the runtime forcing extra work on everyone, especially package maintainers who might already be tired of doing free labour, for pure stylistic preferences". The usual motivation for actually deprecating something in a breaking manner would be "to enforce secure practices" or "it's too much maintenance burden to keep it", because otherwise a bug-in-bug-out API would just be more work for everyone anyway, but it doesn't apply in this case (it's not really much to maintain). That said I am okay with deprecating it only when it's not inside a node_modules (that is, in code that is in users' control) like what we do for the buffer constructor etc. |
Sorry, something went wrong.
|
Honestly, while it's unfortunate to have to keep around, I'd be fine with this being marked Legacy and left as is. |
Sorry, something went wrong.
|
Hey any news here. So with landing of v26 if consensus is found, it's will be landed on 27 ? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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