diff --git a/.mise.toml b/.mise.toml index b15ebc4..9a7cb77 100644 --- a/.mise.toml +++ b/.mise.toml @@ -1,3 +1,3 @@ [tools] -swiftlint = "0.54.0" -swiftformat = "0.53.8" \ No newline at end of file +swiftlint = "0.55.1" +swiftformat = "0.54.0" \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 5132af1..51c2b9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ ### Changed - Documentation syntax to DocC +- `SwiftLint` to `0.55.1` +- `SwiftFormat` to `0.54.0` ### Removed diff --git a/Sources/Helper/VersionCompareResult.swift b/Sources/Helper/VersionCompareResult.swift index 0c3ac3d..725bd02 100644 --- a/Sources/Helper/VersionCompareResult.swift +++ b/Sources/Helper/VersionCompareResult.swift @@ -6,7 +6,7 @@ // /// The severity of an update between versions. -/// +/// /// - Note: A difference between ``BuildMetaData`` of versions are as `SemVer` states explicitly ignored. public enum VersionCompareResult { /// A `MAJOR`update diff --git a/Sources/Version.swift b/Sources/Version.swift index bcda665..cd3f33d 100644 --- a/Sources/Version.swift +++ b/Sources/Version.swift @@ -168,12 +168,12 @@ public struct Version: Sendable, SemanticVersionComparable { prerelease = String(prereleaseSubstring) .split(separator: ".") .map(String.init) - .compactMap { - if let asInt = Int($0) { + .compactMap { identifierString in + if let asInt = Int(identifierString) { return PrereleaseIdentifier(integerLiteral: asInt) } - return PrereleaseIdentifier($0) + return PrereleaseIdentifier(identifierString) } // if a pre-release identifier element is initialized as .unkown, we can savely assume that the given // string is not a valid `SemVer` version string.