Skip to content

FreddieRidell/wren-semver

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Wren SemVer

A package for constructing, comparing and matching Semantic Versions

This library uses Recto, a string manipulation library, which is included as a git submodule. Ironically, the whole point of this SemVer package is to aid creation of a Wren package manager, which will be used to include Recto, woah: confusing!

SemVer exposes two constructors:

  • version: creates a single semver version, like 2.3.4
  • matcher: creates a semver matcher, that can be used to test if a version is inside a range, like 2.x.x

Matchers and Versions can be compared using ==, !=, < <=, >=, & >=; and hopefully return what you'd expect from those comparisons

ToDo:

  • node style ~ & ^ matcher specifiers
  • trailing -foo.bar release tags
  • trailing +baz.quz build metadata

About

A Semantic Versioning package for wren

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published