-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Comparing changes
Open a pull request
base repository: puppeteer/puppeteer
base: v4.0.1
head repository: puppeteer/puppeteer
compare: v5.0.0
Commits on Jun 25, 2020
-
docs(new): migrate Touchscreen docs to TSDoc (#6087)
Co-authored-by: martinsplitt <martin@geekonaut.de>
Configuration menu - View commit details
-
Copy full SHA for 2ad42dc - Browse repository at this point
Copy the full SHA 2ad42dcView commit details -
docs(new): Adds TSDoc to Mouse class (#6086)
* Adds tsdoc to Mouse class * Updates puppeteer class tsdoc * docs(new): add TSDoc comments to BrowserFetcher (#6078) * Adds tsdoc for Touchscreen (#6087) Co-authored-by: martinsplitt <martin@geekonaut.de> * Adds tsdoc to Mouse class * Fixes tsdoc comment for Mouse class Co-authored-by: martinsplitt <martin@geekonaut.de>
Configuration menu - View commit details
-
Copy full SHA for f481922 - Browse repository at this point
Copy the full SHA f481922View commit details -
chore: tidy up TODO from TS tests migration (#6090)
Deleting `Node` errors in strict mode; we don't need to have this test any more.
Configuration menu - View commit details
-
Copy full SHA for 7855519 - Browse repository at this point
Copy the full SHA 7855519View commit details -
docs(new): migrate FileChooser docs to TSDoc (#6092)
Co-authored-by: martinsplitt <martin@geekonaut.de>
Configuration menu - View commit details
-
Copy full SHA for 60904da - Browse repository at this point
Copy the full SHA 60904daView commit details -
docs(new): Adds TSDoc to Tracing class (#6088)
* Adds tsdoc to Tracing class * Updates tsdocs Co-authored-by: martinsplitt <martin@geekonaut.de>
Configuration menu - View commit details
-
Copy full SHA for a46c78f - Browse repository at this point
Copy the full SHA a46c78fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f1f7339 - Browse repository at this point
Copy the full SHA f1f7339View commit details -
docs(new): add TSDoc comments to Puppeteer (#6032) (#6094)
Co-authored-by: Martin Splitt <mr.avgp@googlemail.com>
Configuration menu - View commit details
-
Copy full SHA for 48c5a8e - Browse repository at this point
Copy the full SHA 48c5a8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for c149034 - Browse repository at this point
Copy the full SHA c149034View commit details -
chore(agnostic): Migrate DOMWorld (#6054)
DOMWorld only needs to use Node's `fs` module if you're adding a filepath as a script/style tag. We can detect this case and run the `require` inline such that in a browser this code won't execute.
Configuration menu - View commit details
-
Copy full SHA for b993adb - Browse repository at this point
Copy the full SHA b993adbView commit details -
docs(new): migrate HTTPResponse docs to TSDoc (#6085)
Co-authored-by: Changhao Han <changhaohan@chromium.org>
Configuration menu - View commit details
-
Copy full SHA for 4696f7a - Browse repository at this point
Copy the full SHA 4696f7aView commit details -
docs(new): add TSDoc comments to Keyboard (#6099)
Co-authored-by: Tim van der Lippe <tvanderlippe@google.com>
Configuration menu - View commit details
-
Copy full SHA for 5b6d2bf - Browse repository at this point
Copy the full SHA 5b6d2bfView commit details -
chore: remove
helper.promisify
(#6100)It was just re-exporting the built-in Node module so let's just import from that directly.
Configuration menu - View commit details
-
Copy full SHA for a4d12a2 - Browse repository at this point
Copy the full SHA a4d12a2View commit details -
feat(types): improve typing of
.evaluate()
(#6096)* feat(types): improve typing of `.evaluate()` This is the start of the work to take the types from the `@types/puppeteer` repository and port them into our repo so we can ship our built-in types out the box. This change types the `evaluate` function properly. It takes a generic type which is the type of the function you're passing, and the arguments and the return that you get back from the `evaluate` call are typed correctly.
Configuration menu - View commit details
-
Copy full SHA for 46fc6ca - Browse repository at this point
Copy the full SHA 46fc6caView commit details -
chore(agnostic): ship CJS and ESM builds (#6095)
* chore(agnostic): ship CJS and ESM builds For our work to enable Puppeteer in other environments (e.g. a browser) we need to ship an ESM build. This commit changes our config to ship to `lib/cjs` and `lib/esm` accordingly. The majority of our code stays the same, with one small fix for the CJS build to ensure that we ship a version that lets you `require('puppeteer')` rather than have to `require('puppeteer').default`. We do this with the `cjs-entry.js` which is what the `main` field in our `package.json` points to. We also swap to `read-pkg-up` to find the `package.json` file. This is because the folder structure of `lib/` does not match `src/` now we ship to `cjs` and `esm`, so you cannot rely on exact paths. This module works up from the file to find the nearest `package.json` so it will always find Puppeteer's `package.json`. Note that we *do not* point any users to the ESM build. We happen to ship those files so people who know about them can get at them but it's not expected (nor will we actively support) that people will rely on them. The CommonJS build is considered our main build. We may make breaking changes to the structure of the ESM build which we will do without requiring new major versions. For example the ESM build currently ships all files that the CJS build does, but given we are working on the ESM build being able to run in the browser this may change over time. Long term once the Node versions catch up we can ditch CJS and ship exclusively ESM but we are not there yet.
Configuration menu - View commit details
-
Copy full SHA for 1c0009d - Browse repository at this point
Copy the full SHA 1c0009dView commit details -
Configuration menu - View commit details
-
Copy full SHA for df96f16 - Browse repository at this point
Copy the full SHA df96f16View commit details
Commits on Jun 26, 2020
-
docs(new): migrate Page.ts to TSDoc (part 0 / 2) (#6104)
* docs(new): migrate Page.ts to TSDoc (part 0 / 2) Co-authored-by: Changhao Han <changhaohan@chromium.org>
Configuration menu - View commit details
-
Copy full SHA for adeffba - Browse repository at this point
Copy the full SHA adeffbaView commit details -
docs(api): fix broken links in api.md (#6113)
Fix broken cross-links to classes HTTPRequest and HTTPResponse.
Configuration menu - View commit details
-
Copy full SHA for 3760302 - Browse repository at this point
Copy the full SHA 3760302View commit details
Commits on Jun 29, 2020
-
Configuration menu - View commit details
-
Copy full SHA for 123c377 - Browse repository at this point
Copy the full SHA 123c377View commit details -
chore: Don't store revisions in
package.json
(#6109)* chore: Don't store revisions in `package.json` It's quite messy to have to require the `package.json` file in multiple places purely to find out what revision of a given browser we want to use. We can also achieve better type safety by placing it in an actual source file. This commit makes that change and also tidies up our reliance on `package.json` within the source code generally; we now only use it to find the location of the Puppeteer root such that we know where to install downloaded browsers to. To avoid using `package.json` to parse the name of the module, we also now explicitly have an entry point for the Puppeteer module and the Puppeter Core module. This will make it easier in the future to ship less code as part of core (e.g. core never needs to download a browser, so why ship that code?). Core can also then not have any revisions based info contained in it. The test install script has also been updated to ensure that puppeteer-core can be installed correctly too. Finally, the `install` script has been moved to TypeScript for nicer typechecking and safety. The functionality of it has not changed.
Configuration menu - View commit details
-
Copy full SHA for 1f5e333 - Browse repository at this point
Copy the full SHA 1f5e333View commit details
Commits on Jun 30, 2020
-
chore: fix Firefox install checker (#6129)
I think when the FF version changes this check breaks - let's just make it check that a version installed rather than the specific version else this will happen on a continuing basis.
Configuration menu - View commit details
-
Copy full SHA for 9d79cc8 - Browse repository at this point
Copy the full SHA 9d79cc8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8026ca9 - Browse repository at this point
Copy the full SHA 8026ca9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f19862 - Browse repository at this point
Copy the full SHA 9f19862View commit details
Commits on Jul 1, 2020
-
chore: update Windows skipped tests. (#6133)
The headful one I'm permanently skipping as I don't know what the issue is and I can't debug without getting my hands on a Windows machine. If anyone has one or is able to help, that'd be great! The other I'm deferring another month and will ping the FF folks :)
Configuration menu - View commit details
-
Copy full SHA for 3c0dc45 - Browse repository at this point
Copy the full SHA 3c0dc45View commit details -
feat(types): add (and fix)
evaluateHandle
types (#6130)This change started as a small change to pull types from DefinitelyTyped over to Puppeteer for the `evaluateHandle` function but instead ended up also fixing what looks to be a long standing issue with our existing documentation. `evaluateHandle` can in fact return an `ElementHandle` rather than a `JSHandle`. Note that `ElementHandle` extends `JSHandle` so whilst the docs are technically correct (all ElementHandles are JSHandles) it's confusing because JSHandles don't have methods like `click` on them, but ElementHandles do. if you return something that is an HTML element: ``` const button = page.evaluateHandle(() => document.querySelector('button')); // this is an ElementHandle, not a JSHandle ``` Therefore I've updated the original docs and added a large explanation to the TSDoc for `page.evaluateHandle`. In TypeScript land we'll assume the function will return a `JSHandle` but you can tell TS otherwise via the generic argument, which can only be `JSHandle` (the default) or `ElementHandle`: ``` const button = page.evaluateHandle<ElementHandle>(() => document.querySelector('button')); ```
2Configuration menu - View commit details
-
Copy full SHA for 8370ec8 - Browse repository at this point
Copy the full SHA 8370ec8View commit details
Commits on Jul 2, 2020
-
feat(types): add types for
$eval
(#6135)This pulls in the types (based on the DefinitelyTyped repo) for `page.$eval` (and the `$eval` method on other classes). The `$eval` method is quite hard to type due to the way we wrap and unwrap ElementHandles that are passed to / returned from the `pageFunction` that users provide. Longer term we can improve the types by providing type overloads as DefinitelyTyped does but I've deferred that for now (see the `TODO` in the code for more details).
Configuration menu - View commit details
-
Copy full SHA for 6474edb - Browse repository at this point
Copy the full SHA 6474edbView commit details -
chore: add typecheck command (#6140)
If you want to run TypeScript only to verify that it's typechecking correctly, this command is quicker as it doesn't output CJS and ESM to disk. Useful for checking during development.
Configuration menu - View commit details
-
Copy full SHA for 221d172 - Browse repository at this point
Copy the full SHA 221d172View commit details -
chore(docs): reduce warnings when generating docs (#6138)
* chore(docs): reduce warnings when generating docs This is a bunch of small miscellaneous fixes that reduce the amount of warnings logged when generating our new docs. The long term goal is to get this list down to 0 warnings, but I'll do it in multiple PRs. * satisfy doclint
Configuration menu - View commit details
-
Copy full SHA for 29f7e16 - Browse repository at this point
Copy the full SHA 29f7e16View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d06ade - Browse repository at this point
Copy the full SHA 6d06adeView commit details
There are no files selected for viewing