Closed mfell closed 6 months ago
It might be a good idea for the Updates utility to do a better job highlighting all major plugin updates, and maybe provide the option to update to the latest version within the current major version instead. That wouldn’t be based on composer.json
constraints, though.
When you use the Updates utility, the resulting composer.json
file will set craftcms/cms
and plugin package constraints to the exact version you installed (no ^
or ~
), such as "carlcs/craft-redactorcustomstyles": "4.0.3"
above. 1 So if the Updates utility started respecting composer.json
constraints, it would be sticking with the current version for all packages by default.
1 It does that to protect you from accidentally updating the plugin via composer update
which, if the plugin license has expired, would update you to a version you aren’t licensed to use, unexpectedly requiring you to pay to renew the license.
Yo ... thank you Brandon for you comment! I agree, this would be a good idea, too.
It's not necessary, to protect the Updates Utility -> an Admin has to know, what he's doing. But with this concept, I have to chance to use the Update Utility -> which is know a little bit useless for me.
What happened?
Description
craft-neo
within it's major version 3.x (3.9.11 and 4.0.0 are available)"spicyweb/craft-neo": "^3.9.10"
^
) -> this is the bugcomposer update
-> Version 3.9.11 is chosen"spicyweb/craft-neo": "4.0.0"
Maybe this behaviour is the default for the CP ... but for this case it's still very confusing for me.
It would be very useful to get the information, that Version 4.0.0 is available but if a version constraint is set in composer.json, I want to be sure, that there is no update to next major release of a plugin, until I remove the version constraint in composer.json?
Steps to reproduce
"spicyweb/craft-neo": "^3.9.10"
Expected behavior
Use version 3.9.11
Actual behavior
Version 4.0.0 is chosen
Craft CMS version
4.5.13
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions