versum 1.0.0 copy "versum: ^1.0.0" to clipboard
versum: ^1.0.0 copied to clipboard

Modulized version constraint that specify implementation for different package system in Dart.

Customizable version constraint policy #

badge

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

0
likes
130
pub points
0%
popularity

Publisher

verified publisherrk0cc.xyz

Modulized version constraint that specify implementation for different package system in Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

meta, quiver

More

Packages that depend on versum