All Versions
69
Latest Version
Avg Release Cycle
69 days
Latest Release
-
Changelog History
Page 4
Changelog History
Page 4
-
v0.13.0 Changes
April 21, 2018๐ New Features
- โ Added AutoCodable template
๐ Bug fixes
- ๐ Fixed parsing protocol method return type followed by declaration with attribute
- ๐ Fixed inserting auto-inlined code on the last line of declaration body
- AutoEquatable and AutoHashable templates should not add protocol conformances in extensions
-
v0.12.0 Changes
April 11, 2018Internal Changes
- Migrate to Swift 4.1 and Xcode 9.3
-
v0.11.2 Changes
April 10, 2018๐ !!This is the last release that will support Swift 4.0. Next release (except patches) will be built with Swift 4.1!!
๐ Bug fixes
- Autocases template not respecting type access level
- Ensure SPM and CocoaPods dependencies match
- ๐ Improve AutoMockable template to handle methods with optional return values
- ๐ Fixed crash while compiling swift templates
-
v0.11.1 Changes
April 09, 2018๐ !!This is the last release that will support Swift 4.0. Next release (except patches) will be built with Swift 4.1!!
Internal changes
- ๐ Do not fail the build if slather fails
- โก๏ธ Updated SourceKitten to 0.20.0
๐ Bug fixes
- ๐ Fixed parsing protocol methods return type (#579)
-
v0.11.0 Changes
๐ New Features
- ๐ Supports adding new templates files while in watcher mode
- ๐ Supports adding new source files while in watcher mode
- โ Added support for subscripts
- โ Added
isGeneric
property forMethod
- You can now pass additional arguments one by one, i.e.
--args arg1=value1 --args arg2 --args arg3=value3
- ๐ Improved support for generic types. Now you can access basic generic type information with
TypeName.generic
property - โ added
@objcMembers
attribute - ๐ Moved EJS and Swift templates to separate framework targets
- ๐ EJS templates now can be used when building Sourcery with SPM
- โ Added Closures to AutoMockable
- You can now link generated files to projects using config file
- You can now use AutoMockable with annotations
- โก๏ธ Updated to latest version of Stencil (commit 9184720)
- โ Added support for annotation namespaces
- โ Added
--exclude-sources
and--exclude-templates
CLI options
** ๐ฅ Breaking **
- @objc attribute now has a
name
argument that contains Objective-C name of attributed declaration - Type collections
types.based
,types.implementing
andtypes.inheriting
now return non-optional array. If no types found, empty array will be returned. This is a breaking change for template code like this:
<% for type in (types.implementing["SomeProtocol"] ?? []) { %>
The new correct syntax would be:
<% for type in types.implementing["SomeProtocol"] { %>
Internal changes
- Migrate to Swift 4, SwiftPM 4 and Xcode 9.2
selectorName
for methods without parameters now will not contain()
returnTypeName
for initializers will be the type name of defining type, with?
for failable initializers- ๐ Improved compile time of AutoHashable template
- โก๏ธ Updated StencilSwiftKit and Stencil to 0.10.1
๐ Bug fixes
- ๐ Fixes FSEvents errors reported in #465 that happen on Sierra
- JS exceptions no more override syntax errors in JS templates
- ๐ Accessing unknown property on
types
now results in a better error thanundefined is not an object
in JS templates - ๐ Fixed issue in AutoMockable, where generated non-optional variables wouldn't meet protocol's requirements. For this purpose, underlying variable was introduced
- ๐ Fixed
inline:auto
not inserting code if Sourcery is run with cache enabled #467 - ๐ Fixed parsing @objc attributes on types
- ๐ Fixed parsing void return type in methods without spaces between method name and body open curly brace and in protocols
- ๐ Fixed AutoMockable template generating throwing method with void return type
- ๐ Fixed parsing throwing initializers
- ๐ Fixed trying to process files which do not exist
- ๐คก Automockable will not generate mocks for methods defined in protocol extensions
- ๐ Fixed parsing typealiases of generic types
- AutoLenses template will create lenses only for stored properties
- ๐ Fixed resolving actual type name for generics with inner types
- ๐ Fixed parsing nested types from extensions
- ๐ Fixed removing back ticks in types names
- ๐ Fixed creating output folder if it does not exist
- ๐ Fixed inferring variable types with closures and improved inferring types of enum default values
- ๐ Fixed enum cases with empty parenthesis not having () associated value
-
v0.10.1 Changes
- When installing Sourcery via CocoaPods, the unneeded
file.zip
is not kept inPods/Sourcery/
anymore (freeing ~12MB on each install of Sourcery made via CocoaPods!).
- When installing Sourcery via CocoaPods, the unneeded
-
v0.10.0 Changes
๐ New Features
- โ Added test for count Stencil filter
- โ Added new reversed Stencil filter
- โ Added new isEmpty Stencil filter
- โ Added new sorted and sortedDescending Stencil filters. This can sort arrays by calling e.g.
protocol.allVariables|sorted:"name"
- โ Added new toArray Stencil filter
- โ Added a console warning when a yaml is available but any parameter between 'sources', templates', 'forceParse', 'output' are provided
Internal changes
- โ Add release to Homebrew rake task
- ๐ Fixed Swiftlint warnings
- ๐ Fixed per file generation if there is long (approx. 150KB) output inside
sourcery:file
annotation - 0๏ธโฃ Do not generate default.profraw
- โ Remove filters in favor of same filters from StencilSwiftKit
-
v0.9.0 Changes
๐ New Features
- โ Added support for file paths in
config
parameter - โ Added
isDeinitializer
property for methods - ๐ Improved config file validation and error reporting
- Various improvements for
AutoMockable
template:- support methods with reserved keywords name
- support methods that throws
- improved generated declarations names
๐ Bug fixes
- ๐ Fixed single file generation not skipping writing the file when there is no generated content
Internal changes
- โก๏ธ Updated dependencies for Swift 4
- โก๏ธ Update internal ruby dependencies
- โ Added support for file paths in
-
v0.8.0 Changes
๐ New Features
- โ Added support in
AutoHashable
for static variables,[Hashable]
array and[Hashable: Hashable]
dictionary - โ Added
definedInType
property forMethod
andVariable
- โ Added
extensions
filter for stencil template - โ Added include support in Swift templates
- Swift templates now can throw errors. You can also throw just string literals.
- โ Added support for TypeName in string filters (except filters from StencilSwiftKit).
๐ Bug fixes
- ๐ Fixed linker issue when using Swift templates
- โก๏ธ Updated
AutoMockable
to exclude generated code collisions - ๐ Fixed parsing of default values for variables that also have a body (e.g. for
didSet
) - ๐ Fixed line number display when an error occur while parsing a Swift template
- ๐ Fixed
rsync
issue onSourceryRuntime.framework
when using Swift templates - ๐ Fixed
auto:inline
for nested types (this concerns the first time the code is inserted)
Internal changes
- ๐ Fix link for template in docs
- ๐ Fix running Sourcery in the example app
- โ Add step to update internal boilerplate code during the release
- โ Added support in
-
v0.7.2 Changes
Internal changes
- โ Add Version.swift to represent CLI tool version