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
5 changed files with 7 additions and 8 deletions

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
* BrowserFetcher.
*
* @returns A new BrowserFetcher instance.
*/
createBrowserFetcher(options: BrowserFetcherOptions): BrowserFetcher {

View File

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

View File

@@ -54,7 +54,6 @@ const puppeteer = new PuppeteerNode({
export const {
connect,
/** @deprecated Import {@link BrowserFetcher} directly and use the constructor. */
createBrowserFetcher,
defaultArgs,
executablePath,