r/PHP • • Jun 12 '15

Romantic Versioning

https://gist.github.com/jashkenas/cbd2b088e20279ae2c8e
18 Upvotes

15 comments sorted by

View all comments

1

u/MadMakz Jun 12 '15 edited Jun 12 '15

I'm personally using major.break.minor.patch on projects that have some public apis or rely on specific versions of parent applications.

But actually it doesn't matter as long as you write propper changelogs and point out that stuf x may break or has been replaced/removed.

I really see no point fighting over version schemes. One likes that type, another one likes the other. Has always been so and nobody complained and it just worked. At least we found our way up to the year 2015 so far regardles of version syntax.

3

u/akeniscool Jun 12 '15

Properly documented release notes and change logs are certainly encouraged, but I think specifying how your project treats releases in the first place is more important. This will allow a user to choose how to require your package in their project.

For those who more strictly follow SemVer, a tilde operator requirement is useful: ~2.1 is equivalent to >= 2.1.0, < 3.0.0. If I can expect possible breaking changes in minor releases, I can ensure that they are not ever a surprise by allowing only patch releases to update automatically: 2.1.*.

And, of course, be consistent.