Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.3 KB

CHANGELOG.md

File metadata and controls

34 lines (23 loc) · 1.3 KB

Changelog

[1.4.0] - 2024-08-30

Changees

  • Deprecate URLRequest.MethodBuilder verb(path:) methods. Use the relevant verb(url:).

News

  • URLRequest.BodyBuilder to create MultipartForm requests.
  • ResponseErrorMapper can be injected to replace the default NetworkClient.Error, thrown from a faulty status code, with a consumer generated one.

Breaking Changes

  • Rename to package to NetworkClient.
    Change your import IndiceNetworkClient to import NetworkClient.
  • Split into two targets NetworkClient and NetworkUtilities.
    The later contains any URLRequest and URLRequest.Builder related extension.
  • Removal of APIError definition. Replaced with NetworkClient.Error.
    To define a concrete Error type throw by your API, @see ResponseErrorMapper.
  • Removal of NetworkClient's custom headers, as the functionality can be achieved by a NetworkClient.Interceptor
  • Replace URLRequest.ContentType.urlUtf8, with URLRequest.ContentType.url(useUTF8Charset:).

[1.3.0] - 2024-06-07

Fixes

  • Bug where interceptors didn't correctly catch APIErrors.

Breaking Changes

  • Removal of the NetworkClient.Retrier class, as the functionality can be achieved by a NetworkClient.Interceptor.

[v < 1.3.0] - Well...

We'll get to filling this space.