Skip to content

Commit

Permalink
fix version compatibility check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git committed Jul 25, 2024
1 parent b9dba44 commit 2bd399a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Version {
public isCompatible(a: Version | Version.Versionable): boolean {
const version = a instanceof Version ? a : a.version;
if (this.major !== version.major) return false;
return this.minor > version.minor;
return this.minor >= version.minor;
}
}

Expand Down

0 comments on commit 2bd399a

Please sign in to comment.