Skip to content

Releases: fetch-rewards/swift-mocking

Version 0.2.0

26 Jun 16:49
3a0127f
Compare
Choose a tag to compare

✨ Features

  • Add sendableConformance argument to Mocked (#106)

🐛 Bug Fixes

  • Handle composed and mixed associated type constraints (#108)

📝 Documentation

  • Add SPI badges to README (#102)
  • Fix spelling mistake (#101)
  • Add more issue templates (#103)
  • Add social preview image asset (#105)

🧪 Testing

  • Refactor MacroArgumentValue, reorganize files, and add unit tests (#111)

🔨 Refactoring

  • Refactor MacroArgumentValue, reorganize files, and add unit tests (#111)

📦 Dependencies

  • Update SwiftFormat minimum version and output version in CI (#110)
  • Update Swift Locking, SwiftSyntaxSugar, and SwiftSyntax dependencies (#114)

🛠️ CI/CD

  • Add CODEOWNERS (#104)
  • Update SwiftFormat minimum version and output version in CI (#110)

Full Changelog

Version 0.1.0

25 Apr 19:20
3970815
Compare
Choose a tag to compare

🎉 Initial Release

This is the first public release of Swift Mocking, a library that provides a collection of Swift macros used to generate mocks.

This initial release includes:

  • @Mocked - an attached peer macro that generates a mock class from a protocol declaration.
  • @MockedMembers - an attached member and member-attribute macro that generates mocked members for a mock declaration.
  • @MockableProperty - an attached macro that marks a property as being mockable.
  • @MockableMethod - an attached macro that marks a method as being mockable.

Full Changelog