Repository navigation
Conversation
d6945db to
e8258fd
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64611 +/- ##
==========================================
- Coverage 90.55% 90.54% -0.01%
==========================================
Files 801 801
Lines 284215 284220 +5
Branches 54883 54895 +12
==========================================
- Hits 257358 257347 -11
- Misses 17014 17043 +29
+ Partials 9843 9830 -13
🚀 New features to boost your workflow:
|
|
Could someone from the fs team take another look at this? The previous approval became stale after the latest changes, and the PR now just needs one reapproval to unblock the merge. Thanks! |
|
@jasnell Friendly ping when you have a moment. I corrected only the commit message; the code itself is unchanged, but this made the previous approval stale. Could you please review and re-approve the latest commit? Thank you! |
This comment was marked as resolved.
This comment was marked as resolved.
You are right, I updated the pr body |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Jenkins CI is showing successful, so I've marked the PR as
author ready
|
Thanks @MikeMcC399 for running the CI and updating the status! |
|
@gurgunday Thanks for the approval! All checks are passing, but GitHub still shows a required review and the |
|
I'm not sure quite what has happened with this PR, but GitHub is saying it needs attention:
Because this PR branch is now more than 1758 commits behind We can then ask the previous approvers to re-approve. The
needs-ci
See Testing and CI from the Collaborator Guide where it says:
|
This comment was marked as resolved.
This comment was marked as resolved.
@MikeMcC399 thanks for your comment, I will rebase it as soon as possible |
This comment was marked as resolved.
This comment was marked as resolved.
|
Hi @MikeMcC399 sorry for wait |
Allow writeFile() and appendFile() (and their FileHandle variants) to accept a Blob, converting it to a web ReadableStream via blob.stream(). Signed-off-by: Ahmed Elhor <aelhor90@gmail.com>
e8258fd to
70f0563
Compare
|
Thanks for the rebase! I started a new Jenkins CI run. See https://ci.nodejs.org/job/node-test-pull-request/79457/ |
|
@MikeMcC399 Thanks for starting the new Jenkins CI run. It completed successfully, and all checks are green. The branch is now rebased onto the latest main. Is anything else needed from my side, or is this ready to be landed? |
|
@aelhor The PR needs a new approval. Perhaps the original approvers: @IlyasShabi and / or @gurgunday could step in, approve and land the PR? |
GitHub is still showing "Review required" even though there was an approval.
|
There is something strange with how GitHub is handling this PR. After your latest approval, the PR should show as approved, but it doesn't. I've dismissed your approval, and ask you to approve again. I hope that will work. |

This PR addresses part of #61684 by adding
Blobsupport to thewriteFile/appendFilefamily:fsPromises.writeFile(data)fsPromises.appendFile(data)(also broadens the documenteddataunion from{string|Buffer}to the full set)filehandle.writeFile(data)filehandle.appendFile(data)Implementation
A
Blobis converted to a webReadableStreamviablob.stream()and consumed through the existing async-iterable path inwriteFile. This is a small, ~6-line change that reuses existing infrastructure. Native zero-copy via a C++ blob handle is explicitly deferred as future work.Tests
New
test/parallel/test-fs-writefile-blob.jscovers all 4 entry points, plus empty blob, binary blob, large blob (multi-chunk), explicitencodingoption, andAbortSignalcancellation.Scope: this covers the
writeFile/appendFileportion of the issue's first ask. Remaining items from #61684 (the positionalfilehandle.write(blob), and the webfs.createWritableStreamcounterpart) will be tracked as separate follow-up PRs to keep this focused.Refs: #61684