-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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: runtime deprecate fs.F_OK
, fs.R_OK
, fs.W_OK
, fs.X_OK
#49686
fs: runtime deprecate fs.F_OK
, fs.R_OK
, fs.W_OK
, fs.X_OK
#49686
Conversation
7a9498e
to
956fcf1
Compare
Given that we've only just doc-deprecated these #49683 (not in a release yet) I think it would be premature to runtime deprecate in Node.js 21. I'd have no objections to runtime deprecation in Node.js 22. |
Sure; converting back to draft until v21.x is released. The main point of opening it now was to see if there are any objections or suggestions to the implementation. |
be1b1c3
to
c865ced
Compare
This comment was marked as outdated.
This comment was marked as outdated.
@LiviaMedeiros this may needs rebase, this is a good timing for v24.x I think (?) |
c865ced
to
d5b465c
Compare
Rebased on cc @nodejs/tsc since it's
semver-major
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #49686 +/- ##
==========================================
- Coverage 88.41% 88.40% -0.02%
==========================================
Files 654 654
Lines 187594 187696 +102
Branches 36090 36114 +24
==========================================
+ Hits 165870 165936 +66
- Misses 14980 14996 +16
- Partials 6744 6764 +20
|
CITGM ( No related failure AFAICT |
@@ -3274,10 +3275,50 @@ defineLazyProperties( | |||
); | |||
|
|||
ObjectDefineProperties(fs, { |
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.
Can we have a test for it? We usually do something like https://github.com/nodejs/node/pull/55175/files#diff-4f2fa7a6febf9021fb93df3ec31e51b3bcbfb232a2b42bab8a1f7b496700646eR10
Landed in b02cd41 |
PR-URL: nodejs#49686 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#49686 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Follow-up from: #49683 (doc-only deprecation)
Opening this ahead of time to point out that the getters here are non-enumerable.
cc @nodejs/fs