rk0cc / versum

Semantic Versioning Dart object with flexible version constraint policy

Home Page:https://pub.dev/packages/versum

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Customizable version constraint policy

badge GitHub Sponsors

Versum allows to custom define version constraint policy depending package manager.

Usage

Parse version

  • Constructor
    SemVer constructor = SemVer(major: 1);
  • Parse from String
    SemVer parse = SemVer.parse("1.0.0");

Version constraint

P.S. Different package has different implementation.

VersionConstraint constraint = DummyVersionConstraint(">=1.0.0 <2.0.0");

bool isInRange = constraint.stastified(SemVer.parse("1.2.0"));

License

BSD-3

About

Semantic Versioning Dart object with flexible version constraint policy

https://pub.dev/packages/versum

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%