Problem/Motivation
2.1.0 introduces a change in the AddToCartLink constructor that may affect to sites that manually instantiates this class.
This API change is not announced in the release notes and could potentially break sites.
Steps to reproduce
* Install module in version 2.0.6
* Manually instantiate for any reason AddToCartLink or AddToWishListLink class
* Upgrade to 2.1.0
* Site breaks because the 2 constructor parameter is required
Proposed resolution
Add BC dance to deprecate the old constructor and give time to site admins to adapt their sites.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork commerce_add_to_cart_link-3512138
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
plopescMR created.
Comment #4
plopescComment #5
vladimirausThank you for your contribution. Looks good.
Comment #6
vladimirausMerged. Thank you for your contributions. 🍰
Waiting for the release as I don't have release privileges.
Comment #8
agoradesign commentedthe MR wasn't merged, seems it isn't mergeable anymore
Comment #10
plopescThank you for merging!
I think we can mark it as fixed now.
Comment #11
vladimirausShweet! Thanks all!