-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
fs: make processReadResult()
and readSyncRecursive()
private
#58672
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
fs: make processReadResult()
and readSyncRecursive()
private
#58672
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #58672 +/- ##
==========================================
- Coverage 90.17% 90.14% -0.03%
==========================================
Files 636 636
Lines 188060 188060
Branches 36898 36898
==========================================
- Hits 169579 169526 -53
- Misses 11229 11285 +56
+ Partials 7252 7249 -3
🚀 New features to boost your workflow:
|
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 agree, but can you do a GitHub code search check and see if anyone is in fact publicly using these methods?
I did that, couldn't find anything except copies of |
Excellent, then I fully support landing this as a fix instead of a breaking change. |
I'm not entirely sure we can just remove these. Would like to get some other opinions from @nodejs/tsc ... In the meantime I've also opened an alternative that runtime deprecates them See #58679 |
I don't see the problem. I haven't verified it but I don't remember that our deprecation policy applies to undocumented internals. |
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.
LGTM.
I don't think an entire runtime deprecation cycle for an undocumented API is necessary.
However, I would prefer to see this change highlighted in the changelog to make Node.js upgrades easier for people who might be relying on this privately, which won't show up on GitHub search.
Can we land it as
semver-major
Landed in 823ca69 |
These two methods are for internal use only. They alter
dir
's internal state and don't return anything, i.e. can't be used in userland in meaningful way.Unless there are objections, these can be unexposed without deprecation cycle.
Closes: #58671
Refs: #41439