npm dependency-cruiser 1.15.0

latest releases: 16.6.0, 16.6.0-beta-1, 16.5.0...
7 years ago
  • 🐣 include support for matching groups:
    • Sometimes you'll want to use a part of the path the 'from' part of your rule matched and use it in the 'to' part. E.g. when you want to prevent stuff in the same folder to be matched.
    • To achieve this you'll need to do two things:
      • In the to of your rule:
        Make sure the part of the path you want to be matched is between brackets.
        Like so: "^src/([^/]+)/.+"
      • In the from part of your rule:
        You can reference the part matched between brackets by using $1 in path
        and pathNot rules. Like so: "pathNot": "^src/$1/.+".
    • See group matching in the rules guide for a little more information.
  • 🔧 with the introduction of 'matching groups', the ownFolder attribute is deprecated. 'matching groups' offer more flexibility and more straightforward semantics, while they can achieve the same.
  • 🐛 pathNot attributes with scary regular expressions now get flagged as well (path attributes already had this)

Don't miss a new dependency-cruiser release

NewReleases is sending notifications on new releases.