We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
jsx
1 parent 60e76e5 commit e5085ddCopy full SHA for e5085dd
src/utils/generators.mjs
@@ -62,10 +62,10 @@ export const coerceSemVer = version => {
62
* @returns {Array<Release>}
63
*/
64
export const getCompatibleVersions = (introduced, releases) => {
65
+ if (!introduced) return releases;
66
const coercedMajor = major(coerceSemVer(introduced));
67
// All Node.js versions that support the current API; If there's no "introduced_at" field,
68
// we simply show all versions, as we cannot pinpoint the exact version
- if (!introduced) return releases;
69
return releases.filter(release => release.version.major >= coercedMajor);
70
};
71
0 commit comments