Skip to content

Commit e5085dd

Browse files
committed
fixup! feat(jsx): add jsx generator
1 parent 60e76e5 commit e5085dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/generators.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ export const coerceSemVer = version => {
6262
* @returns {Array<Release>}
6363
*/
6464
export const getCompatibleVersions = (introduced, releases) => {
65+
if (!introduced) return releases;
6566
const coercedMajor = major(coerceSemVer(introduced));
6667
// All Node.js versions that support the current API; If there's no "introduced_at" field,
6768
// we simply show all versions, as we cannot pinpoint the exact version
68-
if (!introduced) return releases;
6969
return releases.filter(release => release.version.major >= coercedMajor);
7070
};
7171

0 commit comments

Comments
 (0)