https://www.npmjs.com/package/react-router-dom?activeTab=ver...
As it happens, I was curious about the same thing last year and wrote a script you can run in the browser console to add them up, and it does prove something:
react-router-dom
v6 5820458
v5 3274886
v4 275081
react-router
v6 5993187
v5 3366625
v4 302549
v3 156121
v2 25726
v1 8448
v0 2447
Code here: versionsHeader = Array.from(document.querySelectorAll("h3")).find(
(h3) => h3.textContent === "Version History",
);
// requires a second .nextElementSibling for react-router
// because of the deprecated versions checkbox
versions = versionsHeader ? versionsHeader.nextElementSibling : null;
nums = Array.from(versions.children)
.slice(1)
.map((el) => [
el.children[0].textContent,
parseInt(el.children[2].textContent.replace(/,/g, ""), 10),
]);
for (const v of [6, 5, 4]) {
const sum = nums
.filter((c) => c[0].startsWith(`${v}.`))
.map((c) => c[1])
.reduce((a, b) => a + b, 0);
console.log(`v${v}`, sum);
}