From f79cd5e1c07a51635851185c6d12fffd939775b7 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Fri, 17 Oct 2025 11:08:03 -0500 Subject: [PATCH 1/2] Use explicit 'any' for existential. --- Sources/ComposableArchitecture/Effect.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/ComposableArchitecture/Effect.swift b/Sources/ComposableArchitecture/Effect.swift index bfd4c734f23b..b71f9e56b410 100644 --- a/Sources/ComposableArchitecture/Effect.swift +++ b/Sources/ComposableArchitecture/Effect.swift @@ -423,7 +423,7 @@ extension Effect { name: String?, priority: TaskPriority? = nil, operation: @escaping @Sendable () async throws -> Success - ) where Failure == Error { + ) where Failure == any Error { self.init(priority: priority, operation: operation) } } From 8abca64d86571a36b23e6d99e32ff456a7af3bf0 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Fri, 17 Oct 2025 11:11:47 -0500 Subject: [PATCH 2/2] Fix deprecation warning. --- Sources/ComposableArchitecture/Macros.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/ComposableArchitecture/Macros.swift b/Sources/ComposableArchitecture/Macros.swift index 036387628e4c..dfa01b5f4f19 100644 --- a/Sources/ComposableArchitecture/Macros.swift +++ b/Sources/ComposableArchitecture/Macros.swift @@ -56,6 +56,7 @@ public macro Reducer(state: _SynthesizedConformance..., action: _SynthesizedConf #endif public struct _SynthesizedConformance: Sendable {} +@available(*, deprecated, message: "Define your conformance using an extension, instead") extension _SynthesizedConformance { /// Extends the `State` or `Action` types that ``Reducer()`` creates with the `Codable` /// protocol.