-
Notifications
You must be signed in to change notification settings - Fork 30k
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
doc: improve fs doc intro #34843
doc: improve fs doc intro #34843
Conversation
I think the comparison between "asynchronous" and Promise-based APIs could be confusing. The Promise-based APIs definitely are asynchronous, they're just not the callback-based API. |
f1c1ac2
to
5e30b3d
Compare
@mscdex updated to address your concern |
3902466
to
9e1bab0
Compare
Not blocking on it, but I'm 👎 on the capitalization in Promise-based. The only justification I can think of is that it emphasizes the underlying For what it's worth, MDN agrees, based on the contents of https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Promises (where promise-based appears 7 times and Promise-based not at all). I also interpret the Microsoft style guide section on capitalization as falling on the "when in doubt, don't capitalize" side of things. |
I removed the |
f3cde32
to
fd41a82
Compare
Signed-off-by: James M Snell <jasnell@gmail.com>
ac4fdff
to
76a83e2
Compare
Commit Queue failed- Loading data for nodejs/node/pull/34843 ✔ Done loading data for nodejs/node/pull/34843 ----------------------------------- PR info ------------------------------------ Title doc: improve fs doc intro (#34843) Author James M Snell (@jasnell) Branch jasnell:new-fs-doc-improvements -> nodejs:master Labels author ready, doc, fs Commits 1 - doc: improve fs doc intro Committers 1 - James M Snell PR-URL: https://github.com/nodejs/node/pull/34843 Reviewed-By: Anna Henningsen Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Anto Aravinth Reviewed-By: Luigi Pinca ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/34843 Reviewed-By: Anna Henningsen Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Anto Aravinth Reviewed-By: Luigi Pinca -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - doc: improve fs doc intro ✖ No CI runs detected ℹ This PR was created on Wed, 19 Aug 2020 19:59:53 GMT ✔ Approvals: 4 ✔ - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/34843#pullrequestreview-470845622 ✔ - Ricky Zhou (@rickyes): https://github.com/nodejs/node/pull/34843#pullrequestreview-471545184 ✔ - Anto Aravinth (@antsmartian): https://github.com/nodejs/node/pull/34843#pullrequestreview-472057857 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/34843#pullrequestreview-472762285 -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu |
Landed in 010383a |
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #34843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #34843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #34843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #34843 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
nodejs#34843 was cherry-picked onto `v12.x-staging` in 961844d but the `fs/promises` API, as used in the examples, is only available from Node.js 14. Change the added examples to use `require(fs).promises` instead.
#34843 was cherry-picked onto `v12.x-staging` in 961844d but the `fs/promises` API, as used in the examples, is only available from Node.js 14. Change the added examples to use `require(fs).promises` instead. PR-URL: #35760 Fixes: #35740 Refs: #34843 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
#34843 was cherry-picked onto `v12.x-staging` in 961844d but the `fs/promises` API, as used in the examples, is only available from Node.js 14. Change the added examples to use `require(fs).promises` instead. PR-URL: #35760 Fixes: #35740 Refs: #34843 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Ricky Zhou <0x19951125@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
/cc @Trott
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes