npm dependency-cruiser 5.4.0

latest releases: 16.7.0-beta-1, 16.6.0, 16.6.0-beta-1...
4 years ago

Support for exotic requires

There are codebases where modules aren't imported by regular means like es6 import or commonjs require. With this feature dependency-cruiser can detect the lion's share of these - just add them in the dependency-cruiser config in exoticRequireStrings and Bob's your uncle.

  • feature(extract): recognize composite exotic requires (e.g. window.require) (#218)
  • feature(extract): enable detection of commonjs dependencies not (directly) declared with 'require' (#216)

If you want to restrict the use of these alternative/ exotic requires, you can do so with the new exoticRequire and exoticRequireNot conditions.

  • feature(extract|validate): allow rule definitions based on exotic required'ness (#217)

Thanks @tvolodimir for requesting this feature (in #206)

regular maintenance

  • build(npm): ⬆️ eslint, eslint-plugin-mocha, lint-staged, yarn
  • ci(gh-actions): set up node modules cache (#215)

Don't miss a new dependency-cruiser release

NewReleases is sending notifications on new releases.