You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/intro-to-semver.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,14 +8,14 @@ Version lock is when we rely on absolute versions, both **FacebookApi** and **Tw
8
8
9
9
Version Promiscuity is the opposite problem, **JsonLibrary** releases _v1.1.0_ with some breaking changes then we will just upgrade an **TwitterApi** will break unexpectedly.
10
10
11
-
SemVer introduces conventions about breaking changes into our version numbers so we can safely upgrade dependencies without fear of unexpected breaking changes while still allowing us to upgrade downstream libraries to get new features and bug fixes. The convention is quite simple.
12
-
13
-
{major}.{minor}.{patch}-{tag}+{buildmetadata}
14
-
{major} = Only incremented if the release has breaking changes (includes bug fixes which have breaking behavioural changes
15
-
{minor} = Incremented if the release has new non-breaking features
16
-
{patch} = Incremented if the release only contains non-breaking bug fixes
17
-
{tag} = Optional -{tag} denotes a pre-release of the version preceeding
18
-
{buildmetadata} = Options +{buildmetadata} contains additional information about the version, but DOES NOT AFFECT the semantic version preceding it.
11
+
SemVer introduces conventions about breaking changes into our version numbers so we can safely upgrade dependencies without fear of unexpected breaking changes while still allowing us to upgrade downstream libraries to get new features and bug fixes. The convention is quite simple:
12
+
13
+
*`{major}.{minor}.{patch}-{tag}+{buildmetadata}`
14
+
*`{major}` is only incremented if the release has breaking changes (includes bug fixes which have breaking behavioural changes
15
+
*`{minor}` is incremented if the release has new non-breaking features
16
+
*`{patch}` is incremented if the release only contains non-breaking bug fixes
17
+
*`{tag}` is optional and denotes a pre-release of the version preceeding
18
+
*`{buildmetadata}` is optional and contains additional information about the version, but **does not affect** the semantic version preceding it.
19
19
20
20
Only one number should be incremented per release, and all lower parts should be reset to 0 (if major is incrememented then minor and patch should become 0).
0 commit comments