diff --git a/docs/api.md b/docs/api.md index ad9d5ab8..12e6383f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -7,7 +7,7 @@ - Troubleshooting: [troubleshooting.md](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md) - Releases per Chromium version: - * Chromium 89.0.4389.0 - [Puppeteer 6.0.0](https://github.com/puppeteer/puppeteer/blob/6.0.0/docs/api.md) + * Chromium 89.0.4389.0 - [Puppeteer v6.0.0](https://github.com/puppeteer/puppeteer/blob/v6.0.0/docs/api.md) * Chromium 88.0.4298.0 - [Puppeteer v5.5.0](https://github.com/puppeteer/puppeteer/blob/v5.5.0/docs/api.md) * Chromium 87.0.4272.0 - [Puppeteer v5.4.0](https://github.com/puppeteer/puppeteer/blob/v5.4.0/docs/api.md) * Chromium 86.0.4240.0 - [Puppeteer v5.3.0](https://github.com/puppeteer/puppeteer/blob/v5.3.0/docs/api.md) @@ -1464,7 +1464,7 @@ await page.evaluate(() => matchMedia('print').matches); // → false ``` -#### page.emulateNetworkConditions(networkConditions) +#### page.emulateNetworkConditions(networkConditions) - `networkConditions` Passing `null` disables network condition emulation. - `download` <[number]> Download speed (bytes/s), `-1` to disable - `upload` <[number]> Upload speed (bytes/s), `-1` to disable diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js index 2c83189c..cccc32d1 100755 --- a/utils/doclint/cli.js +++ b/utils/doclint/cli.js @@ -41,7 +41,9 @@ async function run() { const versions = await Source.readFile( path.join(PROJECT_DIR, 'versions.js') ); - versions.setText(versions.text().replace(`, 'NEXT'],`, `, '${VERSION}'],`)); + versions.setText( + versions.text().replace(`, 'NEXT'],`, `, 'v${VERSION}'],`) + ); await versions.save(); } diff --git a/versions.js b/versions.js index 766a510c..ee92dffb 100644 --- a/versions.js +++ b/versions.js @@ -17,7 +17,7 @@ const versionsPerRelease = new Map([ // This is a mapping from Chromium version => Puppeteer version. // In Chromium roll patches, use 'NEXT' for the Puppeteer version. - ['89.0.4389.0', '6.0.0'], + ['89.0.4389.0', 'v6.0.0'], ['88.0.4298.0', 'v5.5.0'], ['87.0.4272.0', 'v5.4.0'], ['86.0.4240.0', 'v5.3.0'],