The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Version 1.4.0
4 years ago
* Swift 5.0 support.
* Adjusted `registerInteractor()` to register Interactors for a given Request type.
* It is no longer necessary to create an instance of the Request.
* Old: `registerInteractor(myInteractor, request: MyInteractor.Request())`
* New: `registerInteractor(myInteractor, request: MyInteractor.Request.self)`
* Marked old implementation of `registerInteractor()` as deprecated.
Version 1.3.0
5 years ago
* Swift 4.2 support.
* Added `reset()` to `InteractorSpy`.
* To easily reset the Spy to its initial state.
* Adjusted `InteractorSpy` to always return a response, if at least one has been set.
* e.g. set [responseA, responseB]
* returns responseA, responseB, responseB, ...
Version 1.2.0
6 years ago
- Added `onCompleteVoid()` function to InteractorRequests of type `Void`. #21
- To simplify the completion call in the Interactor.
- Added `InteractorSpy`to simplify unit testing. #22
- The generic spy helps to create Interactor mocks quickly.
Version 1.1.0
6 years ago
- Renamed `InteractorExecuter` to `InteractorExecutor`. #18
- Added `getInteractor()` function to `InteractorExecutor`. #11
- Made `InteractorStatusGateway` and `InteractorStatusInMemoryGateway` deprecated.
- The gateway will be removed from upcoming versions.
- We recommend to use a custom gateway or store the information in a class variable of the Interactor itself.
- Improved Unit-Tests.
Version 1.0.0
6 years ago
- Updated for Swift 4.0 and Xcode 9.0.1. #17
- Adjusted Package.swift for PackageDescription API Version 4.
- Adjusted folder structure for PackageDescription API Version 4.
- Improved access modifiers.
- Removed MutableInteractorError.
- Removed deprecated ErrorHandler protocol.
Version 0.8.0
6 years ago
- Updated for Swift 3.1 and Xcode 8.3
Version 0.7.1
6 years ago
- Improved InteractorError
- `message` property now returns the `localizedDescription` instead of the `NSLocalizedDescriptionKey` of the `infoDict`.
- The change was necessary, because CoreData errors only return a `localizedDescription`, but have no entry in the dictionary.
- Usually, the `localizedDescription` returns the dictionary entry.
Version 0.7.0
7 years ago
- InteractorError in now an extension of NSError.
- Now you can return NSErrors as InteractorErrors.
- This should avoid creating custom InteractorErrors for each NSError you want to return from an Interactor.
- Introduced errorDict on InteractorError for additional values.
- Added MutableInteractorError.
Version 0.6.1
7 years ago
- Fixed PackageDescription to include Tests to auto-generated Xcode project.
Version 0.6.0
7 years ago
- Refactored to Swift Package.
- Removed Xcode project.