Skip to content

🎉 1.0.0 Release

Compare
Choose a tag to compare
@kdubb kdubb released this 21 Aug 21:26
· 74 commits to develop since this release
950ff31

1.0.0 is here and provides new features, fixes and breaking changes.

New Features

  • mutating and nonmutating modifiers are supported.
  • typealias's can be defined via TypeAliasSpec.
    • TypeAliasSpec be used anywhere a TypeSpec was previously allowed.
  • Enum cases allow documentation & attributes.
  • AttributeSpec accepts a DeclaredTypeName as the identifier for generating use of property wrappers.
  • #iif/#endif guards can be added to any FileSpec member.
  • FunctionSpec allows adding local type definitions that are emitted prior to general code.
  • Simple property get functions are emitted in concise format.

Breaking Changes

  • addKDoc has been renamed to addDoc.
    Quite simpley, Swift documentation isn't referred to as KDoc.
  • beginControlFlow/nextControlFlow/endControlFlow requires the control flow construct be provided explicitly.
    The idiomatic Swift format (or at least the Xcode default) doesn't indent the cases of switches. Providing the control flow construct explicitly allows the code to be generated matching this format.

Resolved Issues

  • Reserved property & enum case names are allowed and correctly escaped using backticks.
  • Reserved names are now correctly escaped using backticks.

Complete list of updates & fixes is here

Thanks

Special thanks to @JakeWharton & @efirestone for their help on the library and this release!