TRON v1.0.0-beta.3 Release Notes
-
๐ฅ Breaking changes
- ๐
ResponseParseable
protocol reworked to only include single initializer instead of associated typeModelType
. Therefore, all generic methods that previously acceptedModel.ModelType
type now acceptModel
type. - โ Removed
performWithSuccess(_:failure:)
method, please useperform(success:failure:)
method instead.
โ Added
- Ability to create APIRequest with Array generic constraint, for example -
APIRequest<[Int],APIError>
๐ Changed
- ๐
ResponseParseable
initWithData:
method is now throwable, allowing parsed models to throw during initialization. When initializer throws,APIRequest
treats it as a parsing error.
- ๐