composer-diff icon indicating copy to clipboard operation
composer-diff copied to clipboard

mdtable: enable listing if a dependency is a direct dependency or not

Open voxpelli opened this issue 8 months ago • 2 comments

I would love to have a column in the diff that indicates whether its a direct dependency or not (and if not it would be nice if one could somehow do something like composer depends --tree to figure out which direct dependencies it is that has caused its inclusion)

That way one can easier figure out if eg. a dependabot update might be better handled by upgrading the direct dependency rather than having it update a sub dependency

voxpelli avatar Mar 20 '25 10:03 voxpelli

Thanks for the suggestion - I was thinking about this when implementing #40 and it is actually there when using json formatter. I decided not to add it in mdtable as it could be considered a breaking change unless someone needs it. Let me prepare a PR to add this 👍🏻 and I'll add you as reviewer.

IonBazan avatar Mar 20 '25 10:03 IonBazan

I was thinking with a with-ancestry: true or something like that

voxpelli avatar Mar 20 '25 12:03 voxpelli