Giter Site home page Giter Site logo

semver-j's Introduction

Hits-of-Code Actions Status

SemVer-J

A Java API for parsing and checking Semantic Versioning.

Features

  • Version parsing
  • Version comparison
  • Compatibility check

What's to come

  • Version adjustment (increment, build, tag, release);

Getting Started

The SemVer-J API is intended to be a standalone API for version comparison. No dependencies. You should depend on it ;)

Quickstart

Creating a new version

SemVer version = SemVer.of(1, 0, 0);

// Use the information
version.getMajor(); // 1
version.getMinor(); // 0
version.getPatch(); // 0

SemVer another = SemVer.parse("1.1.0");

// Version comparison
version.isNewerThan(another); // false
version.isOlderThan(another); // true
version.isCompatibleWith(another); // false
another.isCompatibleWith(version); // true

Problems?

If you find any issues please report them or better, send a pull request.

Authors:

  • Christian Hartung

semver-j's People

Contributors

hartungstenio avatar

Watchers

 avatar

semver-j's Issues

API for version adjustment

Add ways to modify versions, based on true versioning requirements (pre-release software, release the stable version, tag a build, etc.).

The SemVer object is immutable and must continue to be, so every adjustment must result in a new object.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.