chore(deps): update dependency puppeteer to v5 (master) #2666
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^1.20.0
->^5.0.0
Release Notes
puppeteer/puppeteer
v5.0.0
Compare Source
Breaking changes
Removal of
page.emulateMedia
(#6084)This method was deprecated and is now removed from Puppeteer. Swap to
page.emulateMediaType
which behaves identically.Removal of
require('puppeteer/DeviceDescriptors')
(#6043)This top level file has been removed from the Puppeteer package. The same data is exposed via
puppeteer.devices
, so swap to that:Removal of
require('puppeteer/Errors')
(#6043)This top level file has been removed from the Puppeteer package. The same data is exposed via
puppeteer.errors
, so swap to that: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.
Raw notes
85d8dbf
- chore: mark v5.0.029f7e16
- 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)123c377
- docs(new): Add TSDoc to Coverage class (#6106)3760302
- docs(api): fix broken links in api.md (#6113)adeffba
- docs(new): migrate Page.ts to TSDoc (part 0 / 2) (#6104)df96f16
- docs(new): migrate JSHandle docs to TSDoc (#6102)1c0009d
- chore(agnostic): ship CJS and ESM builds (#6095)46fc6ca
- feat(types): improve typing of.evaluate()
(#6096)a4d12a2
- chore: removehelper.promisify
(#6100)5b6d2bf
- docs(new): add TSDoc comments to Keyboard (#6099)4696f7a
- docs(new): migrate HTTPResponse docs to TSDoc (#6085)b993adb
- chore(agnostic): Migrate DOMWorld (#6054)c149034
- chore: remove hardcoded?hl=en
from docs (#6097)48c5a8e
- docs(new): add TSDoc comments to Puppeteer (#6032) (#6094)f1f7339
- docs(new): add TSDoc comments to Puppeteer (#6032)a46c78f
- docs(new): Adds TSDoc to Tracing class (#6088)60904da
- docs(new): migrate FileChooser docs to TSDoc (#6092)7855519
- chore: tidy up TODO from TS tests migration (#6090)f481922
- docs(new): Adds TSDoc to Mouse class (#6086)2ad42dc
- docs(new): migrate Touchscreen docs to TSDoc (#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)fdc6fda
- docs: fix effect -> affect typos (#5985)4659ee8
- docs(new): add TSDoc comments to BrowserContext (#6066)ccae546
- docs(new): migrate Browser docs to TSDoc (#6070)28797de
- chore: migrate tests to TypeScript (#6075)2090676
- docs: fix broken link to DeviceDescriptors.ts (#6076)6657364
- docs(new): migrate ElementHandle to TSDoc (#6073)7025f1c
- docs(new): migrate Target to TSDoc (#6067)819afbe
- docs(new): migrate ConsoleMessage docs to TSDoc (#6065)983a7b6
- docs(new): migrate CDPSession to TSDoc (#6064)1cf3f06
- docs(new): migrate TimeoutError to TSDoc (#6062)ace31d6
- chore: pin TSDoc related dependencies (#6063)750f5ee
- docs: fix broken link to USKeyboardLayout file (#6059)e7b91a7
- chore: enforce a max line length on comments (#6055)7978315
- docs(new): migrate SecurityDetails docs to TSDoc (#6053)7a4170f
- chore: remove top level errors and DeviceDescriptors (#6043)5ff698e
- chore: moveindex.js
intosrc
and TS-ify (#6049)940a570
- chore: exclude api.ts from dependency graph (#6052)759b280
- chore: upgrade to Mocha v8 (#5997)9522f80
- chore: createcommon
directory (#6042)f6af7b8
- chore: fix dependency chart generation (#6039)90b0934
- chore: createnode
directory for Node-only files (#6041)ce34c0a
- fix:page.goto
options type should be optional (#6038)44402b7
- feat(new-docs): add tsdoc comments toWebWorker
(#6029)64c9c70
- chore: add dependency chart generation as script (#6034)547f4ea
- chore: create new debug module (#6028)56742eb
- chore: bump version to v4.0.0-post (#6024)e4de5f1
- chore: moveassert
into its own module (#6021)f1ec6a3
- chore: update references to branch names (#6022)v4.0.1
Compare Source
Bug fixes
main
branch, not the removedmaster
branch. Fixes #6082.Raw notes
16972ca
- pull in master => main renamingb537a67
- chore: mark v4.0.1v4.0.0
Compare Source
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 aremoveListener
event when one was removed. These are not supported and will not be emitted.New features and improvements
isJavaScriptEnabled()
on a Puppeteerpage
to find out if JS is enabled on the page (#5993)Bug fixes
Ctrl-C
(#6011)Behind the scenes
Raw notes
5493494
- chore: mark version 4.0.003ab1c1
- fix: improve Ctrl + C support (#6011)b659969
- chore: migrate away from Node's EventEmitter (#5979)6e060ce
- fix(connection): separate send/receive debug logging (#6017)c701ea1
- chore: fix npm test command (#6010)398c16d
- chore: fix docs linter (#6009)4205ff7
- docs(api): remove subheader for non-namespace3d56a9e
- chore: add test configuration options for running tests against multiple products (#5964)5c91dfb
- chore: moveindex.js
intosrc
(#6007)8a099a0
- docs: replace @return with @returns (#6006)23f18d8
- docs(new): start documenting the Page class (#6001)c1d7be3
- docs(api): add copy-pasting text example to Mouse class (#6000)91eb745
- chore: ensure new-docs are up to date (#5994)b86ff21
- feat(api): add Page.isJavaScriptEnabled + mark properties as private (#5993)354f942
- feat: improve error reporting on aarch64 (#5167)9c656d4
- chore: removeprefers-color-scheme: no-preference
(#5990)83c29d9
- chore: cleanlib
when running tsc (#5982)ca8b0d6
- feat(new-docs): migrate Dialog documentation to TSDoc (#5981)0b3d52a
- feat(new-docs): add TSDoc comments toAccessibility
(#5971)086c089
- chore: commit base new-docs (#5973)0032420
- chore: Introduce API Extractor and start generating documentation (#5967)ef63c64
- test: check installation with Firefox (#5965)c2d32b1
- chore: rename image assetsa84e07c
- chore: increase readability of Puppeteer diagram (#5947)58d1eab
- chore: mark version v3.3.0-post (#5960)v3.3.0
Compare Source
Highlights
Behind the scenes
Response
class was renamedHTTPResponse
to avoid a clash with the TSResponse
type. We don't expose this class on the main Puppeteer instance so this shouldn't affect any of your code.Worker
toWebWorker
to avoid a clash with the TSWorker
type.Raw Notes
34c0f9b
- chore: mark version v3.3.0309d811
- chore: Revert Mitt due to breaking changes (#5952)81e3248
- chore: Defer Windows FF tests for longer (#5954)b874cac
- chore: rename Worker to WebWorker (#5941)7862484
- chore: update request and response references in docs (#5942)232def0
- chore: renameResponse
toHTTPResponse
(#5940)cfd72ac
- chore: bump version to v3.2.0-post (#5938)v3.2.0
Compare Source
Highlights
We now support emulating vision deficiency types within Puppeteer using
page.emulateVisionDeficiency
. You can read more about these on the DevTools update blog post.We now use Mitt as the Event Emitter that backs many of Puppeteer's classes rather than the EventEmitter module that ships with Node. This is potentially a breaking change if you rely on some of the less popular EventEmitter methods as Puppeteer's EventEmitter does not support the entire suite of NodeJS EventEmitter functions. We think it's unlikely anyone has relied on these; we were able to swap out the EventEmitter in Puppeteer without any unit tests needing to change.
Puppeteer now recognises webviews as regular pages which means you can control them just like you would control a regular page.
Behind the scenes
Request
class has been renamed toHTTPRequest
to avoid a clash with TypeScript'sRequest
type. We'll be making similar changes toResponse
andWorker
. This is not a breaking change as Puppeteer doesn't directly expose these classes so you shouldn't be referring to them by name in your code.Raw Notes
1d4d25a
- chore: use Mitt as the Event Emitter (#5907)a2ba6f0
- feat: recognize webviews as regular pages (#5905)8e8a9df
- chore: rename Request class to HTTPRequest (#5934)9737059
- chore: remove doclint generate_types code (#5932)7eab7f8
- feat(api): add page.emulateVisionDeficiency(type) (#5901)24ac11e
- chore: fix undefinedrm
in mocha-utils (#5920)6cfe142
- chore: don't use expect within Promises (#5466) (#5473)dfb2e60
- chore: stop Protocol types being globally available (#5899)d8e0557
- chore: update Travis to run latest macOS and fix HTTPS test (#5903)9a08d31
- chore: error if coverage couldn't find the given class (#5863)caaf4d2
- fix: support async functions as an argument for waitForFunction (#5682)e6c22da
- chore: bump version to v3.1.0-post (#5884)v3.1.0
Compare Source
Big changes
SecurityDetails.subjectAlternativeNames()
)Raw notes
8ba3675
- chore: mark version v3.1.0 (#5883)a17bd89
- feat: add securityDetails.subjectAlternativeNames() #5628 (#5881)e823289
- feat(chromium): roll Chromium to r756035 (#5879)ad3613d
- docs(contributing): clarify list of Chromium versions (#5878)dc26b8d
- docs(examples): add cucumber-puppeteer-example for integration testing (#5875)3e76554
- chore: fix async dialog specs when they fail (#5859)b2552e4
- chore: restore page.setUserAgent test (#5868)39f1b13
- chore: extractRequest
andResponse
into its own module (#5861)b510c35
- chore: fetch Firefox from JSON source instead of RegExp (#5864)69c38fc
- chore: extractConsoleMessage
andFileChooser
into its own module (#5856)0aba6df
- chore: force Mocha to exit on CI (#5862)9368edb
- chore: upgrade TypeScript to 3.9 (#5860)5f42547
- chore: extractSecurityDetails
into its own module (#5858)f5d2597
- chore: add running TSC to test README (#5852)c6d01c9
- chore: extractBrowserRunner
into its own module (#5850)b38bb43
- Warn when given unsupported product name. (#5845)6099272
- chore: add @types/proxy-from-env (#5831)5343c7a
- chore: private-ise src/Accessibility.ts (#5832)ce09742
- feat: add more options to check_availability script (#5827)5103540
- chore: add command to run eslint with--fix
flag (#5829)49ce659
- chore: remove src/TaskQueue (#5826)4fdb1e3
- chore: add Prettier (#5825)ae576af
- chore: mark v3.0.4-post (#5824)v3.0.4
Compare Source
Highlights
Behind the scenes
Raw notes
c214d20
- chore: mark version v3.0.4 (#5823)17bb660
- chore: remove unused mime-types dependency (#5819)70340de
- chore: add Node.js 12 & 14 to CI (#5821)70d5c7f
- fix: remove node@14 specific extract timeout (#5816)5115482
- chore: bump version to 3.0.3-post (#5814)v3.0.3
Compare Source
Highlights
puppeteer.__experimental_registerCustomQueryHandler
(#5753). This functionality is so highly experimental it’s not even documented in the API docs — on purpose! See this comment for instructions on how to try it out. We are hoping to gather feedback on whether this API is useful for you, and how we could improve it. Please let us know what you think!Behind the scenes
src/
is now 100% TypeScript! This now lays a baseline to start working on improving Puppeteer docs by automatically generating them, shipping type definitions built in (for now we recommend@types/puppeteer
).Raw notes
b2488eb
- chore: mark version v3.0.3ae7483d
- chore: remove src/externs.d.ts (#5811)de4f08d
- chore: migrate src/Page.js to TypeScript (#5809)eed7d94
- chore: improve readability for path strings (#5805)d8d1f6f
- chore: migrate src/api.js to TypeScript (#5808)890c215
- chore: migrate src/Puppeteer to TypeScript (#5789)209e25c
- docs(readme): syntax-highlight nested snippets in debugging section (#5799)53d6fab
- docs(api.md): improve emulateMediaFeatures section (#5807)ec91eca
- chore: migrate src/Launcher to TypeScript (#5775)5518bac
- chore: update how we track coverage during unit tests (#5779)4a47867
- feat: add support for string-based custom queries (#5753)c212126
- chore: turn on Travis retries (#5787)3116bb9
- chore: log product + binary on unit test runs (#5785)541281b
- chore: fix doclint issues (#5784)32c8c69
- chore: enable mocha retries (#5782)5fb399d
- docs(contributing): update per recent changes (#5778)8654d63
- chore: migrate src/NetworkManager to TypeScript (#5774)862eea8
- chore: disable flaky setUserAgent test in Firefox (#5780)a8908cf
- chore: update incorrect link for DeviceDescriptors (#5777)af2e458
- chore: migrate src/Target to TypeScript (#5771)8a5008e
- chore: migrate src/FrameManager to TypeScript (#5773)c5c97b0
- chore: remove DOMWorld definition from externs.d.ts (#5767)da6e6c0
- chore: migrate src/EmulationManager to TypeScript (#5766)0157844
- chore: migrate src/DOMWorld to TypeScript (#5764)d69fbb9
- chore: Enforce array type styles in TypeScript (#5765)1ccfbcb
- chore: enforce naming of errors in catch blocks (#5763)3bf9bd1
- chore: enforce src/protocol.d.ts is in sync (#5762)06d62c0
- chore: migrate src/Browser to TS (#5761)e03113e
- chore: Update protocol.d.ts (#5760)8ddf4f3
- chore: bump version to 3.0.2-post (#5759)v3.0.2
Compare Source
Highlights
uploadFile
now throws for non-existent files (#5733)Behind the scenes
src
directory being 100% TypeScript.Raw notes
4e8f091
- chore: mark version v3.0.23911836
- chore: small CI tidy ups (#5751)5e2a029
- chore: use Node's promisify function (#5748)1b9d9e9
- chore: log useful error for Node v14 breakage (#5732)a7d2485
- chore: split out CI into unit tests + extra checks (#5749)3ed2f6b
- chore: remove puppeteer-web (#5750)1358b45
- chore: migrate src/LifecycleWatcher (#5734)79e82e5
- fix: make uploadFile throw for non-existent files (#5733)1a4e260
- chore: migrate src/BrowserFetcher to TypeScript (#5727)8509f46
- chore: migrate src/Accessibility to TypeScript (#5726)930cc32
- chore: migrate src/Errors to TypeScript (#5725)30aff82
- chore: migrate src/Events to TypeScript (#5724)1823828
- chore: migrate src/Tracing to TypeScript (#5723)3050196
- fix: update clipboard read write permissions after upstream change (#5721)0731049
- chore: update pngjs to 5.0.0 and jpeg-js to 0.3.7 (#5676)ddb8ba1
- chore: tidy up and de-duplicate Travis CI config (#5716)9d297f0
- chore: bump version to 3.0.1-post (#5717)be8f8a2
- chore: add macOS to Travis CI (#5708)133abb0
- chore: migrate src/Input to typescript (#5710)11bc5a6
- chore: migrate src/Worker to typescript (#5715)v3.0.1
Compare Source
Highlights
libgbm-dev
dependency that's needed for Linux builds (#5667, #5693)Behind the scenes
src/
are now TypeScript files. We're working towards a 100% TS codebase which will enable us (amongst other things) to ship high-quality type definitions for TypeScript users.Raw notes
6029fdd
- chore: mark version v3.0.1 (#5709)29ebd0b
- chore: migrate src/ExecutionContext (#5705)69bfa80
- docs(api): fix typo (#5706)8d5d76e
- chore: migrate src/JSHandle to TS (#5703)42893d8
- chore: migrate src/coverage to TypeScript (#5702)e3922ea
- chore: enforce consistent spacing around object curlys (#5700)3600f2f
- chore: migrate src/helpers.ts to ESM (#5699)f13c30a
- chore: migratesrc/USKeyboardLayout
to typescript (#5695)a614bc4
- chore: migratesrc/Connection
to TypeScript (#5694)376d234
- chore: migrate src/WebSocketTransport to TypeScript (#5696)5c839f5
- chore(docker): add missing libgbm1 dependency (#5693)e7a32a8
- chore: migratesrc/pipetransport
to typescript (#5692)4134b54
- chore: migratesrc/helper
to typescript (#5689)c32b049
- chore: deletesrc/MultiMap
(#5690)6638a24
- chore: migratesrc/timeoutsettings
to typescript (#5691)ad6c57a
- docs: fix DeviceDescriptor link (#5683)c4fe4e4
- chore(ci): re-enable tests on Windows (#5637)49ca00f
- docs(contributing): update testing section (#5657)1a57ba2
- chore: migrate TaskQueue to TypeScript (#5658)ef3befa
- chore: manage published files viafiles
option (#5659)35fc654
- docs: change the Alpine Docker example to use env instead of launch option (#5666)20c22ad
- chore: fix installing from GitHub URL (#5669)46ef9f7
- docs(troubleshooting): list libgbm-dev dependency (#5667)532ae57
- fix(JSHandle): restore file upload to its old behavior (#5655)3e4c8c9
- chore(typescript): migrate src/Dialog (#5639)a9f6a26
- chore: log reminder about tsc if DocLint fails locally (#5652)37bae17
- docs(contributing): update npm dist tags section (#5650)80348dc
- chore: bump version to v3.0.0-post (#5649)v3.0.0
Compare Source
Big changes
PUPPETEER_PRODUCT=firefox npm install
. Also, there’s now an example showing how to launch Firefox with Puppeteer.elementHandle.uploadFile(...filePaths)
now triggers achange
event, matching the old behavior in Puppeteer v1.20.0. (#5389)Behind the scenes
Raw notes
6760b92
- chore: mark version v3.0.0 (#5642)3387aab
- feat(chromium): roll Chromium to r737027 (#5644)c5df490
- docs(readme): update cross-browser FAQ (#5634)35989a7
- fix: set revision based on PUPPETEER_PRODUCT (#5643)d817ae5
- fix: update preferred revision after Launcher is created (#5640)df81250
- chore: update ws library (#5638)2529ee6
- chore(eslint): add eslint typescript linting (#5635)88d843d
- feat(TypeScript): move DeviceDescriptors to TS (#5595)1ce4fe7
- chore(deps): update extract-zip to version 2 (#5610)0bcc5a7
- chore: migrate remaining tests to Mocha (#5616)17cd870
- chore: migrate unit tests to Mocha (#5600)262da92
- chore(test): re-enable Firefox testing on CI (#5608)83d9d53
- chore: update CI to run Travis + Linux + Chromium (#5583)21c2d31
- docs(api): update another emulateMediaType example (#5607)fefa8ca
- docs(api): update emulateMediaType example (#5606)bbdaf92
- docs(README): remove unused badgesefe561e
- chore: fix DocLint method diffing (#5594)841c2a5
- chore: fix emulateMedia tests (#5593)8fa034b
- chore: remove flakiness dashboard (#5592)4ee2c43
- chore: fix Page.emulateMedia doclint failure (#5584)a99a3cf
- chore: skip failing cookie tests in Firefox (#5575)88446df
- chore: fix missedsrc/
vslib/
documentation (#5591)b3b0dc5
- docs: replace invalid device descriptors link (#5589)99ecdba
- docs: fix simple typo (#5585)7f7887e
- docs(puppeteer-firefox): add deprecation warning to README (#5502)6522e4f
- chore: Use expect for assertions (#5581)4c41421
- chore: run Chromium on Node.js 12 on Travis (#5582)f434684
- chore: fix link to source files in documentation (#5576)2b52b86
- chore: remove travis-autodeploy (#5580)7a2a41f
- chore: move code to src/ and emit with TypeScript (#5568)c82b556
- docs: connect works with any supported browser (#5572)d678013
- chore: upgrade TypeScript to 3.8 (#5566)3dff24a
- chore: upgrade eslint to v6.8.0 (#5563)4b0fd8b
- chore: upgrade to TypeScript 3.7 (#5562)29b626a
- chore: upgrade TypeScript to 3.6 (#5559)5e8d79b
- chore: upgrade to TypeScript 3.5 (#5556)b9240b1
- chore: bump rimraf to v3.0.2 (#5431)067662c
- Emit change event on uploadFile calls (#5389)a3d1536
- Bugfix: Docker build failure (#5400)33f1967
- (feat) Add option to fetch Firefox Nightly (#5467)807fbbd
- chore: drop Node.js v8 support (#5365)0b1a9ce
- chore: Replace Juggler with Firefox Nightly in CI (#5395)0b1777e
- docs(api) Fix url (#5367)5ffcde2
- chore: bump version to v2.1.1.-post ([#Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.