berstend / puppeteer-extra

💯 Teach puppeteer new tricks through plugins.
https://extra.community
MIT License
6.23k stars 731 forks source link

Support `headless: "new"` #853

Open nrathi opened 7 months ago

nrathi commented 7 months ago

Can you please update the types to support "new" as a headless option? Without it, this error is clogging my terminal:

Puppeteer old Headless deprecation warning:
  In the near feature `headless: true` will default to the new Headless mode
  for Chrome instead of the old Headless implementation. For more
  information, please see https://developer.chrome.com/articles/new-headless/.
  Consider opting in early by passing `headless: "new"` to `puppeteer.launch()`
  If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose.

I am using the following:

    "puppeteer": "^19.11.1",
    "puppeteer-extra": "^3.3.6",
    "puppeteer-extra-plugin-stealth": "^2.11.2"
romanyg commented 2 months ago

This error is not from puppeteer-extra wrapper, rather from the underlying installed puppeteer package. Just update your puppeteer version and this warning message will disappear.