jsemver
jsemver copied to clipboard
Java implementation of the SemVer Specification
I suppose it is the "-beta" which makes trouble: ``` Illegal character near 'beta.1' at com.github.zafarkhaja.semver.expr.Lexer.tokenize(Lexer.java:218) at com.github.zafarkhaja.semver.expr.ExpressionParser.parse(ExpressionParser.java:86) at com.github.zafarkhaja.semver.expr.ExpressionParser.parse(ExpressionParser.java:43) at com.github.zafarkhaja.semver.Version.satisfies(Version.java:325) ```
The below example should return with true, but it doesn't. ``` final Version version = Version.valueOf("1.2.3-45"); final Expression expression = ExpressionParser.newInstance().parse("1.2.3-45"); System.out.println("satisfies: " + version.satisfies(expression)); ``` Due to this problem,...
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1. Release notes Sourced from junit's releases. JUnit 4.13.1 Please refer to the release notes for details. JUnit 4.13 Please refer to the release notes...
Hi, i'm using version 0.9.0 and im receiving unexpectedTokenException when trying to use: Version v1 = Version.valueOf("5.10.1"); System.out.println(v1.satisfies("5.x.0")); https://docs.npmjs.com/misc/semver#x-ranges-12x-1x-12-
Hi, @zafarkhaja . We're interested in utilizing semantic versioning in our application where the client (through a HTML/JS UI) specifies a dependency using semver syntax (ie ~1.0) and we have...
Users of our app were noticing that the way it increments versions with and without prerelease metadata was different from how `npm version ` behaves. with the input `1.2.3-pre.1+build.1` the...
Hello, I have added the ability to parse non-fully compatible versions like 1.0-SNAPSHOT because in our project we would like to use SemVer. But we have some legacy versions and...
Using the latest version 0.9.0 I am unable to parse certain wildcard ranges such as "5.x.x". Specifically, the wildcard specified in the patch field is a problem for the parser....
Between jsemver and [semver.java](https://github.com/jknack/semver.java) we have all the functionality we need. It would be great if we could combine them. What's nice about semver.java is the match expression language. You...
`boolean satisfies = Version.valueOf("15.6.1").satisfies(">=0.14.0 &