brightproof 2.4.0

Semantic Versioning 2.0.0 library


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

BrightProof Page on DUB Licence

SemVer 2.0.0 parsing and constructing library

Comparing

You can compare structs.

SemVer("1.0.0-rc.1") < SemVer("1.0.0-rc.20");
SemVer("1.0.0-rc.1") < SemVer("1.0.0");
SemVer("1.0.0-rc.1") < SemVer("1.0.0+build.1");

Examples

Check out ./examples directory

Compile-time

You can use this library at compile-time.

pragma(msg, SemVer("1.0.0").nextMajor.nextMinor.toString);

Authors: Azbuka

Dependencies: natcmp

Versions:
2.4.0 2016-Nov-12
2.3.0 2016-Nov-11
2.2.1 2016-Aug-11
2.2.0 2016-Apr-09
2.1.3 2016-Mar-31
Show all 15 versions
Stats:
  • 2 downloads today

  • 2 downloads this week

  • 14 downloads this month

  • 140 downloads total