Skip to content

Commit

Permalink
Update to Puppeteer 9
Browse files Browse the repository at this point in the history
This is the latest version that supports Node.js 10. It comes with
a significantly newer Chromium version and many other internal changes,
including a fix for Apple M1 devices.

https://github.com/puppeteer/puppeteer/releases/tag/v6.0.0
* roll Chromium to 89.0.

https://github.com/puppeteer/puppeteer/releases/tag/v7.0.0
* roll Chromium to 90.0.
* `page.screenshot()` cuts by ViewPort size, not position.

https://github.com/puppeteer/puppeteer/releases/tag/v8.0.0
* renamed type ChromeArgOptions to BrowserLaunchArgumentOptions.
* renamed type BrowserOptions to BrowserConnectOptions.

https://github.com/puppeteer/puppeteer/releases/tag/v9.0.0
* roll Chromium to 91.0.
* filechooser: `FileChooser.cancel()` is now synchronous.
* fix install error on Apple M1 devices.

Fixes #184.
Closes #185.
  • Loading branch information
Krinkle committed Mar 12, 2022
1 parent f50ed47 commit 43f7139
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 79 deletions.
167 changes: 91 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -18,7 +18,7 @@
"dependencies": {
"eventemitter2": "^6.4.2",
"p-each-series": "^2.1.0",
"puppeteer": "^5.0.0"
"puppeteer": "^9.0.0"
},
"devDependencies": {
"difflet": "^1.0.1",
Expand Down
4 changes: 2 additions & 2 deletions tasks/qunit.js
Expand Up @@ -393,7 +393,7 @@ module.exports = function(grunt) {
// let the useless "JSHandle" through and rely on developers to stringify any
// useful information ahead of time, e.g. `console.warn(String(err))`.
//
// Ref https://pptr.dev/#?product=Puppeteer&version=v5.0.0&show=api-class-consolemessage
// Ref https://pptr.dev/#?product=Puppeteer&version=v9.0.0&show=api-class-consolemessage
var colors = {
'error': 'red',
'warning': 'yellow'
Expand All @@ -406,7 +406,7 @@ module.exports = function(grunt) {
}

// Surface uncaught exceptions
// Ref https://pptr.dev/#?product=Puppeteer&version=v5.0.0&show=api-event-pageerror
// Ref https://pptr.dev/#?product=Puppeteer&version=v9.0.0&show=api-event-pageerror
page.on('pageerror', function(err) {
eventBus.emit('error.onError', err);
});
Expand Down

0 comments on commit 43f7139

Please sign in to comment.