npm dependency-cruiser 9.24.0

latest releases: 16.3.6, 16.3.5, 16.3.4...
3 years ago

🌟 Features

  • 59fdb49 feature(validate): adds a dependents count validation (#449) - thanks @davidparkagoda for the suggestion and the first validation!
  • 641a7c2 feature(enrich): adds dependents to each module (#446)

With these changes you can now define rules on the number of dependents a module must have. E.g. with this rule in the forbidden section, you can ensure modules in the shared folder are used at least twice (and if it drops below that you can move them to the sole dependent or remove the module altogether):

// ...
  {
    name: "no-unshared-in-shared",
    from: { 
      path: "^src",
      pathNot: "^src/shared"
    },
    module: {
      path: "^src/shared",
      numberOfDependentsLessThan: 2
    }
  },
// ...

You can read more about it in the rules reference on dependents rules and in the illustrated recipes.

🐛 Bugfixes

🧑‍🏭 Maintenance

  • e0e9f69/ 4f470be build(npm): @typescript-eslint/eslint-plugin, @typescript-eslint/parser, ajv, chai, commander, eslint, eslint-plugin-unicorn, mocha, tsconfig-paths-webpack-plugin
  • 577d8c4 chore: removes a superfluous file

Don't miss a new dependency-cruiser release

NewReleases is sending notifications on new releases.