Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

fix(deps): update dependency puppeteer to v5 #3247

Merged

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Jul 2, 2020

This PR contains the following updates:

Package Type Update Change
puppeteer dependencies major ^4.0.0 -> ^5.0.0

Release Notes

puppeteer/puppeteer

v5.2.0

Compare Source

Feature changes

The experimental API for registering custom query handlers is slightly changed such that one registers query handlers containing two strategies: one for querying a single element and one for querying all matching elements.

The API for custom query handlers is unchanged:

__experimental_registerCustomQueryHandler(name: string, queryHandler: QueryHandler): void;
__experimental_unregisterCustomQueryHandler(name: string): void;
__experimental_customQueryHandlers(): Map<string, QueryHandler>;
__experimental_clearQueryHandlers(): void;

but QueryHandler is now defined as:

export interface QueryHandler {
  queryOne?: (element: Element | Document, selector: string) => Element | null;
  queryAll?: (element: Element | Document, selector: string) => Element[] | NodeListOf<Element>;
}

Bug fixes and improvements

  • The ESM build now includes file extensions in its import statements to match the ESM spec. Note that the ESM build is still considered experimental and should not be relied on.
  • The docs on running Firefox Nightly are now much clearer.
  • We now vendor in common dependencies such as Mitt so they can be used more easily outside of the Node module resolution ecosystem.

Raw notes

028f144 - chore: mark v5.2.0 (#​6238)
313774c - feat: change QueryHandler to contain QueryOne and QueryAll methods (#​6218)
82645e8 - docs: better describe how to install Firefox Nightly with Puppeteer (#​6226)
f1a6b8d - chore: vendor Mitt & update project structure (#​6209)
fb80610 - docs(troubleshooting): drops obsolete dependencies (#​5354)
3effcaf - chore: generate docs for the protocol (#​6213)
ffec247 - chore: enforce file extensions on imports (#​6202)
8d6e0d8 - chore: mark version to v5.1.0-post (#​6208)

v5.1.0

Compare Source

Highlights:

The new Mouse#wheel API has been merged in #​6141. It behaves similar to other mouse commands like up or down and therefore requires a mouse.move(x, y) for targeting the element properly.

Raw notes:

91c13d2 - chore: mark version v5.1.0
790c277 - feat(chromium): roll Chromium to r768783 (#​6201)
9b3005c - feat(types): improve page.evaluate types (#​6193)
31309b0 - chore: use devtools-protocol package (#​6172)
f666be3 - chore: remove src/api.ts (#​6191)
03a87e8 - chore(docs): tidy Puppeteer class docs (#​6181)
24cb6a2 - chore(docs): document Frame class (#​6188)
b9667f9 - chore: document browser install breakage on Node 14.0.0 (#​6187)
1243466 - chore: remove installAsyncStackHooks helper (#​6186)
19f188a - chore: forbid importing src/common/Events.ts (#​6183)
0e93880 - chore(docs): migrate Connection + CDP event defs (#​6180)
74cb2ce - chore: migrate FrameManager events from Events.ts (#​6179)
6ee7139 - chore(docs): fix incorrect @returns on getter (#​6175)
12ee70f - chore: migrate NetworkManager events (#​6174)
022495b - chore: fix broken link in docs to DeviceDescriptors (#​6170)
2256b8d - chore(docs): migrate BrowserContext events (#​6168)
e2e0502 - chore(docs): fix DOMWorld doc warnings (#​6166)
782c1d4 - chore(docs): define events enum for Browser (#​6165)
ba7624a - chore(docs): migrate & document all Page events (#​6154)
e67a860 - feat: add Mouse#wheel (#​6141)
5049b83 - feat(types): add types for page.$$eval (#​6139)
f7857d2 - chore(docs): document HTTPRequest with TSDoc (#​6146)
4ebf117 - docs: migrating Page.ts to TSDoc (#​6152)
d9bb52e - docs: fix sandboxing documentation link (#​5288)
aee8fda - fix: make Node.js environment detection robust w.r.t. JSDOM (#​6148)
054fa2e - chore(docs): fix more documentation warnings (#​6145)
928924e - chore: mark v5.0.0-post (#​6144)

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:

// before
const devices = require('puppeteer/DeviceDescriptors');

// after
const puppeteer = require('puppeteer');
const devices = puppeteer.devices
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:

// 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.

Raw notes

85d8dbf - chore: mark v5.0.0
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 in package.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: remove helper.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): remove emulateMedia method (#​6084)
1ee379c - chore: avoid disabling prettier (#​6079)
381b0f8 - chore: declare toBeGolden 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: move index.js into src and TS-ify (#​6049)
940a570 - chore: exclude api.ts from dependency graph (#​6052)
759b280 - chore: upgrade to Mocha v8 (#​5997)
9522f80 - chore: create common directory (#​6042)
f6af7b8 - chore: fix dependency chart generation (#​6039)
90b0934 - chore: create node directory for Node-only files (#​6041)
ce34c0a - fix: page.goto options type should be optional (#​6038)
44402b7 - feat(new-docs): add tsdoc comments to WebWorker (#​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: move assert into its own module (#​6021)
f1ec6a3 - chore: update references to branch names (#​6022)


Renovate configuration

📅 Schedule: "after 9am and before 3pm" (UTC).

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

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

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


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@trusted-contributions-gcf trusted-contributions-gcf bot added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jul 2, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 2, 2020
@codecov
Copy link

codecov bot commented Jul 2, 2020

Codecov Report

Merging #3247 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #3247   +/-   ##
=========================================
  Coverage     87.11%   87.11%           
  Complexity     6077     6077           
=========================================
  Files           494      494           
  Lines         24058    24058           
  Branches       2613     2613           
=========================================
  Hits          20957    20957           
  Misses         2238     2238           
  Partials        863      863           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a9a2894...302bd93. Read the comment docs.

@renovate-bot renovate-bot force-pushed the renovate/puppeteer-5.x branch 4 times, most recently from 38507b6 to f156f39 Compare July 16, 2020 16:08
@alexander-fenster alexander-fenster merged commit c52f71b into googleapis:master Jul 17, 2020
@renovate-bot renovate-bot deleted the renovate/puppeteer-5.x branch July 17, 2020 20:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement. kokoro:run Add this label to force Kokoro to re-run the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants