mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: release main (#11431)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This commit is contained in:
parent
f8c94699c7
commit
8c0ac61260
@ -1,7 +1,7 @@
|
||||
{
|
||||
"packages/puppeteer": "21.5.2",
|
||||
"packages/puppeteer-core": "21.5.2",
|
||||
"packages/puppeteer": "21.6.0",
|
||||
"packages/puppeteer-core": "21.6.0",
|
||||
"packages/testserver": "0.6.0",
|
||||
"packages/ng-schematics": "0.5.3",
|
||||
"packages/browsers": "1.8.0"
|
||||
"packages/browsers": "1.9.0"
|
||||
}
|
||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@ -11938,7 +11938,7 @@
|
||||
},
|
||||
"packages/browsers": {
|
||||
"name": "@puppeteer/browsers",
|
||||
"version": "1.8.0",
|
||||
"version": "1.9.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"debug": "4.3.4",
|
||||
@ -11989,13 +11989,13 @@
|
||||
"dev": true
|
||||
},
|
||||
"packages/puppeteer": {
|
||||
"version": "21.5.2",
|
||||
"version": "21.6.0",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "1.8.0",
|
||||
"@puppeteer/browsers": "1.9.0",
|
||||
"cosmiconfig": "8.3.6",
|
||||
"puppeteer-core": "21.5.2"
|
||||
"puppeteer-core": "21.6.0"
|
||||
},
|
||||
"bin": {
|
||||
"puppeteer": "lib/esm/puppeteer/node/cli.js"
|
||||
@ -12008,10 +12008,10 @@
|
||||
}
|
||||
},
|
||||
"packages/puppeteer-core": {
|
||||
"version": "21.5.2",
|
||||
"version": "21.6.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "1.8.0",
|
||||
"@puppeteer/browsers": "1.9.0",
|
||||
"chromium-bidi": "0.5.1",
|
||||
"cross-fetch": "4.0.0",
|
||||
"debug": "4.3.4",
|
||||
|
@ -1,5 +1,18 @@
|
||||
# Changelog
|
||||
|
||||
## [1.9.0](https://github.com/puppeteer/puppeteer/compare/browsers-v1.8.0...browsers-v1.9.0) (2023-12-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* implement the Puppeteer CLI ([#11344](https://github.com/puppeteer/puppeteer/issues/11344)) ([53fb69b](https://github.com/puppeteer/puppeteer/commit/53fb69bf7f2bf06fa4fd7bb6d3cf21382386f6e7))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* ng-schematics install Windows ([#11487](https://github.com/puppeteer/puppeteer/issues/11487)) ([02af748](https://github.com/puppeteer/puppeteer/commit/02af7482d9bf2163b90dfe623b0af18c513d5a3b))
|
||||
* remove CDP-specific preferences from defaults for Firefox ([#11477](https://github.com/puppeteer/puppeteer/issues/11477)) ([f8c9469](https://github.com/puppeteer/puppeteer/commit/f8c94699c7f5b15c7bb96f299c2c8217d74230cd))
|
||||
|
||||
## [1.8.0](https://github.com/puppeteer/puppeteer/compare/browsers-v1.7.1...browsers-v1.8.0) (2023-10-20)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@puppeteer/browsers",
|
||||
"version": "1.8.0",
|
||||
"version": "1.9.0",
|
||||
"description": "Download and launch browsers",
|
||||
"scripts": {
|
||||
"build:docs": "wireit",
|
||||
|
@ -20,6 +20,29 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
* dependencies
|
||||
* @puppeteer/browsers bumped from 1.5.1 to 1.6.0
|
||||
|
||||
## [21.6.0](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v21.5.2...puppeteer-core-v21.6.0) (2023-12-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* BiDi implementation of `Puppeteer.connect` for Firefox ([#11451](https://github.com/puppeteer/puppeteer/issues/11451)) ([be081ba](https://github.com/puppeteer/puppeteer/commit/be081ba17a9bbac70c13cafa81f1038f0ecfda70))
|
||||
* experimental WebDriver BiDi support with Firefox ([#11412](https://github.com/puppeteer/puppeteer/issues/11412)) ([8aba033](https://github.com/puppeteer/puppeteer/commit/8aba033dde1a306e37f6033d6f6ff36387e1aac3))
|
||||
* implement the Puppeteer CLI ([#11344](https://github.com/puppeteer/puppeteer/issues/11344)) ([53fb69b](https://github.com/puppeteer/puppeteer/commit/53fb69bf7f2bf06fa4fd7bb6d3cf21382386f6e7))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* end WebDriver BiDi session on disconnect ([#11470](https://github.com/puppeteer/puppeteer/issues/11470)) ([a66d029](https://github.com/puppeteer/puppeteer/commit/a66d0296077a82179a2182281a5040fd96d3843c))
|
||||
* remove CDP-specific preferences from defaults for Firefox ([#11477](https://github.com/puppeteer/puppeteer/issues/11477)) ([f8c9469](https://github.com/puppeteer/puppeteer/commit/f8c94699c7f5b15c7bb96f299c2c8217d74230cd))
|
||||
* warn about launch Chrome using Node x64 on arm64 Macs ([#11471](https://github.com/puppeteer/puppeteer/issues/11471)) ([957a829](https://github.com/puppeteer/puppeteer/commit/957a8293bb1444fd51fd5673002a7781e8127c9d))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @puppeteer/browsers bumped from 1.8.0 to 1.9.0
|
||||
|
||||
## [21.5.2](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v21.5.1...puppeteer-core-v21.5.2) (2023-11-15)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppeteer-core",
|
||||
"version": "21.5.2",
|
||||
"version": "21.6.0",
|
||||
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
||||
"keywords": [
|
||||
"puppeteer",
|
||||
@ -118,7 +118,7 @@
|
||||
"author": "The Chromium Authors",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "1.8.0",
|
||||
"@puppeteer/browsers": "1.9.0",
|
||||
"chromium-bidi": "0.5.1",
|
||||
"cross-fetch": "4.0.0",
|
||||
"debug": "4.3.4",
|
||||
|
@ -29,6 +29,21 @@ All notable changes to this project will be documented in this file. See [standa
|
||||
* puppeteer-core bumped from 21.0.2 to 21.0.3
|
||||
* @puppeteer/browsers bumped from 1.5.1 to 1.6.0
|
||||
|
||||
## [21.6.0](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.5.2...puppeteer-v21.6.0) (2023-12-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* implement the Puppeteer CLI ([#11344](https://github.com/puppeteer/puppeteer/issues/11344)) ([53fb69b](https://github.com/puppeteer/puppeteer/commit/53fb69bf7f2bf06fa4fd7bb6d3cf21382386f6e7))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* puppeteer-core bumped from 21.5.2 to 21.6.0
|
||||
* @puppeteer/browsers bumped from 1.8.0 to 1.9.0
|
||||
|
||||
## [21.5.2](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.5.1...puppeteer-v21.5.2) (2023-11-15)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppeteer",
|
||||
"version": "21.5.2",
|
||||
"version": "21.6.0",
|
||||
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
||||
"keywords": [
|
||||
"puppeteer",
|
||||
@ -124,8 +124,8 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"cosmiconfig": "8.3.6",
|
||||
"puppeteer-core": "21.5.2",
|
||||
"@puppeteer/browsers": "1.8.0"
|
||||
"puppeteer-core": "21.6.0",
|
||||
"@puppeteer/browsers": "1.9.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "18.17.15"
|
||||
|
@ -1,17 +0,0 @@
|
||||
---
|
||||
sidebar_label: AutofillData
|
||||
---
|
||||
|
||||
# AutofillData interface
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export interface AutofillData
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| ---------- | --------- | --------------------------------------------------------------------------------------- | ----------- | ------- |
|
||||
| creditCard | | \{ number: string; name: string; expiryMonth: string; expiryYear: string; cvc: string; \} | | |
|
@ -1,32 +0,0 @@
|
||||
---
|
||||
sidebar_label: Frame.setContent
|
||||
---
|
||||
|
||||
# Frame.setContent() method
|
||||
|
||||
Set the content of the frame.
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class Frame {
|
||||
abstract setContent(
|
||||
html: string,
|
||||
options?: {
|
||||
timeout?: number;
|
||||
waitUntil?: PuppeteerLifeCycleEvent | PuppeteerLifeCycleEvent[];
|
||||
}
|
||||
): Promise<void>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
||||
| html | string | HTML markup to assign to the page. |
|
||||
| options | \{ timeout?: number; waitUntil?: [PuppeteerLifeCycleEvent](./puppeteer.puppeteerlifecycleevent.md) \| [PuppeteerLifeCycleEvent](./puppeteer.puppeteerlifecycleevent.md)\[\]; \} | _(Optional)_ Options to configure how long before timing out and at what point to consider the content setting successful. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<void>
|
@ -1,18 +0,0 @@
|
||||
---
|
||||
sidebar_label: MouseOptions
|
||||
---
|
||||
|
||||
# MouseOptions interface
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export interface MouseOptions
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| ---------- | --------------------- | ----------------------------------------- | ---------------------------------------- | ------------------- |
|
||||
| button | <code>optional</code> | [MouseButton](./puppeteer.mousebutton.md) | Determines which button will be pressed. | <code>'left'</code> |
|
||||
| clickCount | <code>optional</code> | number | | <code>1</code> |
|
@ -1,31 +0,0 @@
|
||||
---
|
||||
sidebar_label: Page.viewport
|
||||
---
|
||||
|
||||
# Page.viewport() method
|
||||
|
||||
Current page viewport settings.
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class Page {
|
||||
abstract viewport(): Viewport | null;
|
||||
}
|
||||
```
|
||||
|
||||
**Returns:**
|
||||
|
||||
[Viewport](./puppeteer.viewport.md) \| null
|
||||
|
||||
- `width`: page's width in pixels
|
||||
|
||||
- `height`: page's height in pixels
|
||||
|
||||
- `deviceScaleFactor`: Specify device scale factor (can be though of as dpr). Defaults to `1`.
|
||||
|
||||
- `isMobile`: Whether the meta viewport tag is taken into account. Defaults to `false`.
|
||||
|
||||
- `hasTouch`: Specifies if viewport supports touch events. Defaults to `false`.
|
||||
|
||||
- `isLandScape`: Specifies if viewport is in landscape mode. Defaults to `false`.
|
@ -1,22 +0,0 @@
|
||||
---
|
||||
sidebar_label: CLI.(constructor)
|
||||
---
|
||||
|
||||
# CLI.(constructor)
|
||||
|
||||
Constructs a new instance of the `CLI` class
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class CLI {
|
||||
constructor(cachePath?: string, rl?: readline.Interface);
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ------------------ | ------------ |
|
||||
| cachePath | string | _(Optional)_ |
|
||||
| rl | readline.Interface | _(Optional)_ |
|
@ -1,23 +0,0 @@
|
||||
---
|
||||
sidebar_label: CLI
|
||||
---
|
||||
|
||||
# CLI class
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export declare class CLI
|
||||
```
|
||||
|
||||
## Constructors
|
||||
|
||||
| Constructor | Modifiers | Description |
|
||||
| --------------------------------------------------------------- | --------- | ------------------------------------------------------- |
|
||||
| [(constructor)(cachePath, rl)](./browsers.cli._constructor_.md) | | Constructs a new instance of the <code>CLI</code> class |
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| ---------------------------------- | --------- | ----------- |
|
||||
| [run(argv)](./browsers.cli.run.md) | | |
|
@ -198,6 +198,7 @@ sidebar_label: API
|
||||
| [Predicate](./puppeteer.predicate.md) | |
|
||||
| [Product](./puppeteer.product.md) | Supported products. |
|
||||
| [ProtocolLifeCycleEvent](./puppeteer.protocollifecycleevent.md) | |
|
||||
| [ProtocolType](./puppeteer.protocoltype.md) | |
|
||||
| [PuppeteerLifeCycleEvent](./puppeteer.puppeteerlifecycleevent.md) | |
|
||||
| [PuppeteerNodeLaunchOptions](./puppeteer.puppeteernodelaunchoptions.md) | Utility type exposed to enable users to define options that can be passed to <code>puppeteer.launch</code> without having to list the set of all types. |
|
||||
| [Quad](./puppeteer.quad.md) | |
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
sidebar_label: AutofillData
|
||||
---
|
||||
|
||||
# AutofillData interface
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export interface AutofillData
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| ---------- | --------- | ------------------------------------------------------------------------------------------------- | ----------- | ------- |
|
||||
| creditCard | | { number: string; name: string; expiryMonth: string; expiryYear: string; cvc: string; } | | |
|
@ -10,10 +10,10 @@ Disconnects Puppeteer from this [browser](./puppeteer.browser.md), but leaves th
|
||||
|
||||
```typescript
|
||||
class Browser {
|
||||
abstract disconnect(): void;
|
||||
abstract disconnect(): Promise<void>;
|
||||
}
|
||||
```
|
||||
|
||||
**Returns:**
|
||||
|
||||
void
|
||||
Promise<void>
|
@ -46,7 +46,7 @@ const browser = await puppeteer.launch();
|
||||
// Store the endpoint to be able to reconnect to the browser.
|
||||
const browserWSEndpoint = browser.wsEndpoint();
|
||||
// Disconnect puppeteer from the browser.
|
||||
browser.disconnect();
|
||||
await browser.disconnect();
|
||||
|
||||
// Use the endpoint to reestablish a connection
|
||||
const browser2 = await puppeteer.connect({browserWSEndpoint});
|
||||
@ -78,4 +78,4 @@ await browser2.close();
|
||||
| [userAgent()](./puppeteer.browser.useragent.md) | | <p>Gets this [browser's](./puppeteer.browser.md) original user agent.</p><p>[Pages](./puppeteer.page.md) can override the user agent with [Page.setUserAgent()](./puppeteer.page.setuseragent.md).</p> |
|
||||
| [version()](./puppeteer.browser.version.md) | | <p>Gets a string representing this [browser's](./puppeteer.browser.md) name and version.</p><p>For headless browser, this is similar to <code>"HeadlessChrome/61.0.3153.0"</code>. For non-headless or new-headless, this is similar to <code>"Chrome/61.0.3153.0"</code>. For Firefox, it is similar to <code>"Firefox/116.0a1"</code>.</p><p>The format of [Browser.version()](./puppeteer.browser.version.md) might change with future releases of browsers.</p> |
|
||||
| [waitForTarget(predicate, options)](./puppeteer.browser.waitfortarget.md) | | <p>Waits until a [target](./puppeteer.target.md) matching the given <code>predicate</code> appears and returns it.</p><p>This will look all open [browser contexts](./puppeteer.browsercontext.md).</p> |
|
||||
| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | | <p>Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).</p><p>This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).</p><p>You can find the debugger URL (<code>webSocketDebuggerUrl</code>) from <code>http://$\{host\}:$\{port\}/json/version</code>.</p><p>See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.</p> |
|
||||
| [wsEndpoint()](./puppeteer.browser.wsendpoint.md) | | <p>Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).</p><p>This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).</p><p>You can find the debugger URL (<code>webSocketDebuggerUrl</code>) from <code>http://HOST:PORT/json/version</code>.</p><p>See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.</p> |
|
@ -8,7 +8,7 @@ Gets the WebSocket URL to connect to this [browser](./puppeteer.browser.md).
|
||||
|
||||
This is usually used with [Puppeteer.connect()](./puppeteer.puppeteer.connect.md).
|
||||
|
||||
You can find the debugger URL (`webSocketDebuggerUrl`) from `http://${host}:${port}/json/version`.
|
||||
You can find the debugger URL (`webSocketDebuggerUrl`) from `http://HOST:PORT/json/version`.
|
||||
|
||||
See [browser endpoint](https://chromedevtools.github.io/devtools-protocol/#how-do-i-access-the-browser-target) for more information.
|
||||
|
||||
@ -26,4 +26,4 @@ string
|
||||
|
||||
## Remarks
|
||||
|
||||
The format is always `ws://${host}:${port}/devtools/browser/<id>`.
|
||||
The format is always `ws://HOST:PORT/devtools/browser/<id>`.
|
@ -14,10 +14,11 @@ export interface BrowserConnectOptions
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| ----------------- | --------------------- | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -------------------- |
|
||||
| defaultViewport | <code>optional</code> | [Viewport](./puppeteer.viewport.md) \| null | Sets the viewport for each page. | |
|
||||
| ignoreHTTPSErrors | <code>optional</code> | boolean | Whether to ignore HTTPS errors during navigation. | <code>false</code> |
|
||||
| protocolTimeout | <code>optional</code> | number | Timeout setting for individual protocol (CDP) calls. | <code>180_000</code> |
|
||||
| slowMo | <code>optional</code> | number | Slows down Puppeteer operations by the specified amount of milliseconds to aid debugging. | |
|
||||
| targetFilter | <code>optional</code> | [TargetFilterCallback](./puppeteer.targetfiltercallback.md) | Callback to decide if Puppeteer should connect to a given target or not. | |
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| ----------------- | --------------------- | ----------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ------------------------------------- |
|
||||
| defaultViewport | <code>optional</code> | [Viewport](./puppeteer.viewport.md) \| null | Sets the viewport for each page. | '{width: 800, height: 600}' |
|
||||
| ignoreHTTPSErrors | <code>optional</code> | boolean | Whether to ignore HTTPS errors during navigation. | <code>false</code> |
|
||||
| protocol | <code>optional</code> | [ProtocolType](./puppeteer.protocoltype.md) | | 'cdp' |
|
||||
| protocolTimeout | <code>optional</code> | number | Timeout setting for individual protocol (CDP) calls. | <code>180_000</code> |
|
||||
| slowMo | <code>optional</code> | number | Slows down Puppeteer operations by the specified amount of milliseconds to aid debugging. | |
|
||||
| targetFilter | <code>optional</code> | [TargetFilterCallback](./puppeteer.targetfiltercallback.md) | Callback to decide if Puppeteer should connect to a given target or not. | |
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user