mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: release main (#11593)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This commit is contained in:
parent
488e237853
commit
864012a86d
@ -1,7 +1,7 @@
|
||||
{
|
||||
"packages/puppeteer": "21.6.1",
|
||||
"packages/puppeteer-core": "21.6.1",
|
||||
"packages/puppeteer": "21.7.0",
|
||||
"packages/puppeteer-core": "21.7.0",
|
||||
"packages/testserver": "0.6.0",
|
||||
"packages/ng-schematics": "0.5.5",
|
||||
"packages/browsers": "1.9.0"
|
||||
"packages/browsers": "1.9.1"
|
||||
}
|
||||
|
12
package-lock.json
generated
12
package-lock.json
generated
@ -10736,7 +10736,7 @@
|
||||
},
|
||||
"packages/browsers": {
|
||||
"name": "@puppeteer/browsers",
|
||||
"version": "1.9.0",
|
||||
"version": "1.9.1",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"debug": "4.3.4",
|
||||
@ -11094,13 +11094,13 @@
|
||||
}
|
||||
},
|
||||
"packages/puppeteer": {
|
||||
"version": "21.6.1",
|
||||
"version": "21.7.0",
|
||||
"hasInstallScript": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "1.9.0",
|
||||
"@puppeteer/browsers": "1.9.1",
|
||||
"cosmiconfig": "8.3.6",
|
||||
"puppeteer-core": "21.6.1"
|
||||
"puppeteer-core": "21.7.0"
|
||||
},
|
||||
"bin": {
|
||||
"puppeteer": "lib/esm/puppeteer/node/cli.js"
|
||||
@ -11113,10 +11113,10 @@
|
||||
}
|
||||
},
|
||||
"packages/puppeteer-core": {
|
||||
"version": "21.6.1",
|
||||
"version": "21.7.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@puppeteer/browsers": "1.9.0",
|
||||
"@puppeteer/browsers": "1.9.1",
|
||||
"chromium-bidi": "0.5.2",
|
||||
"cross-fetch": "4.0.0",
|
||||
"debug": "4.3.4",
|
||||
|
@ -1,5 +1,12 @@
|
||||
# Changelog
|
||||
|
||||
## [1.9.1](https://github.com/puppeteer/puppeteer/compare/browsers-v1.9.0...browsers-v1.9.1) (2024-01-04)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* disable GFX sanity window for Firefox and enable WebDriver BiDi CI jobs for Windows ([#11578](https://github.com/puppeteer/puppeteer/issues/11578)) ([e41a265](https://github.com/puppeteer/puppeteer/commit/e41a2656d9e1f3f037b298457fbd6c6e08f5a371))
|
||||
|
||||
## [1.9.0](https://github.com/puppeteer/puppeteer/compare/browsers-v1.8.0...browsers-v1.9.0) (2023-12-05)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@puppeteer/browsers",
|
||||
"version": "1.9.0",
|
||||
"version": "1.9.1",
|
||||
"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.7.0](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v21.6.1...puppeteer-core-v21.7.0) (2024-01-04)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* allow converting other targets to pages ([#11604](https://github.com/puppeteer/puppeteer/issues/11604)) ([66aa770](https://github.com/puppeteer/puppeteer/commit/66aa77003880a1458e14b47a3ed87856fd3a1933))
|
||||
* support fetching request POST data ([#11598](https://github.com/puppeteer/puppeteer/issues/11598)) ([80143de](https://github.com/puppeteer/puppeteer/commit/80143def9606ec5f2018dde618c00784442c5c1d))
|
||||
* support timeouts per CDP command ([#11595](https://github.com/puppeteer/puppeteer/issues/11595)) ([c660d40](https://github.com/puppeteer/puppeteer/commit/c660d4001d610854399d7ecb551c4eb56a7f840a))
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* change viewportHeight in screencast ([#11583](https://github.com/puppeteer/puppeteer/issues/11583)) ([107b833](https://github.com/puppeteer/puppeteer/commit/107b8337e5eebc5e31a57663ba1345be81fb486e))
|
||||
* disable GFX sanity window for Firefox and enable WebDriver BiDi CI jobs for Windows ([#11578](https://github.com/puppeteer/puppeteer/issues/11578)) ([e41a265](https://github.com/puppeteer/puppeteer/commit/e41a2656d9e1f3f037b298457fbd6c6e08f5a371))
|
||||
* improve reliability of exposeFunction ([#11600](https://github.com/puppeteer/puppeteer/issues/11600)) ([b0c5392](https://github.com/puppeteer/puppeteer/commit/b0c5392cb36eed2ed4ae4864587885b6059f4cfb))
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* @puppeteer/browsers bumped from 1.9.0 to 1.9.1
|
||||
|
||||
## [21.6.1](https://github.com/puppeteer/puppeteer/compare/puppeteer-core-v21.6.0...puppeteer-core-v21.6.1) (2023-12-13)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppeteer-core",
|
||||
"version": "21.6.1",
|
||||
"version": "21.7.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.9.0",
|
||||
"@puppeteer/browsers": "1.9.1",
|
||||
"chromium-bidi": "0.5.2",
|
||||
"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.7.0](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.6.1...puppeteer-v21.7.0) (2024-01-04)
|
||||
|
||||
|
||||
### Miscellaneous Chores
|
||||
|
||||
* **puppeteer:** Synchronize puppeteer versions
|
||||
|
||||
|
||||
### Dependencies
|
||||
|
||||
* The following workspace dependencies were updated
|
||||
* dependencies
|
||||
* puppeteer-core bumped from 21.6.1 to 21.7.0
|
||||
* @puppeteer/browsers bumped from 1.9.0 to 1.9.1
|
||||
|
||||
## [21.6.1](https://github.com/puppeteer/puppeteer/compare/puppeteer-v21.6.0...puppeteer-v21.6.1) (2023-12-13)
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "puppeteer",
|
||||
"version": "21.6.1",
|
||||
"version": "21.7.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.6.1",
|
||||
"@puppeteer/browsers": "1.9.0"
|
||||
"puppeteer-core": "21.7.0",
|
||||
"@puppeteer/browsers": "1.9.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "18.17.15"
|
||||
|
@ -1,27 +0,0 @@
|
||||
---
|
||||
sidebar_label: CDPSession.send
|
||||
---
|
||||
|
||||
# CDPSession.send() method
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class CDPSession {
|
||||
abstract send<T extends keyof ProtocolMapping.Commands>(
|
||||
method: T,
|
||||
...paramArgs: ProtocolMapping.Commands[T]['paramsType']
|
||||
): Promise<ProtocolMapping.Commands[T]['returnType']>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | --------------------------------------------- | ----------- |
|
||||
| method | T | |
|
||||
| paramArgs | ProtocolMapping.Commands\[T\]\['paramsType'\] | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<ProtocolMapping.Commands\[T\]\['returnType'\]>
|
@ -1,27 +0,0 @@
|
||||
---
|
||||
sidebar_label: Connection.send
|
||||
---
|
||||
|
||||
# Connection.send() method
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class Connection {
|
||||
send<T extends keyof ProtocolMapping.Commands>(
|
||||
method: T,
|
||||
...paramArgs: ProtocolMapping.Commands[T]['paramsType']
|
||||
): Promise<ProtocolMapping.Commands[T]['returnType']>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | --------------------------------------------- | ----------- |
|
||||
| method | T | |
|
||||
| paramArgs | ProtocolMapping.Commands\[T\]\['paramsType'\] | |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<ProtocolMapping.Commands\[T\]\['returnType'\]>
|
@ -1,34 +0,0 @@
|
||||
---
|
||||
sidebar_label: WebWorker.evaluate
|
||||
---
|
||||
|
||||
# WebWorker.evaluate() method
|
||||
|
||||
If the function passed to the `worker.evaluate` returns a Promise, then `worker.evaluate` would wait for the promise to resolve and return its value. If the function passed to the `worker.evaluate` returns a non-serializable value, then `worker.evaluate` resolves to `undefined`. DevTools Protocol also supports transferring some additional values that are not serializable by `JSON`: `-0`, `NaN`, `Infinity`, `-Infinity`, and bigint literals. Shortcut for `await worker.executionContext()).evaluate(pageFunction, ...args)`.
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class WebWorker {
|
||||
evaluate<
|
||||
Params extends unknown[],
|
||||
Func extends EvaluateFunc<Params> = EvaluateFunc<Params>,
|
||||
>(
|
||||
pageFunction: Func | string,
|
||||
...args: Params
|
||||
): Promise<Awaited<ReturnType<Func>>>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| ------------ | -------------- | ----------------------------------------------- |
|
||||
| pageFunction | Func \| string | Function to be evaluated in the worker context. |
|
||||
| args | Params | Arguments to pass to <code>pageFunction</code>. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<Awaited<ReturnType<Func>>>
|
||||
|
||||
Promise which resolves to the return value of `pageFunction`.
|
@ -1,34 +0,0 @@
|
||||
---
|
||||
sidebar_label: WebWorker.evaluateHandle
|
||||
---
|
||||
|
||||
# WebWorker.evaluateHandle() method
|
||||
|
||||
The only difference between `worker.evaluate` and `worker.evaluateHandle` is that `worker.evaluateHandle` returns in-page object (JSHandle). If the function passed to the `worker.evaluateHandle` returns a `Promise`, then `worker.evaluateHandle` would wait for the promise to resolve and return its value. Shortcut for `await worker.executionContext()).evaluateHandle(pageFunction, ...args)`
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class WebWorker {
|
||||
evaluateHandle<
|
||||
Params extends unknown[],
|
||||
Func extends EvaluateFunc<Params> = EvaluateFunc<Params>,
|
||||
>(
|
||||
pageFunction: Func | string,
|
||||
...args: Params
|
||||
): Promise<HandleFor<Awaited<ReturnType<Func>>>>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| ------------ | -------------- | ----------------------------------------------- |
|
||||
| pageFunction | Func \| string | Function to be evaluated in the page context. |
|
||||
| args | Params | Arguments to pass to <code>pageFunction</code>. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<[HandleFor](./puppeteer.handlefor.md)<Awaited<ReturnType<Func>>>>
|
||||
|
||||
Promise which resolves to the return value of `pageFunction`.
|
@ -1,51 +0,0 @@
|
||||
---
|
||||
sidebar_label: WebWorker
|
||||
---
|
||||
|
||||
# WebWorker class
|
||||
|
||||
This class represents a [WebWorker](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API).
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export declare class WebWorker extends EventEmitter<Record<EventType, unknown>>
|
||||
```
|
||||
|
||||
**Extends:** [EventEmitter](./puppeteer.eventemitter.md)<Record<[EventType](./puppeteer.eventtype.md), unknown>>
|
||||
|
||||
## Remarks
|
||||
|
||||
The events `workercreated` and `workerdestroyed` are emitted on the page object to signal the worker lifecycle.
|
||||
|
||||
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `WebWorker` class.
|
||||
|
||||
## Example
|
||||
|
||||
```ts
|
||||
page.on('workercreated', worker =>
|
||||
console.log('Worker created: ' + worker.url())
|
||||
);
|
||||
page.on('workerdestroyed', worker =>
|
||||
console.log('Worker destroyed: ' + worker.url())
|
||||
);
|
||||
|
||||
console.log('Current workers:');
|
||||
for (const worker of page.workers()) {
|
||||
console.log(' ' + worker.url());
|
||||
}
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description |
|
||||
| -------- | --------------------- | --------------------------------------- | ------------------------------------------------ |
|
||||
| client | <code>readonly</code> | [CDPSession](./puppeteer.cdpsession.md) | The CDP session client the WebWorker belongs to. |
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| ----------------------------------------------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [evaluate(pageFunction, args)](./puppeteer.webworker.evaluate.md) | | If the function passed to the <code>worker.evaluate</code> returns a Promise, then <code>worker.evaluate</code> would wait for the promise to resolve and return its value. If the function passed to the <code>worker.evaluate</code> returns a non-serializable value, then <code>worker.evaluate</code> resolves to <code>undefined</code>. DevTools Protocol also supports transferring some additional values that are not serializable by <code>JSON</code>: <code>-0</code>, <code>NaN</code>, <code>Infinity</code>, <code>-Infinity</code>, and bigint literals. Shortcut for <code>await worker.executionContext()).evaluate(pageFunction, ...args)</code>. |
|
||||
| [evaluateHandle(pageFunction, args)](./puppeteer.webworker.evaluatehandle.md) | | The only difference between <code>worker.evaluate</code> and <code>worker.evaluateHandle</code> is that <code>worker.evaluateHandle</code> returns in-page object (JSHandle). If the function passed to the <code>worker.evaluateHandle</code> returns a <code>Promise</code>, then <code>worker.evaluateHandle</code> would wait for the promise to resolve and return its value. Shortcut for <code>await worker.executionContext()).evaluateHandle(pageFunction, ...args)</code> |
|
||||
| [url()](./puppeteer.webworker.url.md) | | The URL of this web worker. |
|
@ -80,6 +80,7 @@ sidebar_label: API
|
||||
| [BrowserLaunchArgumentOptions](./puppeteer.browserlaunchargumentoptions.md) | Launcher options that only apply to Chrome. |
|
||||
| [CDPSessionEvents](./puppeteer.cdpsessionevents.md) | |
|
||||
| [ClickOptions](./puppeteer.clickoptions.md) | |
|
||||
| [CommandOptions](./puppeteer.commandoptions.md) | |
|
||||
| [CommonEventEmitter](./puppeteer.commoneventemitter.md) | |
|
||||
| [Configuration](./puppeteer.configuration.md) | <p>Defines options to configure Puppeteer's behavior during installation and runtime.</p><p>See individual properties for more information.</p> |
|
||||
| [ConnectionTransport](./puppeteer.connectiontransport.md) | |
|
@ -39,9 +39,9 @@ await client.send('Animation.setPlaybackRate', {
|
||||
|
||||
## Methods
|
||||
|
||||
| Method | Modifiers | Description |
|
||||
| --------------------------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [connection()](./puppeteer.cdpsession.connection.md) | | |
|
||||
| [detach()](./puppeteer.cdpsession.detach.md) | | Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages. |
|
||||
| [id()](./puppeteer.cdpsession.id.md) | | Returns the session's id. |
|
||||
| [send(method, paramArgs)](./puppeteer.cdpsession.send.md) | | |
|
||||
| Method | Modifiers | Description |
|
||||
| --------------------------------------------------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| [connection()](./puppeteer.cdpsession.connection.md) | | |
|
||||
| [detach()](./puppeteer.cdpsession.detach.md) | | Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages. |
|
||||
| [id()](./puppeteer.cdpsession.id.md) | | Returns the session's id. |
|
||||
| [send(method, params, options)](./puppeteer.cdpsession.send.md) | | |
|
@ -0,0 +1,29 @@
|
||||
---
|
||||
sidebar_label: CDPSession.send
|
||||
---
|
||||
|
||||
# CDPSession.send() method
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class CDPSession {
|
||||
abstract send<T extends keyof ProtocolMapping.Commands>(
|
||||
method: T,
|
||||
params?: ProtocolMapping.Commands[T]['paramsType'][0],
|
||||
options?: CommandOptions
|
||||
): Promise<ProtocolMapping.Commands[T]['returnType']>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | -------------------------------------------------- | ------------ |
|
||||
| method | T | |
|
||||
| params | ProtocolMapping.Commands\[T\]\['paramsType'\]\[0\] | _(Optional)_ |
|
||||
| options | [CommandOptions](./puppeteer.commandoptions.md) | _(Optional)_ |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<ProtocolMapping.Commands\[T\]\['returnType'\]>
|
@ -0,0 +1,17 @@
|
||||
---
|
||||
sidebar_label: CommandOptions
|
||||
---
|
||||
|
||||
# CommandOptions interface
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
export interface CommandOptions
|
||||
```
|
||||
|
||||
## Properties
|
||||
|
||||
| Property | Modifiers | Type | Description | Default |
|
||||
| -------- | --------- | ------ | ----------- | ------- |
|
||||
| timeout | | number | | |
|
@ -31,6 +31,6 @@ export declare class Connection extends EventEmitter<CDPSessionEvents>
|
||||
| [createSession(targetInfo)](./puppeteer.connection.createsession.md) | | |
|
||||
| [dispose()](./puppeteer.connection.dispose.md) | | |
|
||||
| [fromSession(session)](./puppeteer.connection.fromsession.md) | <code>static</code> | |
|
||||
| [send(method, paramArgs)](./puppeteer.connection.send.md) | | |
|
||||
| [send(method, params, options)](./puppeteer.connection.send.md) | | |
|
||||
| [session(sessionId)](./puppeteer.connection.session.md) | | |
|
||||
| [url()](./puppeteer.connection.url.md) | | |
|
@ -0,0 +1,29 @@
|
||||
---
|
||||
sidebar_label: Connection.send
|
||||
---
|
||||
|
||||
# Connection.send() method
|
||||
|
||||
#### Signature:
|
||||
|
||||
```typescript
|
||||
class Connection {
|
||||
send<T extends keyof ProtocolMapping.Commands>(
|
||||
method: T,
|
||||
params?: ProtocolMapping.Commands[T]['paramsType'][0],
|
||||
options?: CommandOptions
|
||||
): Promise<ProtocolMapping.Commands[T]['returnType']>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | -------------------------------------------------- | ------------ |
|
||||
| method | T | |
|
||||
| params | ProtocolMapping.Commands\[T\]\['paramsType'\]\[0\] | _(Optional)_ |
|
||||
| options | [CommandOptions](./puppeteer.commandoptions.md) | _(Optional)_ |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<ProtocolMapping.Commands\[T\]\['returnType'\]>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user