sverweij / dependency-cruiser

Validate and visualize dependencies. Your rules. JavaScript, TypeScript, CoffeeScript. ES6, CommonJS, AMD.
https://npmjs.com/dependency-cruiser
MIT License
5.16k stars 249 forks source link

feat!: restructures the via* sub-restrictions to also accept & validate against dependency types (BREAKING for API users) #894

Closed sverweij closed 9 months ago

sverweij commented 9 months ago

Description

This is a breaking change for the API only

Motivation and Context

There's a long outstanding and much upvoted request (#695) to be able to exclude e.g. type-only over a whole cycle instead to just the first dependency of the cycle. This PR enables that.

How Has This Been Tested?

Types of changes

Checklist

codeclimate[bot] commented 9 months ago

Code Climate has analyzed commit 67cf7611 and detected 0 issues on this pull request.

View more on Code Climate.