Repository navigation
lib: add FileAPI support - #67277
lib: add FileAPI support#67277avivkeller wants to merge 3 commits into
Conversation
Signed-off-by: avivkeller <me@aviv.sh>
|
Review requested:
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #67277 +/- ##
==========================================
+ Coverage 90.68% 90.70% +0.01%
==========================================
Files 797 799 +2
Lines 279367 280464 +1097
Branches 53737 53874 +137
==========================================
+ Hits 253344 254387 +1043
- Misses 16319 16354 +35
- Partials 9704 9723 +19
🚀 New features to boost your workflow:
|
Signed-off-by: avivkeller <me@aviv.sh>
jasnell
left a comment
There was a problem hiding this comment.
Please mark initially as experimental.
| A browser-compatible implementation of {FileReaderSync} from the [File API][]. | ||
| It is exposed only inside a [Web Worker][] (`--experimental-web-worker`), | ||
| matching `[Exposed=(DedicatedWorker,SharedWorker)]`. It is not available on | ||
| the main thread or in threads created with `node:worker_threads`. |
There was a problem hiding this comment.
I question whether this restriction is actually necessary in Node.js. Specifically the "It is not available on the main thread" or in worker threads.
The restrictions that apply to the browser do not necessarily apply here.
There was a problem hiding this comment.
This was marked resolved but it's still limited to web workers. The question is still open here.
|
A separate AI-agent review flagged the following additional items:
|
Signed-off-by: avivkeller <me@aviv.sh>
| added: REPLACEME | ||
| --> | ||
|
|
||
| > Stability: 1 - Experimental |
Adds support for the following FileAPI interfaces:
FileReaderFileReaderSyncProgressEvent