fix: update BrowserFetcher deprecation message (#9141)

This commit is contained in:
jrandolf 2022-10-20 13:25:24 +02:00 committed by GitHub
parent 5885792be4
commit efcbc97c60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 8 deletions

View File

@ -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

View File

@ -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:**

View File

@ -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 {

View File

@ -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,

View File

@ -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,