Skip to content

1.3.0

Latest

Choose a tag to compare

@yysskk yysskk released this 05 Jul 06:07
c894377

This release turns several previously silent or broken declarations into clear compile-time diagnostics, makes the generated method's access level match the type, and adds hosted documentation.

Added

  • A DocC documentation catalog and Swift Package Index metadata (.spi.yml), so the API reference and articles are hosted on the Swift Package Index.
  • visionOS to the list of supported platforms.

Changed

  • The generated copying method now inherits the annotated type's access level instead of always being public. An open type produces a public method and a private type produces a fileprivate one, so the method is callable exactly where the type is.
  • Declarations that would previously have produced broken or silently incorrect copies are now reported as compile-time diagnostics: a copyable stored property without an explicit type annotation, and a var bound through a tuple pattern. Every offending property is reported in a single build.
  • Widened the swift-syntax dependency range to 600.0.0 ..< 605.0.0 so the package resolves alongside other macro packages.

Fixed

  • Include every property in a combined declaration such as let x: Int, y: Int.
  • Wrap generated parameter types in parentheses so function-typed and other compound-typed properties compile.
  • Exclude let constants with an initial value and lazy properties from copying; including them previously failed to compile.

Full Changelog: 1.2.0...1.3.0