Repository navigation
Releases
Releases · wiedem/enum-case-labeling
2.0.2
2.0.1
🐛 Bug Fixes
- Fixed generated
CaseLabelandcaseLabelmissingpublic/packageaccess modifier when the enum is declared inside apublic/packageextension without an explicit access modifier on the enum itself - Fixed macro expansion tests silently passing due to XCTest/Swift Testing incompatibility
2.0.0
What's New in 2.0.0
🔧 Breaking Changes
- Minimum Swift version raised to 6.0
- Minimum platform versions raised to macOS 13, iOS 16, tvOS 16, watchOS 9
- Added visionOS 1 support
CaseLabeledprotocol now requiresCaseLabelto conform toHashableandSendable(previouslyEquatable)- Replaced
~=operator for value-to-value comparison with~~operator andhasSameLabel(as:)method
✨ Improvements
- Added
~~operator andhasSameLabel(as:)method for case label comparison - Access level of generated
CaseLabelandcaseLabelnow mirrors the enum's explicit modifier (public,package) instead of always usingpublic - Added support for
#if/#elseconditional compilation blocks - Added preservation of
@availableattributes on generated case labels - Macro now emits a warning when applied to enums without associated values