Files
SPT-Server-Build/Libraries/SPTarkov.Common/Semver/ISemVer.cs
T
DrakiaXYZ c756479239 Fix mod SptVersion to be a range (#605)
* Fix mod SptVersion to be a range
- SptVersion and ModDependencies now use a Range instead of a set version
- Remove IsValid and IsValidRange checks from ModValidator, as invalid values will fail to parse into the strong types before this method is called
- Remove unused "AnySatisfies" and "IsValid*" methods from ISemVer
- Update TestMod to use Range types

* Formatting

---------

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
2025-10-07 15:56:48 +00:00

14 lines
452 B
C#

using Range = SemanticVersioning.Range;
using Version = SemanticVersioning.Version;
namespace SPTarkov.Common.Semver;
public interface ISemVer
{
string MaxSatisfying(List<Version> versions);
string MaxSatisfying(IEnumerable<Version> versions);
string MaxSatisfying(string version, List<Version> versions);
string MaxSatisfying(string version, IEnumerable<Version> versions);
bool Satisfies(Version version, Range testRange);
}