Skip to content

Commit

Permalink
Update Puppeteer to version 21.6.0 and force "CDP" protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
whimboo committed Dec 8, 2023
1 parent d564532 commit a067d38
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
37 changes: 20 additions & 17 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
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"postcss-discard-comments": "^6.0.0",
"postcss-nesting": "^12.0.1",
"prettier": "^3.1.0",
"puppeteer": "^21.5.2",
"puppeteer": "^21.6.0",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^15.11.0",
Expand Down
1 change: 1 addition & 0 deletions test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -908,6 +908,7 @@ function unitTestPostHandler(req, res) {
async function startBrowser({ browserName, headless, startUrl }) {
const options = {
product: browserName,
protocol: "cdp",
// Note that using `headless: true` gives a deprecation warning; see
// https://github.com/puppeteer/puppeteer#default-runtime-settings.
headless: headless === true ? "new" : false,
Expand Down

0 comments on commit a067d38

Please sign in to comment.