-
Notifications
You must be signed in to change notification settings - Fork 421
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
Use BCD to autoremove unimplemented features #915
Conversation
baselines/webworker.generated.d.ts
Outdated
@@ -2737,29 +2708,6 @@ declare var ReadableStream: { | |||
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>; | |||
}; | |||
|
|||
interface ReadableStreamBYOBReader { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MattiasBuelens, could you review the Streams part of this removal? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnderlyingByteSource
, ReadableByteStreamControllerCallback
and this ReadableStream
constructor overload should be removed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hang on, where did WritableStream
and TransformStream
go? There are still types referencing them (like GenericTransformStream
and ReadableStream.pipeTo
).
(I understand why they would need to be removed, but it still makes me sad to see them go... 😞)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The bright side is that this patch only disables some of your work but not removes them all. It can be enabled again when browsers implement them 👍
(Disabling them should also boost #890 👀👀)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, WritableStream and TransformStream are still alive as there is at least a single implementation and thus not covered here. This patch is intentionally only removes totally unimplemented ones to reduce the diff size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Streams changes LGTM. 👍 Happy to see WritableStream
and TransformStream
are still alive! 😁
I think it's best to wait with landing #890 until after this PR lands. I'll see if I can rebase my PR to not completely remove the readable byte stream definitions, and instead rely on your work to auto-remove them. 🙂
Oops, test fails 👀 |
@vinyldarkscratch this PR is of interest to our ongoing project. In particular the list of BCD bugs in #915 (comment) are things that can hopefully be fixed by using https://github.com/foolip/mdn-bcd-collector. Where they can't, that might reveal a deficiency in our approach. |
Changes are too big, maybe better to remove things progressively. I'll make separate PRs. |
5903298
to
f1d41bc
Compare
@orta and I like this idea -- in fact, we'd rather take this PR than the dozen or so individual-removal PRs.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving the code change -- couple of open questions about the resulting DOM changes.
|
Cool, IMO we should let's get this in and into the compiler then 👍🏻 |
I'm going to port this over to Typescript right now and will tag you (@orta and @saschanaz) on the PR when it's ready. |
OK, it is merged into TS now. |
This patch focuses only on removing totally unimplemented features, and defers everything else:
forceKeepAlive
is quite huge now but it eventually will be removed once reevaluation ends.