The link the troubleshooting docs is now fixed and links to the main branch, not the removed master branch. Fixes #6082.
Raw notes
16972ca - pull in master => main renaming
b537a67 - chore: mark v4.0.1
v4.0.0
Breaking change: Puppeteer no longer uses Node’s EventEmitter library
As part of our work to make Puppeteer agnostic of its environment we are removing the dependency on Node’s EventEmitter in favour of an event emitter that is not tied to Node. Under the hood we use Mitt, but we extend Mitt with additional functionality to match most of the methods that Node’s EventEmitter provides. The following methods have been removed from Puppeteer classes that extend EventEmitter:
eventNames()
getMaxListeners()
listeners(eventName)
prependListener
prependOnceListener
setMaxListeners(n)
rawListeners(eventName)
Additionally all the static methods on the EventEmitter class are not supported:
listenerCount(emitter, eventName)
defaultMaxListeners
errorMonitor
Node’s EventEmitter emitted a newListener event when a listener was added and a removeListener event when one was removed. These are not supported and will not be emitted.
New features and improvements
Send/receive debug logs are now split out into separate channels making the logs much clearer (#6017)
You can now call isJavaScriptEnabled() on a Puppeteer page to find out if JS is enabled on the page (#5993)
Bug fixes
Puppeteer is now much better at killing lingering browser processes, especially when you exit a test run with Ctrl-C (#6011)
Behind the scenes
We've started work on a new documentation system that uses TSDoc to generate documentation from our source code and have been porting documentation into code accordingly.
Raw notes
5493494 - chore: mark version 4.0.0
03ab1c1 - fix: improve Ctrl + C support (#6011)
b659969 - chore: migrate away from Node's EventEmitter (#5979)
6e060ce - fix(connection): separate send/receive debug logging (#6017)
Commits
f7f3f28 docs(new): Adds TSDoc to Tracing class (#6088)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps puppeteer from 3.3.0 to 4.0.1.
Release notes
Sourced from puppeteer's releases.
Commits
f7f3f28
docs(new): Adds TSDoc to Tracing class (#6088)4a4692c
Adds TSDoc to FileChooser (#6092)9224251
chore: tidy up TODO from TS tests migration (#6090)d41078f
docs(new): Adds TSDoc to Mouse class (#6086)34fd05f
Adds tsdoc for Touchscreen (#6087)73b9795
docs(new): add TSDoc comments to BrowserFetcher (#6078)37f6032
feat(api): removeemulateMedia
method (#6084)1ee379c
chore: avoid disabling prettier (#6079)381b0f8
chore: declaretoBeGolden
to TypeScript (#6080)70a900e
chore: fix ESLint violation and lessen rule strictness (#6081)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)