-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[api-minor] Remove the, in legacy
builds, bundled ReadableStream
polyfill
#14560
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
[api-minor] Remove the, in legacy
builds, bundled ReadableStream
polyfill
#14560
Conversation
7406ca6
to
de81b2f
Compare
…polyfill According to the MDN compatibility data, see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility, all browsers that we support have native `ReadableStream` implementations (since quite some time too). Hence only Node.js is now lagging behind w.r.t. `ReadableStream` support, and its experimental implementation doesn't really help us given the life-span of the LTS releases (see https://en.wikipedia.org/wiki/Node.js#Releases). It seems quite unfortunate to bundle a `ReadableStream` polyfill in the `legacy` builds when it's unnecessary in browsers, given its overall size, but fortunately we can avoid that by simply listing `web-streams-polyfill` as a dependency for the `pdfjs-dist` library.
de81b2f
to
b89595f
Compare
/botio xfatest |
From: Bot.io (Linux m4)ReceivedCommand cmd_xfatest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/9767cb99e143965/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_xfatest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/ac24ad566f1779c/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/9767cb99e143965/output.txt Total script time: 10.21 mins
Image differences available at: http://54.241.84.105:8877/9767cb99e143965/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/ac24ad566f1779c/output.txt Total script time: 12.48 mins
Image differences available at: http://54.193.163.58:8877/ac24ad566f1779c/reftest-analyzer.html#web=eq.log |
Good idea! |
According to the MDN compatibility data, see https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream#browser_compatibility, all browsers that we support have native
ReadableStream
implementations (since quite some time too).Hence only Node.js is now lagging behind w.r.t.
ReadableStream
support, and its experimental implementation doesn't really help us given the life-span of the LTS releases (see https://en.wikipedia.org/wiki/Node.js#Releases).It seems quite unfortunate to bundle a
ReadableStream
polyfill in thelegacy
builds when it's unnecessary in browsers, given its overall size, but fortunately we can avoid that by simply listingweb-streams-polyfill
as a dependency for thepdfjs-dist
library.