Skip to content

1.0.0-beta.3

Compare
Choose a tag to compare
@DenTelezhkin DenTelezhkin released this 19 May 14:59
· 323 commits to main since this release

Breaking changes

  • ResponseParseable protocol reworked to only include single initializer instead of associated type ModelType. Therefore, all generic methods that previously accepted Model.ModelType type now accept Model type.
  • Removed performWithSuccess(_:failure:) method, please use perform(success:failure:) method instead.

Added

  • Ability to create APIRequest with Array generic constraint, for example - APIRequest<[Int],TronError>

Changed

  • ResponseParseable initWithData: method is now throwable, allowing parsed models to throw during initialization. When initializer throws, APIRequest treats it as a parsing error.