nineinchnick / yii2-usr

Yii framework module for user authentication, password reset, registration and profile updating. A port of yii-usr to Yii Framework 2.0.
http://demo2.niix.pl
MIT License
39 stars 8 forks source link

Version numbering #30

Closed schmunk42 closed 10 years ago

schmunk42 commented 10 years ago

I noticed there's a getVersion method which returns 0.9.9.

According to semantic versioning, it should be 0.1.0 or none for now.

How should I deal with revisions in the 0.y.z initial development phase? The simplest thing to do is start your initial development release at 0.1.0 and then increment the minor version for each subsequent release.

This information should be obtained from composer anyway. What do you think about dropping this?

nineinchnick commented 10 years ago

You're right, this should be dropped. It was copied from the Yii 1 version and in Yii 2 there's no such method in base Module.

Also I'm going to fix the version number, thanks for noticing that.

schmunk42 commented 10 years ago

If you're on 0.x you don't have to take care about API changes according to semver.

My best practice in development so far is this: Start with 0.1.0 (but not too early), if it should work after the update increment the last digit. If it may break, increment the middle digit, eg. 0.2.0.

Only if you have a stable version go for the 1.0.0.

nineinchnick commented 10 years ago

Fixed in 7ac2f781dae7d8119c9f06d12e3bb6ea29fec0f6.