-
Notifications
You must be signed in to change notification settings - Fork 439
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
Update Streams API to match the latest IDL #886
Comments
Thanks for the ping. I'm indeed interested, I've even already started working on this in my fork, see this In your comment on #827, you mentioned that it wasn't appropriate to add Perhaps we could remove a bunch of types, properties and methods that are not yet supported in most browsers by adding them to If we do decide to update our type definitions, then should we also update all type names to match those from the Web IDL? For example, I had added a |
Yes, that's what I have done. It shouldn't cause any compatibility problem as those have never really existed.
I vote for removing and renaming but since it may cause a compat problem, @sandersn might have some idea. |
If we're going to remove everything that is not supported in at least two browser engines, there won't be a whole lot left. Looking at the compatibility data from MDN and the test results from wpt.fyi, we have:
We wouldn't even need to worry about renaming If we do decide to remove the Chromium-only classes/methods/properties from the DOM types, does that mean we have to bring back @types/whatwg-streams? 😕 We had deprecated that in favor of TypeScript's built-in definitions, see DefinitelyTyped/DefinitelyTyped#38785. |
Hang on, it looks like WebKit does have a fairly complete implementation? It looks like it's been worked on recently, but I can't seem to find whether this is enabled by default or not... Firefox also appears to be working on Maybe there's still hope? 😀 EDIT: Never mind, the WebKit implementation is outdated. For example, Firefox's |
I'm okay to keep Chromium-only types in this specific case as 1) keeping them will prevent compatibility issue and 2) we expect others to eventually get them. (Edit: I mean for types that doesn't need to be renamed. Otherwise they will cause compat issue anyway, so I vote for removing them.) Maybe we can first remove types that never implemented and think about others. |
I've opened a draft PR: #890. Hopefully, we can get a better idea of the impact by looking at what the changes will actually look like. 😁 |
Could we re-add the types of Edit: Just found out about #1362 |
whatwg/streams#1035 did a massive work to introduce Web IDL, and that made our IDL outdated in complex way. Updating our code to use the upstream IDL will ease getting further update from this spec.
Pinging @MattiasBuelens who might be interested.
The text was updated successfully, but these errors were encountered: