check-peer-dependencies
Advanced tools
Comparing version 3.1.0 to 4.0.0
@@ -0,1 +1,16 @@ | ||
# 4.0.0 (2020-12-27) | ||
[Compare `check-peer-dependencies` versions 3.1.0 and 4.0.0](https://github.com/christopherthielen/check-peer-dependencies/compare/3.1.0...4.0.0) | ||
### Features | ||
* **prerelease:** include prerelease when matching ranges, i.e. the range ">=6.0.0" matches "7.0.0-beta.1" ([0493379](https://github.com/christopherthielen/check-peer-dependencies/commit/0493379)) | ||
### BREAKING CHANGES | ||
* **prerelease:** Matches prerelease versions | ||
# 3.1.0 (2020-12-23) | ||
@@ -2,0 +17,0 @@ [Compare `check-peer-dependencies` versions 3.0.0 and 3.1.0](https://github.com/christopherthielen/check-peer-dependencies/compare/3.0.0...3.1.0) |
@@ -15,2 +15,3 @@ #!/usr/bin/env node | ||
exports.__esModule = true; | ||
exports.checkPeerDependencies = void 0; | ||
var semver = require("semver"); | ||
@@ -25,3 +26,3 @@ var shelljs_1 = require("shelljs"); | ||
var installedVersion = packageUtils_1.getInstalledVersion(dep); | ||
var semverSatisfies = installedVersion ? semver.satisfies(installedVersion, dep.version) : false; | ||
var semverSatisfies = installedVersion ? semver.satisfies(installedVersion, dep.version, { includePrerelease: true }) : false; | ||
var isYalc = !!/-[a-f0-9]+-yalc$/.exec(installedVersion); | ||
@@ -28,0 +29,0 @@ return __assign(__assign({}, dep), { installedVersion: installedVersion, semverSatisfies: semverSatisfies, isYalc: isYalc }); |
"use strict"; | ||
exports.__esModule = true; | ||
exports.getCommandLines = exports.getPackageManager = void 0; | ||
var fs = require("fs"); | ||
@@ -4,0 +5,0 @@ function getPackageManager(forceYarn, forceNpm) { |
"use strict"; | ||
exports.__esModule = true; | ||
exports.isSameDep = exports.getInstalledVersion = exports.resolvePackageDir = exports.getPackageMeta = exports.walkPackageDependencyTree = exports.gatherPeerDependencies = void 0; | ||
var fs = require("fs"); | ||
@@ -4,0 +5,0 @@ var path = require("path"); |
"use strict"; | ||
exports.__esModule = true; | ||
exports.readJson = void 0; | ||
var fs_1 = require("fs"); | ||
@@ -4,0 +5,0 @@ function readJson(filename) { |
"use strict"; | ||
exports.__esModule = true; | ||
exports.findPossibleResolutions = void 0; | ||
var semver = require("semver"); | ||
@@ -35,3 +36,5 @@ var shelljs_1 = require("shelljs"); | ||
var availableVersions = JSON.parse(rawVersionsInfo.replace(/'/g, '"')).sort(semverReverseSort); | ||
return availableVersions.find(function (ver) { return requiredPeerVersions.every(function (peerVer) { return semver.satisfies(ver, peerVer.version); }); }); | ||
return availableVersions.find(function (ver) { return requiredPeerVersions.every(function (peerVer) { | ||
return semver.satisfies(ver, peerVer.version, { includePrerelease: true }); | ||
}); }); | ||
} | ||
@@ -38,0 +41,0 @@ catch (err) { |
{ | ||
"name": "check-peer-dependencies", | ||
"version": "3.1.0", | ||
"version": "4.0.0", | ||
"description": "Checks peer dependencies of the current package. Offers solutions for any that are unmet.", | ||
@@ -32,15 +32,15 @@ "main": "dist/check_peer_dependencies.js", | ||
"dependencies": { | ||
"resolve": "^1.14.1", | ||
"semver": "^7.1.1", | ||
"shelljs": "^0.8.3", | ||
"yargs": "^15.0.2" | ||
"resolve": "^1.19.0", | ||
"semver": "^7.3.4", | ||
"shelljs": "^0.8.4", | ||
"yargs": "^16.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^13.1.1", | ||
"@types/semver": "^6.2.0", | ||
"@types/shelljs": "^0.8.6", | ||
"@types/yargs": "^13.0.4", | ||
"@uirouter/publish-scripts": "^2.3.42", | ||
"typescript": "^3.7.4" | ||
"@types/node": "^14.14.16", | ||
"@types/semver": "^7.3.4", | ||
"@types/shelljs": "^0.8.8", | ||
"@types/yargs": "^15.0.12", | ||
"@uirouter/publish-scripts": "^2.5.4", | ||
"typescript": "^4.1.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
60539
544
+ Addedcliui@7.0.4(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedwrap-ansi@7.0.0(transitive)
+ Addedy18n@5.0.8(transitive)
+ Addedyargs@16.2.0(transitive)
+ Addedyargs-parser@20.2.9(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcliui@6.0.0(transitive)
- Removeddecamelize@1.2.0(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-exists@4.0.0(transitive)
- Removedrequire-main-filename@2.0.0(transitive)
- Removedset-blocking@2.0.0(transitive)
- Removedwhich-module@2.0.1(transitive)
- Removedwrap-ansi@6.2.0(transitive)
- Removedy18n@4.0.3(transitive)
- Removedyargs@15.4.1(transitive)
- Removedyargs-parser@18.1.3(transitive)
Updatedresolve@^1.19.0
Updatedsemver@^7.3.4
Updatedshelljs@^0.8.4
Updatedyargs@^16.2.0