All Versions
46
Latest Version
Avg Release Cycle
51 days
Latest Release
76 days ago

Changelog History
Page 1

  • v0.17.0

    September 03, 2019

    Internal Changes

    • Parallelized combining phase that yields 5-10x speed improvement for New York Times codebase
    • Switched cache logic to rely on file modification date instead of content Sha256
    • ➕ Additional benchmark logs showing how long does each phase take
    • ⚡️ update dependencies to fix cocoapods setup when using Swift 5.0 everywhere. Update Quick to 2.1.0, SourceKitten to 0.23.1 and Yams to 2.0.0
  • v0.16.2

    July 18, 2019

    🆕 New Features

    • 👌 Support automatic linking of files generated by annotations to project target

    🐛 Bug fixes

    • 🛠 Fixes always broken sourcery cache
    • ➕ Add missing SourceryFramework library product in Package.swift
  • v0.16.1

    April 29, 2019

    🐛 Bug fixes

    • 🛠 Fix ReceivedInvocations's type for the method which have only one parameter in AutoMockable.stencil
    • 🛠 Fix missing folder error that could happen when running a Swift template with existing cache
    • Don't add indentation to empty line when using inline generated code.
    • 🛠 Fix issue where errors in Swift Template would not be reported correctly when using Xcode 10.2.
    • 🛠 Fix annotations for enum cases with associated values that wouldn't parses them correctly when commas were used

    Internal Changes

    • ✂ Removed dependency on SwiftTryCatch pod in order to avoid Swift Package Manager errors.
  • v0.16.0

    March 08, 2019
    • 🔧 Replaces environment variables inside .yml configurations (like ${PROJECT_NAME}), if a value is set.
    • 🛠 Fixes warning in generated AutoMockable methods that have implicit optional return values
    • 👌 Support for optional methods in ObjC protocols
    • 👌 Support for parsing lazy vars into Variable's attributes.
    • ⚡️ Updated Stencil to 0.13.1 and SwiftStencilKit to 2.7.0
    • In Swift templates CLI arguments should now be accessed via argument instead of arguments, to be consistent with Stencil and JS templates.
    • Now in swift templates you can define types, extensions and use other Swift features that require file scope, without using separate files. All templates code is now placed at the top level of the template executable code, instead of being placed inside an extension of TemplateContext type.
    • 🛠 Fixed missing generated code annotated with inline annotation when corresponding annotation in sources are missing. This generated code will be now present in *.generated.swift file.
    • ⚡️ Updated AutoHashable template to use Swift 4.2's hash(into:) method from Hashable, and enable support for inheritance.
    • Record all method invocations in the AutoMockable template.
    • 🏗 Replace swiftc with the Swift Package Manager to build Swift templates
    • 🏗 Swift templates can now be used when using a SPM build of Sourcery.
  • v0.15.0

    September 23, 2018

    🆕 New Features

    • 📜 You can now pass a json string as a command line arg or annotation and have it parsed into a Dictionary or Array to be used in the template.
    • 👌 Support for Xcode 10 and Swift 4.2
    • ⚡️ Updated Stencil to 0.12.1
  • v0.14.0

    August 28, 2018

    🆕 New Features

    • You can now include entire Swift files in Swift templates
    • You can now use AutoEquatable with annotations
    • ✅ Content from multiple file annotations will now be concatenated instead of writing only the latest generated content.

    For example content generated by two following templates

    // sourcery:file:Generated/Foo.swift
    line one
    // sourcery:end
    

    and

    // sourcery:file:Generated/Foo.swift
    line two
    // sourcery:end
    

    will be written to one file:

    line one
    
    line two
    

    Internal Changes

    • 👉 Use AnyObject for class-only protocols

    🐛 Bug fixes

    • 🛠 Fixed parsing associated enum cases in Xcode 10
    • 🛠 Fixed AutoEquatable access level for == func
    • 🛠 Fixed path of generated files when linked to Xcode project
    • 🛠 Fixed extraction of inline annotations in multi line comments with documentation style
    • 🛠 Fixed compile error when used AutoHashable in NSObject subclass.
  • v0.13.1

    May 08, 2018

    🆕 New Features

    • ➕ Added support for enums in AutoCodable template
    • You can now specify the base path for the Sourcery cache directory with a cacheBasePath key in the config file
  • v0.13.0

    April 21, 2018

    🆕 New Features

    🐛 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

    April 11, 2018

    Internal Changes

    • Migrate to Swift 4.1 and Xcode 9.3
  • v0.11.2

    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