You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the current DOM types appear to be outdated (technically, misaligned from what's being commonly shipped by browsers), so it's not possible to get tests to pass for some modules which actually are compatible in that sense.
Problem
The above described scenario prevents marking some modules as being "browser compatible" and prevents their discovery as such. I've included links to examples at the end of this message.
Candidate modules, grouped by related compiler diagnostic:
yep, we probably should. Major missing structs are ReadableByteStreamController & ReadableStreamBYOBReader
jsejcksn
changed the title
Some modules cannot be marked as "browser compatible" because of outdated TS DOM types
tracking: Some modules cannot be marked as "browser compatible" because of outdated TS library types
Mar 7, 2022
Context
The current browser compatibility CI test uses TypeScript's native DOM types when type-checking modules. This is appropriate.
However, the current DOM types appear to be outdated (technically, misaligned from what's being commonly shipped by browsers), so it's not possible to get tests to pass for some modules which actually are compatible in that sense.
Problem
The above described scenario prevents marking some modules as being "browser compatible" and prevents their discovery as such. I've included links to examples at the end of this message.
Candidate modules, grouped by related compiler diagnostic:
ReadableStream
lacks[Symbol.asyncIterator]()
(missing in latest snapshot, updated 2022-03-18)Ref: refactor: mark modules as browser compatible #1972 (comment)
Affects:
streams/merge.ts
ReadableStream
lacks any bytes & BYOB related typings (missing in latest snapshot, updated 2022-03-05, latest snapshot, update 2022-03-05)Ref: feat: streams based
Buffer
#1970 (comment)Affects:
streams/buffer.ts
window.crypto
lacksrandomUUID()
(missing in4.5.5
, available in4.6.2
)Ref: refactor: mark modules as browser compatible #1972 (comment)
Affects:
uuid/mod.ts
uuid/v4.ts
The text was updated successfully, but these errors were encountered: