mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix: update BrowserFetcher
deprecation message (#9141)
This commit is contained in:
parent
5885792be4
commit
efcbc97c60
@ -4,10 +4,6 @@ sidebar_label: createBrowserFetcher
|
||||
|
||||
# createBrowserFetcher variable
|
||||
|
||||
> Warning: This API is now obsolete.
|
||||
>
|
||||
> Import [BrowserFetcher](./puppeteer.browserfetcher.md) directly and use the constructor.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
|
@ -6,7 +6,7 @@ sidebar_label: PuppeteerNode.createBrowserFetcher
|
||||
|
||||
> 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:**
|
||||
|
||||
|
@ -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
|
||||
* BrowserFetcher.
|
||||
*
|
||||
* @returns A new BrowserFetcher instance.
|
||||
*/
|
||||
createBrowserFetcher(options: BrowserFetcherOptions): BrowserFetcher {
|
||||
|
@ -36,7 +36,9 @@ const puppeteer = new PuppeteerNode({
|
||||
|
||||
export const {
|
||||
connect,
|
||||
/** @deprecated Import {@link BrowserFetcher} directly and use the constructor. */
|
||||
/**
|
||||
* @deprecated Construct {@link BrowserFetcher} manually.
|
||||
*/
|
||||
createBrowserFetcher,
|
||||
defaultArgs,
|
||||
executablePath,
|
||||
|
@ -54,7 +54,6 @@ const puppeteer = new PuppeteerNode({
|
||||
|
||||
export const {
|
||||
connect,
|
||||
/** @deprecated Import {@link BrowserFetcher} directly and use the constructor. */
|
||||
createBrowserFetcher,
|
||||
defaultArgs,
|
||||
executablePath,
|
||||
|
Loading…
Reference in New Issue
Block a user