Skip to content

1.1.2

Choose a tag to compare

@sorunokoe sorunokoe released this 01 Aug 11:29
· 26 commits to main since this release

Fixes

  • Preserve type-level attributes (e.g. @MainActor, @Sendable) on function-typed fields when generating a @Mapper builder. Previously the ownership-specifier fix in 1.1.1 over-stripped and also discarded these, silently breaking global-actor-isolated closure fields.
  • @escaping/@autoclosure are now correctly kept on the generated buildBlock's own parameter (needed to forward into the canonical initializer) while still excluded from Boxed<T>'s generic argument (where they're invalid).

New

  • @Mapper now emits a best-effort warning when it detects a struct shape that's likely to hit a known, unavoidable Swift compiler bug (swiftlang/swift#70087): a struct conforming to Equatable/Hashable/Comparable that already hand-writes its own ==/</hash(into:) (typically because a field, like a function type, isn't itself Equatable). See the README's new "Known limitations" section for details and the recommended workaround.

No breaking changes.