GithubHelp home page GithubHelp logo

chatie / semver Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 124 KB

The Enhanced Semantic Versioner for NPM

Home Page: https://npmjs.com/package/@chatie/semver

License: Apache License 2.0

JavaScript 9.43% Shell 34.15% TypeScript 56.42%

semver's Introduction

@chatie/semver

NPM Version npm (tag) Build Status

Linux Kernel Numbering

Source: How do Linux Versions Work?

The Enhanced Semantic Versioner for NPM

USAGE

This module is a wrapper of the NPM module semver, it provide following additional features:

  1. Two CLI utils that will identify whether this VERSION is for production(stable) or development(unstable):
    1. semver-is-prod
    2. semver-id-dev
  2. Added two methods to SemVer class:
    1. isProd(version: string): boolean
    2. isDev(version: string): boolean
  3. TypeScript support. It contains the typing definations already

Learn more about the original semver from its GitHub homepage: semver

BACKGROUND

Copy from Linux Kernel Version Numbering - http://www.linfo.org/kernel_version_numbering.html:

The second number denotes the major revision of the kernel version. It was formerly the case that even numbers indicated a stable release, that is, one that was deemed fit for production use (i.e., use in a non-experimental environment), such as 1.2, 2.4 or 2.6. Likewise, odd numbers, such as 1.1 or 2.5, have historically represented development releases. They were for testing new features and device drivers until they became sufficiently stable to be included in a stable release. However, this has changed starting with the Linux 2.6.x series, and new feature development now takes place in the same revision number.

Following the Semantic Versioning 2.0 http://semver.org/, and we will be able to use the MINOR version to indicated the release is STABLE or NOT.

Numbering rule:

  1. even numbers, such as 0.8, 0.12 indicated a stable release, which is fit for production use.
  2. odd numbers, such as 0.11 or 0.13, represented as development releases.

See also: wechaty/wechaty#905

CHANGELOG

v0.3 (master)

  1. remove binary semver-is-dev because it might introduce bugs when using in devops. Use semver-is-prod instead.

v0.2 June 09, 2019

  1. Beta Release

v0.0.1 June 08, 2019

  1. Wrap semver
  2. add new methods: isProd & isDev
  3. add new binary: semver-is-prod & semver-is-dev

AUTHOR

Huan LI (李卓桓) [email protected]

Profile of Huan LI (李卓桓) on StackOverflow

COPYRIGHT & LICENSE

  • Code & Docs © 2019 - now Huan LI [email protected]
  • Code released under the Apache-2.0 License
  • Docs released under Creative Commons

semver's People

Contributors

huan avatar dependabot-preview[bot] avatar

Watchers

James Cloos avatar  avatar

Forkers

pmazumda2022

semver's Issues

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

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.