Skip to content
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 handling of browser output for Puppeteer ^23.0.0 #870

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

bluesheep100
Copy link

@bluesheep100 bluesheep100 commented Aug 13, 2024

Puppeteer modified how they return stream data, for browser compatibility reasons (#12823)
After this update, a UInt8Array byte stream is returned, instead of a Buffer.

This PR adjusts the handling of this output to be compatible with v23's output. All tests appear green, save for three which fail due to the requests list not being populated. I believe I know the cause, and will submit a PR to fix it.

Tests remain green when running Puppeteer 22.15.0 as well, so this fix should be backwards compatible with older versions that returned a Buffer rather than UInt8Array.

@freekmurze freekmurze merged commit dbc8c71 into spatie:main Aug 20, 2024
1 check passed
@freekmurze
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants