diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-25 22:30:07 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-01-25 22:30:07 -0500 |
commit | 8db280d8748c9285e79df9694f5056e38cce89af (patch) | |
tree | 8429927456f9d0d06b48d8663bb41669dd9fd018 | |
parent | 08e9cd1263bd985259accab8a76655b533427097 (diff) | |
download | SMAPI-8db280d8748c9285e79df9694f5056e38cce89af.tar.gz SMAPI-8db280d8748c9285e79df9694f5056e38cce89af.tar.bz2 SMAPI-8db280d8748c9285e79df9694f5056e38cce89af.zip |
expose SemanticVersion constructor that parses a string
-rw-r--r-- | release-notes.md | 6 | ||||
-rw-r--r-- | src/StardewModdingAPI/SemanticVersion.cs | 2 |
2 files changed, 7 insertions, 1 deletions
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 /// <summary>Construct an instance.</summary> /// <param name="version">The semantic version string.</param> /// <exception cref="FormatException">The <paramref name="version"/> is not a valid semantic version.</exception> - internal SemanticVersion(string version) + public SemanticVersion(string version) { var match = SemanticVersion.Regex.Match(version); if (!match.Success) |