What's Changed
π₯ BREAKING CHANGE π₯
- Rename
Client
toHTTPClient
. - Rename
ClientOptions
toHTTPClientOptions
. - Rename
NewClient
toNewHTTPClient
. - Hide
http.Response
fromUnexpectedResponseError
, it can now be obtained by casting theDetails
field. OperationCompletionSuccessful
now usesnexus.Header
andnexus.Reader
instead ofhttp.Header
andio.Reader
.OperationCompletionUnsuccessul
now uses anexus.Header
instead ofhttp.Header
.- Rename
OperationCompletion(Un)Successful(Options)
StartLinks
toLinks
. - Add a
FailureConverter
to convert from aFailure
toerror
and back and removeFailure
from the main SDK APIs. - Changed
HandlerError
to take aCause error
instead of aFailure
object. HandlerError
gets anUnwrap()
method for use with helpers in theerrors
package.- Changed
UnsuccessfulOperationError
to take aCause error
instead of aFailure
object. UnsuccessfulOperationError
gets anUnwrap()
method for use with helpers in theerrors
package.- Added new shorthand constructors for
UnsuccessfulOperationError
:NewFailedOperationError
andNewCanceledOperationError
. - Added a new
NewOperationCompletionUnsuccessful
constructor that takes an error object and options to support a failure converter. - Rename
StartLinks
toLinks
.
Full Changelog: v0.0.12...v0.1.0