Adding transitive dependencies might be tricker, because then you can't tell what of your direct dependencies to upgrade.
It might be more useful to assign each direct dependency's transitives to it, and then you can do maths to figure out whether updating a direct dependency actually has an effect (e.g. 2 directs both with a 50 lib year dependency aren't worth upgrading unless you upgrade both of them.)
Comments
But this still means that you're either on the latest version or 39 libyears behind (if you count all dependencies of dependencies of dependencies...)
Adding transitive dependencies might be tricker, because then you can't tell what of your direct dependencies to upgrade.
It might be more useful to assign each direct dependency's transitives to it, and then you can do maths to figure out whether updating a direct dependency actually has an effect (e.g. 2 directs both with a 50 lib year dependency aren't worth upgrading unless you upgrade both of them.)
I think each dependency is only counted once, even if it’s recursively included many times.