oliverdavies.uk/source/_daily_emails/2023-05-19.md

20 lines
780 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: >
Semantic versioning
pubDate: 2023-05-19
permalink: >-
archive/2023/05/19/semantic-versioning
tags:
- software-development
---
The version number of a release is a key indicator of whether its compatible with existing code.
Semantic versioning is a popular approach used by Drupal core, and many contributed modules, themes and distributions.
It uses version numbers like 1.0.0 to show the major, minor and patch versions.
If the second or third number changes, e.g. 1.1.0 or 1.0.1, the release contains new backwards-compatible features or fixes, so its safe to update.
If the first number changes, e.g. 2.0.0, the release is not backwards compatible and contains breaking changes that youll need to review and update your code accordingly.