-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
buffer: add Blob.prototype.stream method and other cleanups #39693
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adds the `stream()` method to get a `ReadableStream` for the `Blob`. Also makes some other improvements to get the implementation closer to the API standard definition. Signed-off-by: James M Snell <jasnell@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com>
nodejs-github-bot
added
c++
Issues and PRs that require attention from people who are familiar with C++.
lib / src
Issues and PRs related to general changes in the lib or src directory.
needs-ci
PRs that need a full CI run.
labels
Aug 7, 2021
aduh95
reviewed
Aug 7, 2021
addaleax
requested changes
Aug 7, 2021
bmeck
reviewed
Aug 7, 2021
jasnell
added
the
semver-minor
PRs that contain new features and should be released in the next minor version.
label
Aug 7, 2021
This comment has been minimized.
This comment has been minimized.
I know this is incremental/experimental, but can we add ESM integration by adding integration with:
This also could be done as a follow on PR. |
addaleax
approved these changes
Aug 7, 2021
Yeah, definitely want to see that work done but let's definitely separate it out. |
This comment has been minimized.
This comment has been minimized.
benjamingr
approved these changes
Aug 8, 2021
bmeck
approved these changes
Aug 8, 2021
jasnell
added
the
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
label
Aug 8, 2021
jasnell
force-pushed
the
blob2
branch
2 times, most recently
from
August 8, 2021 18:26
3ad7f65
to
0ae84b1
Compare
aduh95
reviewed
Aug 8, 2021
Fixes: #39537 |
jimmywarting
reviewed
Aug 9, 2021
jimmywarting
reviewed
Aug 9, 2021
jimmywarting
reviewed
Aug 9, 2021
jimmywarting
reviewed
Aug 9, 2021
Signed-off-by: James M Snell <jasnell@gmail.com>
This comment has been minimized.
This comment has been minimized.
5 tasks
Qard
approved these changes
Aug 11, 2021
This comment has been minimized.
This comment has been minimized.
Landed in 87d6fd7...31d1d0c |
jasnell
added a commit
that referenced
this pull request
Aug 12, 2021
Adds the `stream()` method to get a `ReadableStream` for the `Blob`. Also makes some other improvements to get the implementation closer to the API standard definition. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
jasnell
added a commit
that referenced
this pull request
Aug 12, 2021
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
jasnell
added a commit
that referenced
this pull request
Aug 12, 2021
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
danielleadams
pushed a commit
that referenced
this pull request
Aug 16, 2021
Adds the `stream()` method to get a `ReadableStream` for the `Blob`. Also makes some other improvements to get the implementation closer to the API standard definition. Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
danielleadams
pushed a commit
that referenced
this pull request
Aug 16, 2021
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
danielleadams
pushed a commit
that referenced
this pull request
Aug 16, 2021
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #39693 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
author ready
PRs that have at least one approval, no pending requests for changes, and a CI started.
c++
Issues and PRs that require attention from people who are familiar with C++.
lib / src
Issues and PRs related to general changes in the lib or src directory.
semver-minor
PRs that contain new features and should be released in the next minor version.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There are a couple of changes here:
Blob
implementation to better match the spec.Blob.prototype.stream()
method to get aReadableStream
from aBlob
stream()
URL.createObjectURL()
,URL.revokeObjectURL()
, andbuffer.resolveObjectURL()
. TheURL.createObjectURL()
andURL.revokeObjectURL()
are standard Web Platform API./cc @bmeck