Commit Graph

2764 Commits

Author SHA1 Message Date
Alex Rudenko
bbb186d88c fix: use require.resolve instead of __dirname (#8003) 2022-02-14 10:03:45 +00:00
dependabot[bot]
f588c27db9 chore(deps-dev): bump @commitlint/config-conventional (#8012)
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) from 16.0.0 to 16.2.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.2.1/@commitlint/config-conventional)

---
updated-dependencies:
- dependency-name: "@commitlint/config-conventional"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 09:38:49 +00:00
dependabot[bot]
10413ddd87 chore(deps-dev): bump @commitlint/cli from 16.1.0 to 16.2.1 (#8013)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 16.1.0 to 16.2.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.2.1/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 07:42:13 +00:00
dependabot[bot]
32b2ad26ad chore(deps-dev): bump eslint from 8.8.0 to 8.9.0 (#8011)
Bumps [eslint](https://github.com/eslint/eslint) from 8.8.0 to 8.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.8.0...v8.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 08:23:08 +01:00
dependabot[bot]
d05c36caf9 chore(deps-dev): bump @microsoft/api-documenter from 7.15.2 to 7.15.3 (#8005)
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-documenter) from 7.15.2 to 7.15.3.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Changelog](https://github.com/microsoft/rushstack/blob/master/apps/api-documenter/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-documenter_v7.15.3/apps/api-documenter)

---
updated-dependencies:
- dependency-name: "@microsoft/api-documenter"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-14 07:37:18 +01:00
Nick Schonning
b2bf70fc3b chore: update prettier globs and format files (#7856)
* chore: update prettier globs and format files

* fix: remove reference to Markdownlint
2022-02-11 20:29:43 +01:00
Yang Yang
4ce72abcbd docs: heading ID references in docs/api.md (#7974)
- `Worker` -> `WebWorker`, `#class-worker` -> `#class-webworker`
- `#pagesetuseragentuseragent-useragentdata` -> `#pagesetuseragentuseragent-useragentmetadata`
- `####WaitTimeoutOptions` -> `#waittimeoutoptions`
- `#cooperative-intercept-mode-and-legacy-intercept-mode` -> `#cooperative-intercept-mode`

Co-authored-by: jrandolf <86539915+jrandolf@users.noreply.github.com>
2022-02-11 13:43:52 +00:00
Josh Bielick
6d6ea9bf59 fix: always use ENV executable path when present (#7985)
Some recent changes to allow arm64 environments (including M1 macs) to
launch a chromium installation successfully before arm-compatible builds
were downloadable prevented the usage of PUPPETEER_EXECUTABLE_PATH in
some environments. Currently, when the platform is not darwin and the
arch is arm64, an executable cannot be specified using the environment
variable.

Generally speaking, environment variables have highest precedence for
options such as this since they depend on system configuration.

These change:

1. allow the ENV variable to always be used when defined and not
   specified in LaunchOptions (and when not puppeteer-core)
2. Retain the existing behavior of assuming /usr/bin/chromium-browser on
   platforms like Ubuntu (exact if-conditions preserved to avoid any
   breaking changes)
3. Add some tests for this particular portion of the code.
2022-02-11 13:07:31 +00:00
Alex Rudenko
7e2b47c974 chore: fix deprecate command (#8000) 2022-02-11 07:32:27 +01:00
jrandolf
55c38a25c8 chore: bump version to v13.3.1-post (#7998)
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-10 15:26:20 +00:00
jrandolf
90505a77be chore(release): mark v13.3.1 (#7997)
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
v13.3.1
2022-02-10 14:59:28 +00:00
Alex Rudenko
179ededa14 revert: esm modules (#7996)
* Revert "fix(puppeteer): export internals (#7991)"

This reverts commit 448118cbdb.

* Revert "feat(puppeteer): export esm modules in package.json (#7964)"

This reverts commit 523b487e88.
2022-02-10 13:34:36 +00:00
jrandolf
448118cbdb fix(puppeteer): export internals (#7991)
Signed-off-by: Randolf Jung <jrandolf@chromium.org>

Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-10 10:59:24 +00:00
Alex Rudenko
1b120b2c36 chore: improve logging in the publishing script (#7984) 2022-02-10 09:14:02 +00:00
dependabot[bot]
e583e5b0df chore(deps-dev): bump @types/node from 17.0.16 to 17.0.17 (#7988)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.16 to 17.0.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-10 08:35:12 +00:00
dependabot[bot]
9985429f4a chore(deps-dev): bump @microsoft/api-documenter from 7.15.1 to 7.15.2 (#7989)
Bumps [@microsoft/api-documenter](https://github.com/microsoft/rushstack/tree/HEAD/apps/api-documenter) from 7.15.1 to 7.15.2.
- [Release notes](https://github.com/microsoft/rushstack/releases)
- [Changelog](https://github.com/microsoft/rushstack/blob/master/apps/api-documenter/CHANGELOG.md)
- [Commits](https://github.com/microsoft/rushstack/commits/@microsoft/api-documenter_v7.15.2/apps/api-documenter)

---
updated-dependencies:
- dependency-name: "@microsoft/api-documenter"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-10 09:14:13 +01:00
jrandolf
9b00b7074d chore: bump version to v13.3.0-post (#7983)
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-09 18:16:16 +00:00
jrandolf
6879f9cfe1 chore(release): mark v13.3.0 (#7979)
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
v13.3.0
2022-02-09 17:01:45 +00:00
jrandolf
8ff9d598bf chore(deps): update deps
Signed-off-by: Randolf Jung <jrandolf@chromium.org>

Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-09 14:49:25 +00:00
jrandolf
523b487e88 feat(puppeteer): export esm modules in package.json (#7964)
* feat(puppeteer): export esm modules in package.json

Signed-off-by: Randolf Jung <jrandolf@chromium.org>

Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-09 07:47:27 +00:00
dependabot[bot]
a858cf7021 chore(deps-dev): bump @types/node from 16.10.9 to 17.0.15 (#7965)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.10.9 to 17.0.15.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-07 21:53:55 +01:00
Alex Rudenko
02d651d209 chore: bump version to v13.2.0-post (#7971) 2022-02-07 15:19:58 +00:00
Alex Rudenko
b531f498e9 chore(release): mark v13.2.0 (#7970) v13.2.0 2022-02-07 15:35:33 +01:00
Alex Rudenko
41ab4e9127 fix: typos in documentation (#7968) 2022-02-07 14:03:54 +01:00
Alex Rudenko
9afdc6300b fix: make projectRoot optional in Puppeteer and launchers (#7967) 2022-02-07 12:59:44 +01:00
Alex Rudenko
09ff56b7a8 chore: remove commit lint from pull requests (#7957) 2022-02-04 20:42:15 +01:00
jrandolf
96c3f943b2 feat(chromium): roll to Chromium 99.0.4844.16 (r961656) (#7960)
Co-authored-by: Randolf Jung <jrandolf@chromium.org>
2022-02-04 12:18:53 +01:00
nswbmw
6a655cb647 feat: add more models to DeviceDescriptors (#7904) 2022-02-02 18:40:54 +01:00
dependabot[bot]
3b19851b5f chore(deps): bump debug from 4.3.2 to 4.3.3 (#7948)
Bumps [debug](https://github.com/debug-js/debug) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/debug-js/debug/releases)
- [Commits](https://github.com/debug-js/debug/compare/4.3.2...4.3.3)

---
updated-dependencies:
- dependency-name: debug
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Rudenko <OrKoN@users.noreply.github.com>
2022-02-01 09:18:38 +00:00
Mathias Bynens
2fefcc9185 chore: set up ossf/scorecard-action (#7953) 2022-02-01 08:55:58 +00:00
Alex Rudenko
aaac8d9c44 fix: migrate more files to strict-mode TypeScript (#7950) 2022-01-31 15:16:32 +00:00
dependabot[bot]
f708ceb9f9 chore(deps-dev): bump @commitlint/config-conventional (#7945)
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) from 13.2.0 to 16.0.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v16.0.0/@commitlint/config-conventional)

---
updated-dependencies:
- dependency-name: "@commitlint/config-conventional"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-31 14:52:36 +01:00
Alex Rudenko
161b283ea4 chore: bump version to v13.1.3-post (#7947) 2022-01-31 13:19:56 +01:00
Alex Rudenko
7b76883802 chore(release): mark v13.1.3 (#7946) v13.1.3 2022-01-31 10:15:42 +01:00
Alex Rudenko
06ba9632a4 fix: issue with reading versions.js in doclint (#7940)
Partially reverts https://github.com/puppeteer/puppeteer/pull/7927
where the regression happened.
2022-01-28 12:01:12 +00:00
Alex Rudenko
43aa98620e chore: update minimist to 1.2.5 (#7938) 2022-01-28 10:23:44 +00:00
Alex Rudenko
12470564ad chore: update jpeg-js to 0.4.3 (#7937) 2022-01-28 10:03:36 +00:00
Alex Rudenko
0636513e34 fix: make more files work in strict-mode TypeScript (#7936) 2022-01-28 09:38:36 +00:00
Alex Rudenko
000c1f630d chore: add TODO to use size parameter in getReadableFromProtocolStream (#7930) 2022-01-28 09:38:14 +01:00
Alex Rudenko
776ced620e chore: apply deprecation command (#7929) 2022-01-27 07:18:23 +00:00
tjacobs3
afea509544 fix: page.pdf producing an invalid pdf (#7868)
When defining a chunk size for <CDPSession>.send('IO.read', { handle, size }), the CDPSession will occasionally indicate that it has reached the end of file without sending a full pdf. This is documented by the associated issue.

This behavior is not reproducible when leaving out the size parameter. Since the size parameter is not required on the CDPSession side and is merely a suggestion on the stream side, we can safely leave it out.

Issues: #7757
2022-01-26 12:30:03 +00:00
Alex Rudenko
acac3b3e32 chore: generate version range for deprecated versions (#7927) 2022-01-26 12:22:20 +01:00
Alex Rudenko
be3fce5f9d chore: bump version to v13.1.2-post (#7926) 2022-01-25 08:24:23 +00:00
Alex Rudenko
0a9eb3c9a5 chore(release): mark v13.1.2 (#7925) v13.1.2 2022-01-25 07:55:07 +00:00
Romain
e4c48d3b8c fix(package.json): update node-fetch package (#7924)
Update node-fetch to version 2.6.7 to avoid a high vulnerability

https://github.com/advisories/GHSA-r683-j2x4-v87g
2022-01-24 14:19:38 +01:00
Alex Rudenko
d80d6027ea fix: types in Connection.ts to be compatible with strict mode Typescript (#7919)
Issues: #6769
2022-01-21 12:41:21 +01:00
Alex Rudenko
a8ec0aadc9 fix: types in Browser.ts to be compatible with strict mode Typescript (#7918)
Issues: #6769
2022-01-20 14:15:23 +01:00
Alex Rudenko
08c0e8b75d chore: bump version to v13.1.1-post (#7913) 2022-01-18 09:18:24 +00:00
Alex Rudenko
f108560be8 chore(release): mark v13.1.1 (#7912) v13.1.1 2022-01-18 08:55:34 +00:00
Alex Rudenko
344feb53c2 fix: use content box for OOPIF offset calculations (#7911)
If an iframe has a border, it has to be added to the offsets
too. We can work around it by using the content box coordinates
for the offsets. That should also prevent discrepancies if the
iframe has a padding set.
2022-01-18 09:22:15 +01:00