-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
base: main
Are you sure you want to change the base?
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 ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #49686 +/- ##
==========================================
- Coverage 88.41% 88.39% -0.03%
==========================================
Files 654 654
Lines 187594 187635 +41
Branches 36090 36090
==========================================
- Hits 165870 165867 -3
- Misses 14980 15005 +25
- Partials 6744 6763 +19
|
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
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