chore(deps): update dependency puppeteer to v4 (#1876)
chore(deps): update dependency puppeteer to v4 (#1876)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [puppeteer](https://togithub.com/puppeteer/puppeteer) | devDependencies | major | [`^3.0.0` -> `^4.0.0`](https://renovatebot.com/diffs/npm/puppeteer/3.3.0/4.0.0) |

---

### Release Notes

<details>
<summary>puppeteer/puppeteer</summary>

### [`v4.0.0`](https://togithub.com/puppeteer/puppeteer/releases/v4.0.0)

[Compare Source](https://togithub.com/puppeteer/puppeteer/compare/v3.3.0...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 ([#&#8203;6017](https://togithub.com/puppeteer/puppeteer/issues/6017))
-   You can now call `isJavaScriptEnabled()` on a Puppeteer `page` to find out if JS is enabled on the page ([#&#8203;5993](https://togithub.com/puppeteer/puppeteer/issues/5993)) 

#### Bug fixes

-   Puppeteer is now much better at killing lingering browser processes, especially when you exit a test run with `Ctrl-C` ([#&#8203;6011](https://togithub.com/puppeteer/puppeteer/issues/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`](https://togithub.com/puppeteer/puppeteer/commit/5493494) - chore: mark version 4.0.0
[`03ab1c1`](https://togithub.com/puppeteer/puppeteer/commit/03ab1c1) - fix: improve Ctrl + C support ([#&#8203;6011](https://togithub.com/puppeteer/puppeteer/issues/6011))
[`b659969`](https://togithub.com/puppeteer/puppeteer/commit/b659969) - chore: migrate away from Node's EventEmitter ([#&#8203;5979](https://togithub.com/puppeteer/puppeteer/issues/5979))
[`6e060ce`](https://togithub.com/puppeteer/puppeteer/commit/6e060ce) - fix(connection): separate send/receive debug logging ([#&#8203;6017](https://togithub.com/puppeteer/puppeteer/issues/6017))
[`c701ea1`](https://togithub.com/puppeteer/puppeteer/commit/c701ea1) - chore: fix npm test command ([#&#8203;6010](https://togithub.com/puppeteer/puppeteer/issues/6010))
[`398c16d`](https://togithub.com/puppeteer/puppeteer/commit/398c16d) - chore: fix docs linter ([#&#8203;6009](https://togithub.com/puppeteer/puppeteer/issues/6009))
[`4205ff7`](https://togithub.com/puppeteer/puppeteer/commit/4205ff7) - docs(api): remove subheader for non-namespace
[`3d56a9e`](https://togithub.com/puppeteer/puppeteer/commit/3d56a9e) - chore: add test configuration options for running tests against multiple products ([#&#8203;5964](https://togithub.com/puppeteer/puppeteer/issues/5964))
[`5c91dfb`](https://togithub.com/puppeteer/puppeteer/commit/5c91dfb) - chore: move `index.js` into `src` ([#&#8203;6007](https://togithub.com/puppeteer/puppeteer/issues/6007))
[`8a099a0`](https://togithub.com/puppeteer/puppeteer/commit/8a099a0) - docs: replace [@&#8203;return](https://togithub.com/return) with [@&#8203;returns](https://togithub.com/returns) ([#&#8203;6006](https://togithub.com/puppeteer/puppeteer/issues/6006))
[`23f18d8`](https://togithub.com/puppeteer/puppeteer/commit/23f18d8) - docs(new): start documenting the Page class ([#&#8203;6001](https://togithub.com/puppeteer/puppeteer/issues/6001))
[`c1d7be3`](https://togithub.com/puppeteer/puppeteer/commit/c1d7be3) - docs(api): add copy-pasting text example to Mouse class ([#&#8203;6000](https://togithub.com/puppeteer/puppeteer/issues/6000))
[`91eb745`](https://togithub.com/puppeteer/puppeteer/commit/91eb745) - chore: ensure new-docs are up to date ([#&#8203;5994](https://togithub.com/puppeteer/puppeteer/issues/5994))
[`b86ff21`](https://togithub.com/puppeteer/puppeteer/commit/b86ff21) - feat(api): add Page.isJavaScriptEnabled + mark properties as private ([#&#8203;5993](https://togithub.com/puppeteer/puppeteer/issues/5993))
[`354f942`](https://togithub.com/puppeteer/puppeteer/commit/354f942) - feat: improve error reporting on aarch64 ([#&#8203;5167](https://togithub.com/puppeteer/puppeteer/issues/5167))
[`9c656d4`](https://togithub.com/puppeteer/puppeteer/commit/9c656d4) - chore: remove `prefers-color-scheme: no-preference` ([#&#8203;5990](https://togithub.com/puppeteer/puppeteer/issues/5990))
[`83c29d9`](https://togithub.com/puppeteer/puppeteer/commit/83c29d9) - chore: clean `lib` when running tsc ([#&#8203;5982](https://togithub.com/puppeteer/puppeteer/issues/5982))
[`ca8b0d6`](https://togithub.com/puppeteer/puppeteer/commit/ca8b0d6) - feat(new-docs): migrate Dialog documentation to TSDoc ([#&#8203;5981](https://togithub.com/puppeteer/puppeteer/issues/5981))
[`0b3d52a`](https://togithub.com/puppeteer/puppeteer/commit/0b3d52a) - feat(new-docs): add TSDoc comments to `Accessibility` ([#&#8203;5971](https://togithub.com/puppeteer/puppeteer/issues/5971))
[`086c089`](https://togithub.com/puppeteer/puppeteer/commit/086c089) - chore: commit base new-docs ([#&#8203;5973](https://togithub.com/puppeteer/puppeteer/issues/5973))
[`0032420`](https://togithub.com/puppeteer/puppeteer/commit/0032420) - chore: Introduce API Extractor and start generating documentation ([#&#8203;5967](https://togithub.com/puppeteer/puppeteer/issues/5967))
[`ef63c64`](https://togithub.com/puppeteer/puppeteer/commit/ef63c64) - test: check installation with Firefox ([#&#8203;5965](https://togithub.com/puppeteer/puppeteer/issues/5965))
[`c2d32b1`](https://togithub.com/puppeteer/puppeteer/commit/c2d32b1) - chore: rename image assets
[`a84e07c`](https://togithub.com/puppeteer/puppeteer/commit/a84e07c) - chore: increase readability of Puppeteer diagram ([#&#8203;5947](https://togithub.com/puppeteer/puppeteer/issues/5947))
[`58d1eab`](https://togithub.com/puppeteer/puppeteer/commit/58d1eab) - chore: mark version v3.3.0-post ([#&#8203;5960](https://togithub.com/puppeteer/puppeteer/issues/5960))

</details>

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#GoogleCloudPlatform/nodejs-docs-samples).
GoogleCloudPlatform/nodejs-docs-samples,GoogleCloudPlatform/nodejs-docs-samples,GoogleCloudPlatform/nodejs-docs-samples,GoogleCloudPlatform/nodejs-docs-samples