- Fixed regression: Swift can optional-promote the
Root
of an embed function(Value) -> Root
to(Value) -> Root?
and yieldCasePath<Root?, Value>
instead of `CasePath<Root, Value>. Extraction was still handled successfully in 0.3.0 and earlier, but broke in 0.4.0. Thanks @mayoff for the fix! - Fixed regression: Swift can optional-demote the
Value
of an embed function(Value?) -> Root
to(Value) -> Root
and yieldCasePath<Root, Value>
instead of `CasePath<Root, Value?>. Extraction was still handled successfully in 0.3.0 and earlier, but broke in 0.4.0. Thanks @mayoff for this fix as well! - A family of helpers functions around reflection/runtime extraction has been deprecated, this includes module-level
extract
functions andCasePath.case
. The library now always favors using case path syntax (/Root.caseName
) or theCasePath.extract(from:)
method.