jsemver icon indicating copy to clipboard operation
jsemver copied to clipboard

Java implementation of the SemVer Specification

Results 46 jsemver issues
Sort by recently updated
recently updated
newest added

It would be useful if patch version was optional, i.e. versions could be 1.3, 1.3-RC1 etc. I'm using the axion-release-plugin which uses jsemver, and this pull request making patch version...

#### What does this PR do? Swaps `int` to `long` in `NormalVersion`. Updates parsing to handle the larger possible numbers. Added a test to `VersionParserTest.java` to cover this scenario. ####...

I did not check the specs, but in my application I must process partial version strings, like "1.2". The current parser accepts only "1.2.0". I patched the VersionParser.parseVersionCore() to: ```...

duplicate
question

I noticed that the OR (`|`) notation differs from other implementation like node-semver and the [Haskell implementation](https://github.com/adnelson/semver-range/blob/ccd118d1b9310a88748f4bfe530e8b9014b8741d/src/Data/SemVer.hs#L99). Example: ``` jsemver: 3 node semver: 3 ``` Is this on purpose or...

Sadly, everyone doesn't use SemVer but it could be useful to use jsemver in order to compare versions in the SemVer way. In this case, a `boolean isSemVer()` method could...

enhancement

I have use cases where I need to do something if some string is not a semantic version. Currently I have to write: // if the requested version is an...

enhancement

The idea is to make Java SemVer modular by separating different concepts of SemVer into independent modules using Maven's Project Aggregation. The different modules could be the SemVer's core specification,...

type/enhancement
scope/infrastructure
priority/low
status/on-hold

Character-based parsing is a tedious and error-prone process. It also makes it difficult to handle lexical ambiguities and implement a good error handling especially in a LL(k) parser. So, need...

enhancement

On first glance the library looks nice. But then I try to do something simple, one of the basic things of semantic versioning: check for minor-version compatibility. How do I...

enhancement
question

This method does not use `input` parameter: https://github.com/zafarkhaja/jsemver/blob/master/src/main/java/com/github/zafarkhaja/semver/VersionParser.java#L180

enhancement