From 8db280d8748c9285e79df9694f5056e38cce89af Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 25 Jan 2017 22:30:07 -0500 Subject: expose SemanticVersion constructor that parses a string --- release-notes.md | 6 ++++++ src/StardewModdingAPI/SemanticVersion.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/release-notes.md b/release-notes.md index 4e7b3a30..2ef8b332 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,5 +1,11 @@ # Release notes +## 1.8 +See [log](https://github.com/Pathoschild/SMAPI/compare/1.7...1.8). + +* For mod developers: + * You can now create a `SemanticVersion` from a version string. + ## 1.7 See [log](https://github.com/Pathoschild/SMAPI/compare/1.6...1.7). diff --git a/src/StardewModdingAPI/SemanticVersion.cs b/src/StardewModdingAPI/SemanticVersion.cs index daefda51..c29f2cf7 100644 --- a/src/StardewModdingAPI/SemanticVersion.cs +++ b/src/StardewModdingAPI/SemanticVersion.cs @@ -56,7 +56,7 @@ namespace StardewModdingAPI /// Construct an instance. /// The semantic version string. /// The is not a valid semantic version. - internal SemanticVersion(string version) + public SemanticVersion(string version) { var match = SemanticVersion.Regex.Match(version); if (!match.Success) -- cgit