![]() As developers who publish libraries for public use, we must follow the convention and make sure our patch and minor updates are backward compatible. For additional info, check: Ī word about self-responsibility - In theory, everything sounds perfectly simple, though in real life, it could happen that a library patch or minor update won’t be backward compatible and will cause previous version code to break. ![]() ![]() There are other symbols that can let you pick your version range more specifically. Tilde (~) - a tilde prefix will only promote patch versions, meaning that you’ll get the highest patch version for your current minor.It gives you the highest minor version available with its highest patch version. Caret (^) - a caret is the default prefix you get from npm after installing a new package.A major update represents a change which is massive and could change the whole mechanism of the library and how it works. Major -A major update is very different from the previous kind of updates since it is not backward compatible (meaning, upgrading to a new major version introduces breaking changes and might cause your previous version code to break).Minor -A minor update represents an update which introduces new features and it’s also backward compatible.Patch - A patch is an update which is meant to fix existing bugs and it’s backward compatible (meaning you can update without having to worry about your current usage of the library being broken).
0 Comments
Leave a Reply. |