Skip to content

Releases: ooaklee/reply

v1.0.0 Release

11 Sep 22:51
db639db
Compare
Choose a tag to compare

What's included in this release?

  • Update top-level response members from meta, status and data -> meta, errors and data
  • Updated Manifest Error Item fields
  • Updated logic & added new aide NewHTTPMultiErrorResponse to support multiple error response objects in response
  • Refactored code
  • Added logic to support users passing custom error transfer objects (TransferObjectError), reply.WithTransferObjectError
    • Added RefreshTransferObject method call to TransferObjectError
  • Updated Token attributes & methods on base Transfer Object to have a generic name to cover cases where API uses different token identifiers
    • AccessToken -> TokenOne & RefreshToken -> TokenTwo
  • Added logic to set StatusCode if not set already. Defaults to 400.
  • Updated README

Installation

go get github.com/ooaklee/[email protected]

v1.0.0-alpha.3 Release

11 Sep 14:39
Compare
Choose a tag to compare
Pre-release

What's included in this release?

  • Refactor Token attributes & methods to have a more general name to make use of cases where API uses different token identifiers less confusing
    • AccessToken -> TokenOne & RefreshToken -> TokenTwo
      • Dev can create custom TransferObject to set JSON attribute to match their use case
  • Added logic to set StatusCode if not set already. Defaults to 400.
  • Updated README to better describe the library

Installation

go get github.com/ooaklee/[email protected]

v1.0.0-alpha.2 Release

10 Sep 21:09
Compare
Choose a tag to compare
Pre-release

What's included in this release?

  • Refactored and updated logic to allow users to pass custom error transfer objects (TransferObjectError), using Replier Option i.e. reply.WithTransferObjectError
    • Added RefreshTransferObject method call to TransferObjectError
  • Updated example simple api to use the new Replier Option and update the transfer object error

Installation

go get github.com/ooaklee/[email protected]

v1.0.0-alpha.1 Release

10 Sep 17:55
Compare
Choose a tag to compare
Pre-release

What's included in this release?

  • Added new aide NewHTTPMultiErrorResponse to support multiple error response
  • Updated example simple api to use the new aide NewHTTPMultiErrorResponse
  • Added logic to handle/ create multiple error response
  • Refactor code to make it more readable with new logic

Installation

go get github.com/ooaklee/[email protected]

v1.0.0-alpha Release

09 Sep 23:39
Compare
Choose a tag to compare
v1.0.0-alpha Release Pre-release
Pre-release

What's included in this release?

  • Update top-level response members from meta, status and data -> meta, errors and data
  • Updated underlying logic to how an error is handled
  • Updated Manifest Error Item attributes

Installation

go get github.com/ooaklee/[email protected]

v0.2.0 Release

05 Sep 01:10
75a59b3
Compare
Choose a tag to compare

What's included in this release?

  • Fixed bug in logic for merging error manifests
  • Added helper functions (aides) to help users more efficiently use the library

Installation

go get github.com/ooaklee/[email protected]

v0.2.0-alpha.1 Release

04 Sep 14:35
Compare
Choose a tag to compare
Pre-release

What's included in this release?

  • Fixed bug in logic for merging error manifests

Installation

go get github.com/ooaklee/[email protected]

v0.2.0-alpha Release

04 Sep 00:24
Compare
Choose a tag to compare
v0.2.0-alpha Release Pre-release
Pre-release

What's included in this release?

  • Initial logic for helper functions (aides) to help users more efficiently use the library

Installation

go get github.com/ooaklee/[email protected]

v0.1.1 Release

31 Aug 11:27
Compare
Choose a tag to compare

What's included in this release?

  • Added licensing information
  • Fixed typos

Installation

go get github.com/ooaklee/[email protected]

v0.1.0 Release

28 Aug 23:39
75ae709
Compare
Choose a tag to compare

What's included in this release?

  • Refactored code
  • Utilise error returned in NewHTTPResponse
  • Added log entry for unfound manifest error item.

Installation

go get github.com/ooaklee/[email protected]