4
Well, here at Stackoverlow I could learn about Versioning.
I was able to understand perfectly the versioning scheme, and how each of the "points" that separate the numbers from the versions work.
I noticed that several libraries (like Composer for example) with the default #.#.#
, and Versionar is usually from 1. That is to say, 1.0.0
.
For example:
"phplegends/pt-br-validator": "1.0.4",
"maatwebsite/excel" : "1.1.0",
I thought that a lock of a pattern start to number the version (first digit) of the library from 1.0.0
. However I saw libraries starting (the first number) from 0
.
For example, this library of Barryvdh/Laravel-Dompdf is in the version 0.4.*
:
"barryvdh/laravel-dompdf": "0.4.*",
Why do some libraries do this?
When the library begins with 0
instead of 1
, has some special meaning (such as a beta version, for example)?
They are usually pre-release versions, or not yet mature enough to be considered a release candidate.
– OnoSendai
Guys, what’s with the negatives? I don’t understand. Please, demonstrate here. I take the time to ask the questions to clear my doubts and anyone else’s doubts, and you’re just standing there doing it. If something’s really wrong, don’t be quiet, show me...
– Wallace Maxters
Thanks for the info @Onosendai :D
– Wallace Maxters
In addition to @Onosendai there are some rare release cases that are on
0.x
because the developer does not understand well how versioning works.– Guilherme Nascimento