Skip to content

Releases: tuan882612/apiutils

v1.4.0

Choose a tag to compare

@tuan882612 tuan882612 released this 08 Sep 08:09

Minor Changes

  • Removed RequestID generation test and imports related to it.

feat: Dependency Handling

  • added a dependency map type
  • added a validation function
  • added new unit test for it

v1.3.0

Choose a tag to compare

@tuan882612 tuan882612 released this 24 Aug 03:08

Minor Changes

  • Removed automatic ID generation from WrapRes.
    • Request IDs are now generated earlier in the request lifecycle by individual services.
    • This provides better correlation of logs/metrics and control over the Request IDs.

v1.2.0

Choose a tag to compare

@tuan882612 tuan882612 released this 13 Aug 15:54

Minor changes

  • Request id header name change
  • Removed internal server error logging since it is done at the initialization level

v1.1.0

Choose a tag to compare

@tuan882612 tuan882612 released this 31 Jul 02:52

Bugfix: Response

  • A nil body wouldn't allow for data to be encoded

v1.0.0

Choose a tag to compare

@tuan882612 tuan882612 released this 30 Jul 22:06

feat: Response

  • WrapRes is now SendRes
    • can take in custom headers/content-types
    • request ids added in to debbugging and backtracing
  • AddHeaders
    • takes in a map of headers

feat: Jsonify

  • this functionality was moved to SendRes for simplicity

feat: Password

updated the validating and hashing to be more inutitive

  • hashing
    • returns reference now rather than pointer
  • validating
    • now takes in pure strings instead of a address
    • returns errors even on invalid passwords

v0.3.0

Choose a tag to compare

@tuan882612 tuan882612 released this 20 Jul 10:29

feat: http error

  • Removed pointer receivers and constructor returns the reference rather than address for easier error comparison
  • Updated the general error handler to be more readable and now logs 500 errors

MINOR improvements

Choose a tag to compare

@tuan882612 tuan882612 released this 14 Jul 21:55

feat: base utils

  • made json function private access
  • made sure encoding error actually handled when happened

feat: security utils

  • updated password hashing to return address

initial release

Choose a tag to compare

@tuan882612 tuan882612 released this 14 Jul 00:07
v0.1.0

chore: reformat some of the code