Repository navigation
Releases: tuan882612/apiutils
Releases · tuan882612/apiutils
Release list
v1.4.0
v1.3.0
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
Minor changes
- Request id header name change
- Removed internal server error logging since it is done at the initialization level
v1.1.0
Bugfix: Response
- A nil body wouldn't allow for data to be encoded
v1.0.0
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
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
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
v0.1.0 chore: reformat some of the code