2 * Copyright 2020 Google Inc. All rights reserved.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 const versionsPerRelease = new Map([
18 // This is a mapping from Chrome version => Puppeteer version.
19 // In Chrome roll patches, use `NEXT` for the Puppeteer version.
20 ['116.0.5845.96', 'v21.1.0'],
21 ['115.0.5790.170', 'v21.0.2'],
22 ['115.0.5790.102', 'v21.0.0'],
23 ['115.0.5790.98', 'v20.9.0'],
24 ['114.0.5735.133', 'v20.7.2'],
25 ['114.0.5735.90', 'v20.6.0'],
26 ['113.0.5672.63', 'v20.1.0'],
27 ['112.0.5615.121', 'v20.0.0'],
28 ['112.0.5614.0', 'v19.8.0'],
29 ['111.0.5556.0', 'v19.7.0'],
30 ['110.0.5479.0', 'v19.6.0'],
31 ['109.0.5412.0', 'v19.4.0'],
32 ['108.0.5351.0', 'v19.2.0'],
33 ['107.0.5296.0', 'v18.1.0'],
34 ['106.0.5249.0', 'v17.1.0'],
35 ['105.0.5173.0', 'v15.5.0'],
36 ['104.0.5109.0', 'v15.1.0'],
37 ['103.0.5059.0', 'v14.2.0'],
38 ['102.0.5002.0', 'v14.0.0'],
39 ['101.0.4950.0', 'v13.6.0'],
40 ['100.0.4889.0', 'v13.5.0'],
41 ['99.0.4844.16', 'v13.2.0'],
42 ['98.0.4758.0', 'v13.1.0'],
43 ['97.0.4692.0', 'v12.0.0'],
44 ['93.0.4577.0', 'v10.2.0'],
45 ['92.0.4512.0', 'v10.0.0'],
46 ['91.0.4469.0', 'v9.0.0'],
47 ['90.0.4427.0', 'v8.0.0'],
48 ['90.0.4403.0', 'v7.0.0'],
49 ['89.0.4389.0', 'v6.0.0'],
50 ['88.0.4298.0', 'v5.5.0'],
51 ['87.0.4272.0', 'v5.4.0'],
52 ['86.0.4240.0', 'v5.3.0'],
53 ['85.0.4182.0', 'v5.2.1'],
54 ['84.0.4147.0', 'v5.1.0'],
55 ['83.0.4103.0', 'v3.1.0'],
56 ['81.0.4044.0', 'v3.0.0'],
57 ['80.0.3987.0', 'v2.1.0'],
58 ['79.0.3942.0', 'v2.0.0'],
59 ['78.0.3882.0', 'v1.20.0'],
60 ['77.0.3803.0', 'v1.19.0'],
61 ['76.0.3803.0', 'v1.17.0'],
62 ['75.0.3765.0', 'v1.15.0'],
63 ['74.0.3723.0', 'v1.13.0'],
64 ['73.0.3679.0', 'v1.12.2'],
67 // Should not be more than 2 major versions behind Chrome Stable (https://chromestatus.com/roadmap).
68 const lastMaintainedChromeVersion = '114.0.5735.90';
70 if (!versionsPerRelease.has(lastMaintainedChromeVersion)) {
72 'lastMaintainedChromeVersion is missing from versionsPerRelease'
78 lastMaintainedChromeVersion,