-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: move stringToFlags() to lib/internal #7162
fs: move stringToFlags() to lib/internal #7162
Conversation
Are there any 3rd party modules that are using |
@mscdex Doesn't look like it (except for obvious copies of |
This is still technically a semver-major change. It's fine though, because it depends on a semver-major change anyway. |
LGTM after #6413 lands (if CI passes). |
LGTM once unblocked. |
LGTM |
This isn't useful to expose? |
It hasn't been exposed up to this point. |
node version 7 officially deprecates `fs.read` and `fs.readSync` This is done using `internal/util`. The unfortunate side affect being that `graceful-fs v3.x` explodes when running the code in `vm` as `internal/util` is not accessible from userland. This commit uses a regular expression to replaces the require of the specific internal util function with the source of that util function. As such `graceful-fs v3.x` will no longer explode in node v7. One advantage to this approach is that any future deprecation will not break graceful-fs.
#6413 landed. |
/ping @bnoordhuis =) |
ae69225
to
0f0257a
Compare
Rebased. New CI run: https://ci.nodejs.org/job/node-test-pull-request/4010/ |
LGTM if CI passes. @jasnell, note: this removes |
PR-URL: nodejs#7162 Refs: nodejs#6413 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
0f0257a
to
a8d2c9d
Compare
@nodejs/ctc ... any objections to this landing in v7.x? |
+1 to landing in v7.0 |
Hmm, does this mean more patching to Graceful-fs? |
@Fishrock123 I don't think so. A citgm run won't hurt, of course. |
Blocked by #6413.