npm-pick-manifest
Advanced tools
Comparing version 1.0.4 to 2.0.0
@@ -5,2 +5,23 @@ # Change Log | ||
<a name="2.0.0"></a> | ||
# [2.0.0](https://github.com/zkat/npm-pick-manifest/compare/v1.0.4...v2.0.0) (2017-10-03) | ||
### Bug Fixes | ||
* **license:** relicense project according to npm policy (#3) ([ed743a0](https://github.com/zkat/npm-pick-manifest/commit/ed743a0)) | ||
### Features | ||
* **selection:** Avoid matching deprecated packages if possible ([3fc6c3a](https://github.com/zkat/npm-pick-manifest/commit/3fc6c3a)) | ||
### BREAKING CHANGES | ||
* **selection:** deprecated versions may be skipped now | ||
* **license:** This moves the license from CC0 to ISC and properly documents the copyright as belonging to npm, Inc. | ||
<a name="1.0.4"></a> | ||
@@ -7,0 +28,0 @@ ## [1.0.4](https://github.com/zkat/npm-pick-manifest/compare/v1.0.3...v1.0.4) (2017-06-29) |
@@ -16,2 +16,3 @@ 'use strict' | ||
const versions = Object.keys(packument.versions || {}).filter(v => semver.valid(v, true)) | ||
const undeprecated = versions.filter(v => !packument.versions[v].deprecated) | ||
let err | ||
@@ -50,2 +51,5 @@ | ||
if (!target) { | ||
target = semver.maxSatisfying(undeprecated, wanted, true) | ||
} | ||
if (!target) { | ||
target = semver.maxSatisfying(versions, wanted, true) | ||
@@ -52,0 +56,0 @@ } |
@@ -1,3 +0,16 @@ | ||
To the extent possible under law, maintainers for this project have waived all copyright and related or neighboring rights to this project. | ||
ISC License | ||
For more information on this waiver, see: https://creativecommons.org/publicdomain/zero/1.0/ | ||
Copyright (c) npm, Inc. | ||
Permission to use, copy, modify, and/or distribute this software for | ||
any purpose with or without fee is hereby granted, provided that the | ||
above copyright notice and this permission notice appear in all copies. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS | ||
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE | ||
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR | ||
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS | ||
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE | ||
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE | ||
USE OR PERFORMANCE OF THIS SOFTWARE. |
{ | ||
"name": "npm-pick-manifest", | ||
"version": "1.0.4", | ||
"version": "2.0.0", | ||
"description": "Resolves a matching manifest from a package metadata document according to standard npm semver resolution rules.", | ||
@@ -29,10 +29,10 @@ "main": "index.js", | ||
}, | ||
"license": "CC0-1.0", | ||
"license": "ISC", | ||
"dependencies": { | ||
"npm-package-arg": "^5.1.2", | ||
"semver": "^5.3.0" | ||
"semver": "^5.4.1" | ||
}, | ||
"devDependencies": { | ||
"nyc": "^10.3.2", | ||
"standard": "^9.0.2", | ||
"nyc": "^11.2.1", | ||
"standard": "^10.0.3", | ||
"standard-version": "^4.2.0", | ||
@@ -39,0 +39,0 @@ "tap": "^10.7.0", |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
9225
0
100
69
Updatedsemver@^5.4.1