Skip to content

Commit c1f145d

Browse files
committed
limit prember to only a few versions
1 parent 0cc9638 commit c1f145d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

prember-urls.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,29 @@ module.exports = function () {
2323

2424
const uniqueProjectVersions = [...new Set(projectVersions)];
2525

26+
const oldVersions = [
27+
'1.12',
28+
'1.13',
29+
'2.17',
30+
'2.18',
31+
'3.4',
32+
'3.8',
33+
'3.12',
34+
'3.16',
35+
'3.20',
36+
'3.24',
37+
'3.27',
38+
'3.28',
39+
];
40+
2641
uniqueProjectVersions.forEach((uniqVersion) => {
42+
if (
43+
!oldVersions.includes(uniqVersion) &&
44+
!semver.gte(`${uniqVersion}.0`, '4.0.0')
45+
) {
46+
return;
47+
}
48+
2749
urls.push(`/${p}/${uniqVersion}`);
2850

2951
const sortedPatchVersions = fullProjectVersions

0 commit comments

Comments
 (0)