This top level file has been removed from the Puppeteer package. The same data is exposed via puppeteer.errors, so swap to that:
// before
const errors = require('puppeteer/Errors');
// after
const puppeteer = require('puppeteer');
const errors = puppeteer.errors
Behind the scenes
We've continued our drive to migrate to a new documentation system using TSDoc. These docs are available in the new-docs directory on GitHub. These aren't ready for use just yet but we're making great progress. You can track this work in #6118.
We've continued improving our TypeScript definitions. Our tests are now migrated to TypeScript (#5830) so that we're consuming our own API. Work continues to ship built-in type definitions in a future version. You can track this work in #6124.
We've started restructuring Puppeteer to work towards being able to better support an environment agnostic Puppeteer module. You can track this work in #6125.
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
Bumps puppeteer from 4.0.1 to 5.0.0.
Release notes
Sourced from puppeteer's releases.
Commits
6d06ade
chore: mark v5.0.0 (#6143)29f7e16
chore(docs): reduce warnings when generating docs (#6138)221d172
chore: add typecheck command (#6140)6474edb
feat(types): add types for$eval
(#6135)8370ec8
feat(types): add (and fix)evaluateHandle
types (#6130)3c0dc45
chore: update Windows skipped tests. (#6133)9f19862
chore(docs): mark JSHandle properties as internal (#6126)8026ca9
docs(api): fix overview diagram for pptr.dev (#6128)9d79cc8
chore: fix Firefox install checker (#6129)1f5e333
chore: Don't store revisions inpackage.json
(#6109)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