| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
const?
Sorry, something went wrong.
There was a problem hiding this comment.
I'd rather not in this PR. There are several similar updates that can be made elsewhere in this file that should be done in a separate PR
Sorry, something went wrong.
There was a problem hiding this comment.
perhaps and will be removed soon/in Node.js v***?
Sorry, something went wrong.
There was a problem hiding this comment.
Because domain and fs.existsSync are also deprecated 😉.
Sorry, something went wrong.
There was a problem hiding this comment.
Perhaps just will be removed soon without a firm version.
Sorry, something went wrong.
|
@nodejs/ctc ... Tagging as ctc-agenda because it's (a) a semver-major and (b) requires a deprecation. I don't think this one is particularly controversial tho. |
Sorry, something went wrong.
|
+1, but only after a full deprecation cycle |
Sorry, something went wrong.
|
Ah, also +1 from me (with a deprecation cycle). https://gist.github.com/ChALkeR/f2cb74429769e91752d4b7f41b70dda2 — .SyncWriteStream usage. I'll copy my comment from a note above:
|
Sorry, something went wrong.
|
The deprecation is in there now. Just squashed the commits down. |
Sorry, something went wrong.
|
CI is green. |
Sorry, something went wrong.
|
@jasnell that serialport failure on ppc is new... rerunning on master to double check edit: looks like there was an update to serialport that may have broken this |
Sorry, something went wrong.
|
hmm... I've seen that serialport failure before. I believe I was running citgm locally tho. |
Sorry, something went wrong.
There was a problem hiding this comment.
Note to self, this doesn't need to be done. But for future optimization.
Sorry, something went wrong.
|
A run on master has serialport tests passing on ppc Here's another run of this pull's head just to make sure it wasn't a one off: https://ci.nodejs.org/view/Node.js-citgm/job/thealphanerd-smoker/269/ edit: was green this time... ¯_(ツ)_/¯ |
Sorry, something went wrong.
|
Happy to see this out of fs.js, LGTM. |
Sorry, something went wrong.
|
This is blocked by #6413, btw. I mean — merging this will obviously break reevaluating fs module sources and old graceful-fs versions, so we should make sure that we are fine with that first. |
Sorry, something went wrong.
|
I'm curious — aside from the comment that notes that it was supposed to be private, what's the reasoning behind making this private now? It seems like it might not be worth potentially breaking things to move this into internal — I don't think we see much support load for this API as it stands. |
Sorry, something went wrong.
|
CTC discussion on this was to leave this open but hold off on landing until a later date after #6413 lands. |
Sorry, something went wrong.
|
It's a semver-patch that depends on a semver-major, right? Adding the "dont-land" labels. |
Sorry, something went wrong.
|
I believe so, yes, landing on v6 should be fine tho as I believe the semver-major landed there. Could be wrong. |
Sorry, something went wrong.
|
The require('internal/fs'); makes it only landable on master I believe. |
Sorry, something went wrong.
|
ah yes, because of the graceful-fs warning. You're right. That's fine, it wouldn't be critical to land this in v6 at all. |
Sorry, something went wrong.
|
@targos ... other than the don't land labels, does this LGTY? |
Sorry, something went wrong.
|
@ChALkeR ... does this still LGTY? The only change is that I removed the runtime deprecation |
Sorry, something went wrong.
|
@jasnell, what does the «doc-only deprecation» mean here? It isn't documented =). |
Sorry, something went wrong.
|
It just means adding the code comment that indicates the intention to On Friday, September 2, 2016, Сковорода Никита Андреевич <
|
Sorry, something went wrong.
|
@jasnell What would be the difference to users between runtime deprecation in v7 and runtime deprecation in v8? Why do we prefer the latter? |
Sorry, something went wrong.
|
Given the issues that have been caused by other runtime deprecations, and On Friday, September 2, 2016, Сковорода Никита Андреевич <
|
Sorry, something went wrong.
|
@jasnell Perhaps that could be included into the release notes, for this and other «documentation-only» deprecations of undocumented functions. |
Sorry, something went wrong.
|
+1 to adding it to the release notes. |
Sorry, something went wrong.
Move the implementation of SyncWriteStream to internal/fs.
Sorry, something went wrong.
|
Some weird red in that last CI run... trying again: https://ci.nodejs.org/job/node-test-pull-request/3928/ |
Sorry, something went wrong.
|
@nodejs/build ... there's definitely something weird happening with arm in CI |
Sorry, something went wrong.
|
Failures in CI are unrelated. Landing! |
Sorry, something went wrong.
Move the implementation of SyncWriteStream to internal/fs. PR-URL: #6749 Reviewed-By: Ron Korving <ron@ronkorving.nl> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
|
How do we install "internal/fs" ? when I run npm install --save-dev internal/fs I get an error about my github keys and that I cannot read the remote repo. I'm generally getting errors about cannot find module internal/fs -- what's up here? |
Sorry, something went wrong.
|
You don't install internal/fs, this is a bug in graceful-fs, sounds like. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
fs
Description of change
Move the internal SyncWriteStream class to internal/fs. This pulls it off require('fs') without a deprecation. It was always intended to be private, says that it's private in the source and tells people not to use it.
Update the impl a bit while we're at it to use class instead of util.extends