github pointfreeco/swift-case-paths 1.1.0

latest releases: 1.7.1, 1.7.0, 1.6.1...
22 months ago

What's Changed

  • Added: The @CasePathable macro and case key paths. The @CasePathable macro automatically generates bona fide key paths for an enum's cases. They are equatable, hashable, and can be used in dynamic member lookup and more. For more information, see the documentation and migration guide.
  • Deprecated: The older, reflection-based style of case path (/SomeEnum.someCase) has been soft-deprecated in favor of case key paths (\SomeEnum.Cases.someCase). They will be hard-deprecated in a future release, so migrate today to avoid the warnings of the future.
  • Infrastructure: Added Windows CI (thanks @brianmichel, #116).
  • Infrastructure: Fixed documentation note of non-void / operators (thanks @mrackwitz, #118)
  • Fixed: Scope workaround for Swift <5.8 reflection bug (thanks @kodok1988, #120).

New Contributors

Full Changelog: 1.0.0...1.1.0

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

NewReleases is sending notifications on new releases.