Skip to content

Commit

Permalink
chore: fix version number (#6803)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Feb 2, 2021
1 parent 20526b5 commit 03db2cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- Troubleshooting: [troubleshooting.md](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md)
<!-- GEN:versions-per-release -->
- 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)
Expand Down Expand Up @@ -1464,7 +1464,7 @@ await page.evaluate(() => matchMedia('print').matches);
// → false
```

#### page.emulateNetworkConditions(networkConditions)
#### page.emulateNetworkConditions(networkConditions)
- `networkConditions` <?[Object]> Passing `null` disables network condition emulation.
- `download` <[number]> Download speed (bytes/s), `-1` to disable
- `upload` <[number]> Upload speed (bytes/s), `-1` to disable
Expand Down
4 changes: 3 additions & 1 deletion utils/doclint/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
2 changes: 1 addition & 1 deletion versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit 03db2cb

Please sign in to comment.