Say you have a package Foo
that relies on package Bar
.
Initially Foo v1.0.0
relied on Bar v1.0.0
.
Bar
updated to v2.0.0
.
You now update the dependencies of Foo
so it now requires Bar v2.0.0
.
Since this upgrade of Bar
does not break, add, or fix any feature in Foo
, which part in the semantic versioning of Foo
should you update to reflect this change?
Note: In case you're wondering why do I even have to update Bar
to v2.0.0
if it won't change anything in Foo
-- if other packages in your app also require Bar
but at v2.0.0
, it will conflict if Foo
only requires Bar
at 1.0.0
. AFAIK this is the behavior in PHP Composer.