fix: update BrowserFetcher
deprecation message (#9141)
This commit is contained in:
parent
5885792be4
commit
efcbc97c60
@ -4,10 +4,6 @@ sidebar_label: createBrowserFetcher
|
|||||||
|
|
||||||
# createBrowserFetcher variable
|
# createBrowserFetcher variable
|
||||||
|
|
||||||
> Warning: This API is now obsolete.
|
|
||||||
>
|
|
||||||
> Import [BrowserFetcher](./puppeteer.browserfetcher.md) directly and use the constructor.
|
|
||||||
|
|
||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
|
@ -6,7 +6,7 @@ sidebar_label: PuppeteerNode.createBrowserFetcher
|
|||||||
|
|
||||||
> Warning: This API is now obsolete.
|
> Warning: This API is now obsolete.
|
||||||
>
|
>
|
||||||
> Import [BrowserFetcher](./puppeteer.browserfetcher.md) directly and use the constructor.
|
> If you are using `puppeteer-core`, do not use this method. Just construct [BrowserFetcher](./puppeteer.browserfetcher.md) manually.
|
||||||
|
|
||||||
**Signature:**
|
**Signature:**
|
||||||
|
|
||||||
|
@ -229,10 +229,12 @@ export class PuppeteerNode extends Puppeteer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Import {@link BrowserFetcher} directly and use the constructor.
|
* @deprecated If you are using `puppeteer-core`, do not use this method. Just
|
||||||
|
* construct {@link BrowserFetcher} manually.
|
||||||
*
|
*
|
||||||
* @param options - Set of configurable options to specify the settings of the
|
* @param options - Set of configurable options to specify the settings of the
|
||||||
* BrowserFetcher.
|
* BrowserFetcher.
|
||||||
|
*
|
||||||
* @returns A new BrowserFetcher instance.
|
* @returns A new BrowserFetcher instance.
|
||||||
*/
|
*/
|
||||||
createBrowserFetcher(options: BrowserFetcherOptions): BrowserFetcher {
|
createBrowserFetcher(options: BrowserFetcherOptions): BrowserFetcher {
|
||||||
|
@ -36,7 +36,9 @@ const puppeteer = new PuppeteerNode({
|
|||||||
|
|
||||||
export const {
|
export const {
|
||||||
connect,
|
connect,
|
||||||
/** @deprecated Import {@link BrowserFetcher} directly and use the constructor. */
|
/**
|
||||||
|
* @deprecated Construct {@link BrowserFetcher} manually.
|
||||||
|
*/
|
||||||
createBrowserFetcher,
|
createBrowserFetcher,
|
||||||
defaultArgs,
|
defaultArgs,
|
||||||
executablePath,
|
executablePath,
|
||||||
|
@ -54,7 +54,6 @@ const puppeteer = new PuppeteerNode({
|
|||||||
|
|
||||||
export const {
|
export const {
|
||||||
connect,
|
connect,
|
||||||
/** @deprecated Import {@link BrowserFetcher} directly and use the constructor. */
|
|
||||||
createBrowserFetcher,
|
createBrowserFetcher,
|
||||||
defaultArgs,
|
defaultArgs,
|
||||||
executablePath,
|
executablePath,
|
||||||
|
Loading…
Reference in New Issue
Block a user