Skip to content

v0.1.0

Latest
Compare
Choose a tag to compare
@bergundy bergundy released this 09 Dec 23:04

What's Changed

πŸ’₯ BREAKING CHANGE πŸ’₯

  • Rename Client to HTTPClient.
  • Rename ClientOptions to HTTPClientOptions.
  • Rename NewClient to NewHTTPClient.
  • Hide http.Response from UnexpectedResponseError, it can now be obtained by casting the Details field.
  • OperationCompletionSuccessful now uses nexus.Header and nexus.Reader instead of http.Header and io.Reader.
  • OperationCompletionUnsuccessul now uses a nexus.Header instead of http.Header.
  • Rename OperationCompletion(Un)Successful(Options) StartLinks to Links.
  • Add a FailureConverter to convert from a Failure to error and back and remove Failure from the main SDK APIs.
  • Changed HandlerError to take a Cause error instead of a Failure object.
  • HandlerError gets an Unwrap() method for use with helpers in the errors package.
  • Changed UnsuccessfulOperationError to take a Cause error instead of a Failure object.
  • UnsuccessfulOperationError gets an Unwrap() method for use with helpers in the errors package.
  • Added new shorthand constructors for UnsuccessfulOperationError: NewFailedOperationError and NewCanceledOperationError.
  • Added a new NewOperationCompletionUnsuccessful constructor that takes an error object and options to support a failure converter.
  • Rename StartLinks to Links.

Full Changelog: v0.0.12...v0.1.0