composer-diff
composer-diff copied to clipboard
mdtable: enable listing if a dependency is a direct dependency or not
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
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.
I was thinking with a with-ancestry: true or something like that