github pointfreeco/swift-case-paths 0.6.0

latest releases: 1.7.1, 1.7.0, 1.6.1...
4 years ago
  • 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.

Don't miss a new swift-case-paths release

NewReleases is sending notifications on new releases.