Skip to content

Releases: delfrrr/npm-consider

Supporting git dependencies from GitHub

10 Aug 07:56
Compare
Choose a tag to compare

Now if your package.json or transitive dependency packages will have dependency from public git repository on GitHub it will be correctly calculated.

This now works as expected.

  "dependencies": {
    "eslint": "github:eslint/eslint#v5.3.0",
    "webpack": "git+ssh://git@github.com/webpack/webpack.git"
  },

Known issues:

  • Feature works via GitHub API which has 60 requests per our limit (without token)
  • This does not work yet: github:eslint/eslint#v5.3.0
  • Private repositories does not work

If you need this fixed please submit a new issue here

Support for scoped registry urls

30 Jun 19:50
Compare
Choose a tag to compare

Now you can use npm-consider with private registries via associating a scope with a registry

npm login --registry=http://reg.example.com --scope=@myco

or

npm config set @myco:registry http://reg.example.com

Thanks Fabian for this contribution!

Skip unsupported protocols

11 Nov 07:51
Compare
Choose a tag to compare

Currently, npm-consider supports only packages hosted on registry.npmjs.org. Dependencies defined via git or http URLs will be skipped.

Support CI and automation scripts

09 Nov 06:38
Compare
Choose a tag to compare

Now you can call npm-consider install and get stats for a local package in the current directory.

Additionally you can provide limits in your package.json

"config": {
  "maxPackagesNumber": 100,
  "maxSizeBites": 840400,
  "allowedLicenseTypes": [
    "permissive",
    "publicDomain",
    "uncategorized"
  ]
}

and call npm-consider install --test in your automation scripts. If all limits are satisfied command will exit with code=0; otherwise code=1.

npm-consider

Support --production option

03 Nov 07:02
Compare
Choose a tag to compare

Now, when analysing dependencies in local package.json with npm-consider install you can provide --production option to skip devDependencies

Support npm install (with no parameters)

30 Oct 07:59
Compare
Choose a tag to compare

Now you can type $ npm-consider install and see stats for local package

Support yarn add

19 Oct 08:06
Compare
Choose a tag to compare

Now, if project contains yarn.lock file, then npm-consider will do yarn add with corresponding options.

Update license categories

18 Oct 06:03
Compare
Choose a tag to compare