Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
src: deprecate engineStrict in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
othiym23 committed Feb 13, 2015
1 parent 38c4825 commit 7c81a5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/cache/add-named.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ function engineFilter (data) {
Object.keys(data.versions || {}).forEach(function (v) {
var eng = data.versions[v].engines
if (!eng) return
if (data.versions[v].engineStrict) {
log.warn("deprecation", "Per-package engineStrict will no longer be used")
log.warn("deprecation", "in upcoming versions of npm. Use the config")
log.warn("deprecation", "setting `engine-strict` instead.")
}
if (!strict && !data.versions[v].engineStrict) return
if (eng.node && !semver.satisfies(nodev, eng.node, true)
|| eng.npm && !semver.satisfies(npmv, eng.npm, true)) {
Expand Down

0 comments on commit 7c81a5f

Please sign in to comment.