diff --git a/Sources/StreamAttachments/Info.plist b/Sources/StreamAttachments/Info.plist index 8f6581d..2d8465c 100644 --- a/Sources/StreamAttachments/Info.plist +++ b/Sources/StreamAttachments/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.6.4 + 0.7.0 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/Sources/StreamCore/Info.plist b/Sources/StreamCore/Info.plist index 8f6581d..2d8465c 100644 --- a/Sources/StreamCore/Info.plist +++ b/Sources/StreamCore/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.6.4 + 0.7.0 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/Sources/StreamCore/OpenAPI/Query/Sort.swift b/Sources/StreamCore/OpenAPI/Query/Sort.swift index dff8cfc..cce480b 100644 --- a/Sources/StreamCore/OpenAPI/Query/Sort.swift +++ b/Sources/StreamCore/OpenAPI/Query/Sort.swift @@ -26,7 +26,7 @@ public protocol SortField: Sendable { /// - Parameters: /// - rawValue: The string identifier used for remote API requests /// - localValue: A closure that extracts the comparable value from a model instance - init(_ rawValue: String, localValue: @escaping @Sendable (Model) -> Value) where Value: Comparable + init(_ rawValue: String, localValue: @escaping @Sendable (Model) -> Value) where Value: Comparable & Sendable } /// A sort configuration that combines a sort field with a direction. @@ -142,8 +142,11 @@ public struct AnySortComparator: Sendable where Model: Sendable { /// Creates a type-erased comparator from a specific comparator instance. /// /// - Parameter sort: The specific comparator to wrap - public init(localValue: @escaping @Sendable (Model) -> Value) { - compare = SortComparator(localValue: localValue).compare + public init(localValue: @escaping @Sendable (Model) -> Value) { + let comparator = SortComparator(localValue: localValue) + compare = { @Sendable lhs, rhs, direction in + comparator.compare(lhs, rhs, direction: direction) + } } /// Compares two model instances using the wrapped comparator. diff --git a/Sources/StreamCore/Utils/SystemEnvironment+Version.swift b/Sources/StreamCore/Utils/SystemEnvironment+Version.swift index 6aa46aa..5a5f018 100644 --- a/Sources/StreamCore/Utils/SystemEnvironment+Version.swift +++ b/Sources/StreamCore/Utils/SystemEnvironment+Version.swift @@ -6,5 +6,5 @@ import Foundation enum SystemEnvironment { /// A Stream Core version. - public static let version: String = "0.6.4" + public static let version: String = "0.7.0" } diff --git a/Sources/StreamCoreUI/Info.plist b/Sources/StreamCoreUI/Info.plist index 8f6581d..2d8465c 100644 --- a/Sources/StreamCoreUI/Info.plist +++ b/Sources/StreamCoreUI/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType $(PRODUCT_BUNDLE_PACKAGE_TYPE) CFBundleShortVersionString - 0.6.4 + 0.7.0 CFBundleVersion $(CURRENT_PROJECT_VERSION)