Insanity v0.5.3 Release Notes
-
๐ New Features
- โ Added support for method return types with
throws
andrethrows
- โ Added a new filter
replace
. Usage:{{ name|replace:"substring","replacement" }}
- replaces occurrences ofsubstring
withreplacement
inname
(case sensitive) - ๐ Improved support for inferring types of variables with initial values
- Sourcery is now bundling a set of example templates, you can access them in Templates folder.
- ๐ We now use parallel parsing and cache source artifacts. This leads to massive performance improvements:
- e.g. on big codebase of over 300 swift files: ``` Sourcery 0.5.2 Processing time 8.69941002130508 seconds
Sourcery 0.5.3 First time 4.69904798269272 seconds Subsequent time: 0.882099032402039 seconds
### ๐ Bug Fixes - ๐ Method `accessLevel` was not exposed as string so not accessible properly via templates, fixed that. - ๐ Fixes on Swift Templates
- โ Added support for method return types with