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
copyingmethod now inherits the annotated type's access level instead of always beingpublic. Anopentype produces apublicmethod and aprivatetype produces afileprivateone, 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
varbound 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.0so 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
letconstants with an initial value andlazyproperties from copying; including them previously failed to compile.
Full Changelog: 1.2.0...1.3.0