Skip to content

0.6.0

Compare
Choose a tag to compare
@stephencelis stephencelis released this 22 Jul 14:54
· 125 commits to main since this release
  • Fixed regression: Swift can optional-promote the Root of an embed function (Value) -> Root to (Value) -> Root? and yield CasePath<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 yield CasePath<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 and CasePath.case. The library now always favors using case path syntax (/Root.caseName) or the CasePath.extract(from:) method.