S
S
Sergey Krivochenko2016-06-22 18:26:37
Yii
Sergey Krivochenko, 2016-06-22 18:26:37

How to inform users of a composer package about a version change that breaks backwards compatibility?

Hello. There is a Yii2 extension written by me that is distributed through Composer. I wrote a long time ago, now I decided to refactor and cover with tests. In the process, there are many class and method relocations that break backward compatibility. If one of the installed users executes composer update, then after that a bunch of errors will appear in the project. How to warn the user about this? Is it possible to output composer updatesome message to the console when executing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2016-06-22
@VladimirAndreev

change the major version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question