indexzero / nconf

Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.
https://github.com/indexzero/nconf
MIT License
3.87k stars 252 forks source link

yargs dependency is not updated #351

Closed sitvanit closed 3 years ago

sitvanit commented 3 years ago

I've upgraded nconf to 0.9.1 version in order to have the updated yargs dependency (16.0.0 as in the package.json). But even after the upgrade, the yargs version is still 3.19.0, although in the github repository it's 16.0.0.

This is the package.json after the installation of nconf@0.9.1:

{
  "_from": "nconf@0.9.1",
  "_id": "nconf@0.9.1",
  "_inBundle": false,
  "_integrity": "sha1-8RuvkPQYrs7wy0hJdLR5+0gD+mw=",
  "_location": "/nconf",
  "_phantomChildren": {},
  "_requested": {
    "type": "version",
    "registry": true,
    "raw": "nconf@0.9.1",
    "name": "nconf",
    "escapedName": "nconf",
    "rawSpec": "0.9.1",
    "saveSpec": null,
    "fetchSpec": "0.9.1"
  },
  "_requiredBy": [
    "/"
  ],
  "_resolved": "https://art-bobcat.autodesk.com:443/artifactory/api/npm/autodesk-npm-virtual/nconf/-/nconf-0.9.1.tgz",
  "_shasum": "f11baf90f418aecef0cb484974b479fb4803fa6c",
  "_spec": "nconf@0.9.1",
  "_where": "/Users/sitvanit/autodesk-projects/bim360-nodejs-packages/packages/logger",
  "author": {
    "name": "Charlie Robbins",
    "email": "charlie.robbins@gmail.com"
  },
  "bugs": {
    "url": "https://github.com/flatiron/nconf/issues"
  },
  "bundleDependencies": false,
  "contributors": [
    {
      "name": "Matt Hamann",
      "email": "matthew.hamann@gmail.com"
    },
    {
      "name": "Maciej Małecki",
      "email": "me@mmalecki.com"
    },
    {
      "name": "Jarrett Cruger",
      "email": "jcrugzz@gmail.com"
    },
    {
      "name": "Adrien Becchis"
    }
  ],
  "dependencies": {
    "async": "^1.4.0",
    "ini": "^1.3.0",
    "secure-keys": "^1.0.0",
    "yargs": "^3.19.0"
  },
  "deprecated": false,
  "description": "Hierarchical node.js configuration with files, environment variables, command-line arguments, and atomic object merging.",
  "devDependencies": {
    "coveralls": "^2.11.4",
    "eslint": "^4.9.0",
    "istanbul": "^0.4.1",
    "nconf-yaml": "^1.0.2",
    "vows": "0.8.x"
  },
  "engines": {
    "node": ">= 0.4.0"
  },
  "homepage": "https://github.com/flatiron/nconf#readme",
  "keywords": [
    "configuration",
    "key value store",
    "plugabble"
  ],
  "license": "MIT",
  "main": "./lib/nconf",
  "name": "nconf",
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/flatiron/nconf.git"
  },
  "scripts": {
    "cover": "istanbul cover vows -- test/*-test.js test/**/*-test.js  --spec",
    "coveralls": "cat coverage/lcov.info | coveralls",
    "lint": "eslint .",
    "test": "vows test/*-test.js test/**/*-test.js --spec"
  },
  "version": "0.9.1"
}
mhamann commented 3 years ago

@sitvanit you'll need to upgrade to nconf v0.11 to get the updated yargs version.

sitvanit commented 3 years ago

@mhamann Thanks, now it works (it was confusing because the version in the package.json is 0.9.1).