npm dependency-cruiser 9.21.0

latest releases: 16.4.2, 16.4.1, 16.4.0...
3 years ago

🌟 Features

  • feature(resolve): improves support for package entry points (#407)
  • feature(init): types the generated .dependency-cruiser.js
    Newly generated .dependency-cruiser.js get a comment on top that declares the type of the exported object. In editors that support this, this will grow you code completion for the configuration.

You can use this type declaration in your own .dependency-cruiser.js configurations too:

/** @type {import('dependency-cruiser').IConfiguration} */
module.exports = {
  forbidden: [
    ...
  ],
  options: {
    ...
  }
}

If you're using a .json configuration - if you point it to the location of the schema (with the "$schema" attribute at root level)
it'll get you code completion as well

 {
   "$schema": "https://raw.githubusercontent.com/sverweij/dependency-cruiser/master/src/schema/configuration.schema.json",
   "forbidden": [
     ...
   ],
   "options": {
     ...
   }
}

Do upgrade to 9.21.0 for this to work, though.

👷‍♀️ Maintenance

  • build(npm): ⬆️ @typescript-eslint/eslint-plugin, @typescript-eslint/parser, ajv, commander, eslint, eslint-config-prettier, eslint-plugin-unicorn, enhanced-resolve

Where is version 9.20.0?

20 has proven to be an unlucky number this year, so we skipped it.

Don't miss a new dependency-cruiser release

NewReleases is sending notifications on new releases.