compare-versions
Advanced tools
Comparing version 3.3.1 to 3.4.0
{ | ||
"name": "compare-versions", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Compare semver version strings to find greater, equal or lesser.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Changelog | ||
## [3.4.0](https://github.com/omichelsen/compare-versions/releases/tag/v3.4.0) - 2018-08-30 | ||
- Show rejected version in error message. | ||
## [3.3.1](https://github.com/omichelsen/compare-versions/releases/tag/v3.3.1) - 2018-08-18 | ||
@@ -4,0 +7,0 @@ - Fix TypeScript export declaration. |
@@ -36,3 +36,3 @@ /* global define */ | ||
if (!semver.test(version)) { | ||
throw new Error('Invalid argument not valid semver'); | ||
throw new Error('Invalid argument not valid semver (\''+version+'\' received)'); | ||
} | ||
@@ -39,0 +39,0 @@ } |
{ | ||
"name": "compare-versions", | ||
"version": "3.3.1", | ||
"version": "3.4.0", | ||
"description": "Compare semver version strings to find greater, equal or lesser.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -5,4 +5,5 @@ # compare-versions | ||
[![Coverage Status](https://coveralls.io/repos/omichelsen/compare-versions/badge.svg?branch=master&service=github)](https://coveralls.io/github/omichelsen/compare-versions?branch=master) | ||
[![npm bundle size (minified + gzip)](https://img.shields.io/bundlephobia/minzip/compare-versions.svg)](https://bundlephobia.com/result?p=compare-versions) | ||
Compare [semver](https://semver.org/) version strings to find greater, equal or lesser. Runs in the browser as well as Node.js/React Native etc. Has no dependencies and is tiny (<600 bytes gzipped). | ||
Compare [semver](https://semver.org/) version strings to find greater, equal or lesser. Runs in the browser as well as Node.js/React Native etc. Has no dependencies and is tiny (~630 bytes gzipped). | ||
@@ -9,0 +10,0 @@ This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`. Additionally supports the following variations: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15060
70