mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Update Puppeteer to version 20
This commit makes the following required changes: - Replace custom cache trimming logic in favor of the (per our request) newly added `trimCache` method in Puppeteer. Not only does this greatly simplify our code and prevents having to import Puppeteer internals, it's also necessary because Puppeteer 20 removed the `BrowserFetcher` API in favor of the new separate `@puppeteer/browsers` package. - Start browsers in series instead of in parallel. Parallel browser starts broke since Puppetter 19.1.0 and it turns out that it has never been supported officially, so it worked more-or-less by accident. Starting browsers in series is the supported way, is almost equally fast and ensures that we avoid any race conditions during startup. Finally, it also allows us to remove the `browserPromise` state on our session objects. Fixes #15865.
This commit is contained in:
parent
7f6f33da3c
commit
ca620e4cc9
3 changed files with 765 additions and 83 deletions
|
@ -41,7 +41,7 @@
|
|||
"postcss": "^8.4.23",
|
||||
"postcss-dir-pseudo-class": "^7.0.2",
|
||||
"prettier": "^2.8.8",
|
||||
"puppeteer": "^19.0.0",
|
||||
"puppeteer": "^20.4.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"streamqueue": "^1.1.2",
|
||||
"stylelint": "^15.6.2",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue