- Add internal errors to all missing applicable errors
- Optimize info call from O(n) (where n number of connections/claims) to O(1) (in terms of Redis requests)
- Optimize send call
- Optimize channel call
- Add TTL refreshing
- Add sending lock/mutex (prevents
concurrent write to websocket connectionerror)
- Add direct API to worker messaging
- Add
redis_max_retriesoption - Add
redis_tlsoption - Added request ID to error responses
- Added more logging (including on error responses), and change multiple debug logging to info
- Parallelized parsing of messages received from Redis (should increase throughput)
- Deprecating
addressoption: Useportinstead - Fix bug where creating a claim with ID left ID blank
- Add
/pingendpoint on API & worker
- Rebuild with fixed Docker images
- Improve query binding
- Add locking for concurrent state (thanks a lot @abdullah-aghayan!)
- Change logger to Zap (include request logger)
- Added logging to all requests
- Change unsubscribe type from 2 to 1 (internal type)
- Fix debug mode never being active
- Add log request (
log_requests) option
- Breaking
- Change
MISSING_CONNECTION_OR_USERtoMISSING_TARGET(and changed message)
- Change
- Added channels:
- Added
channeltarget option to sending, getting info, disconnect - Added
channelsJWT claim (array of strings) - Added
channelsto claim creation (comma-delimited string) - Added
channelsto info response for connections - Added channel subscribing and unsubscribing
- Added
default_channelsconfig options (comma-delimited string)
- Added
- Replace
scriptsdirectory with Task
-
Breaking
- Changed response format for creating claims
-
All claim data is now inside the
claimkey, and more data is present. Example:Before:
{ "success": true, "id": "XXX", "expiration": 1588473164 }After:
{ "success": true, "claim": { "id": "XXX", "expiration": 1588473164, "user": "a", "session": "b" } }
-
- Changed response format for creating claims
-
Added tests (E2E, unit) and CI
-
Added past expiration validation (doesn't allow expiration dates in the past) during claim creation
- Improved code documentation, refactored to make it cleaner
- Improved API response code (refactored error handling)
- Small performance improvements for some hot-paths
- Actually bump version in code
- Fixed bug with missing
errorCodewhen duration is negative during claim creation - Fix bug with incorrect
errorCodewhen error is trigger during checking if a claim exists - Added documentation on errors
Version code during application startup is wrongly reported as v0.1.0
- Initial beta release