Skip to content
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: writeFile support AsyncIterable, Iterable & Stream as data argument #3

Merged
merged 277 commits into from
Apr 12, 2021

Conversation

yagipy
Copy link
Owner

@yagipy yagipy commented Feb 21, 2021

nodejs#37391

Checklist

  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

@yagipy yagipy force-pushed the fs-writefile-fix-data-argument branch 14 times, most recently from 6ae9803 to 15fef80 Compare February 28, 2021 11:38
@yagipy yagipy force-pushed the fs-writefile-fix-data-argument branch 7 times, most recently from 51c0a3c to a84d995 Compare March 5, 2021 02:17
marsonya and others added 4 commits March 6, 2021 06:55
PR-URL: nodejs#37602
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Refs: nodejs/remark-preset-lint-node#176

PR-URL: nodejs#37605
Refs: nodejs#37162
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Danielle Adams <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Enable code example using both modern ESM syntax and legacy CJS syntax.
It adds a toggle on the web interface to let users switch from one
JavaScript flavor to the other.

PR-URL: nodejs#37162
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
@yagipy yagipy force-pushed the fs-writefile-fix-data-argument branch from a84d995 to 0adccf5 Compare March 6, 2021 15:44
aduh95 and others added 4 commits March 6, 2021 18:47
PR-URL: nodejs#37600
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Starting with the V8 8.8 update, this test has been regularly
crashing with an out of memory error on 32-bit Windows. The issue
has been narrowed down to a function not being bound. This seems
like a V8 bug, but at least it seems that we can work around it.

Fixes: nodejs#37374

PR-URL: nodejs#37615
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Linkgoron and others added 19 commits April 1, 2021 12:45
fix pre-aborted question handling

PR-URL: nodejs#37929
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Change the wording to make the language more Inclusive.

PR-URL: nodejs#37903
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Pooja D P <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Change the wording to make the language more Inclusive.

PR-URL: nodejs#37933
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Signed-off-by: James M Snell <[email protected]>

PR-URL: nodejs#37970
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Make changes so that tests will pass when the comma-dangle settings
applied to the rest of the code base are also applied to tests.

PR-URL: nodejs#37930
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Derek Lewis <[email protected]>
Use comma-dangle settings from the rest of the code base on tests as
well.

PR-URL: nodejs#37930
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Derek Lewis <[email protected]>
PR-URL: nodejs#37950
Reviewed-By: Pooja D P <[email protected]>
Reviewed-By: Harshitha K P <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Signed-off-by: James M Snell <[email protected]>

PR-URL: nodejs#37917
Reviewed-By: Matteo Collina <[email protected]>
Signed-off-by: James M Snell <[email protected]>

PR-URL: nodejs#37917
Reviewed-By: Matteo Collina <[email protected]>
Signed-off-by: James M Snell <[email protected]>

PR-URL: nodejs#37917
Reviewed-By: Matteo Collina <[email protected]>
The last als.run() will reactivate the als,
hence the test should test for getting the object,
not undefined

PR-URL: nodejs#38008
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
PR-URL: nodejs#37994
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michael Dawson <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
This syncs the type assertion introduced in the referenced PR in the C++
side. Since chown, lchown, and fchown can accept -1 as a value for uid
and gid, we should also accept signed integers from the JS side.

Fixes: nodejs#37995
Refs: nodejs#31694

PR-URL: nodejs#38004
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
PR-URL: nodejs#37076
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
PR-URL: nodejs#37979
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
If `fs.read()` is called without specifying the `position` option, data
will be read from the current file position. There is another concurrent
`fs.read()` call before the test for no options object which might
invalidate the test expectations.

Run the test for no options object first.

PR-URL: nodejs#37991
Fixes: nodejs#37946
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
PR-URL: nodejs#35110
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Andrey Pechkurov <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
OpenSSL 3 has changed the format of the error message for an unknown
option to the CLI. Update the test to allow for the older and newer
message formats.

PR-URL: nodejs#38027
Refs: openssl/openssl#10774
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
@yagipy yagipy force-pushed the fs-writefile-fix-data-argument branch from 199712d to ca4bb3a Compare April 3, 2021 15:43
AnupamaP and others added 8 commits April 3, 2021 19:55
PR-URL: nodejs#36839
Refs: nodejs#34291
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Fixes: nodejs#37647

PR-URL: nodejs#37701
Reviewed-By: Derek Lewis <[email protected]>
Reviewed-By: Guy Bedford <[email protected]>
PR-URL: nodejs#37957
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
The description that store is not available
when asynchronous operation is created within
the callback is not accurate

Fixes: nodejs#38022

PR-URL: nodejs#38023
Reviewed-By: Gerhard Stöbich <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
PR-URL: nodejs#38024
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Juan José Arboleda <[email protected]>
Fixes: nodejs#37391

PR-URL: nodejs#37490
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@aduh95 aduh95 force-pushed the fs-writefile-fix-data-argument branch from ca4bb3a to 4958091 Compare April 4, 2021 10:29
@yagipy yagipy merged commit 4958091 into master Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.