Pre-release v5.0.0-rc9
Pre-release
Pre-release
System-Glitch
released this
11 Apr 10:01
·
94 commits
to master
since this release
- Slog: the dev mode handler now uses a pointer for its mutex and shares the same mutex among all his clones.
Server.Stop()
won't attempt to closesigChannel
again if the server has already been stopped. This method can this be called several times safely now.- Router
- Changed the subrouter matching so it doesn't work with prefix only. This will remove conflicts between two subrouters having a prefix starting with the same characters (e.g.:
/test
and/test-2
won't conflict anymore) - The router won't turn back and explore other branches if the subrouter matches but none of its routes do. This will fix some false matches.
- Fixed
/
route defined at the main router being matched if a subrouter matches but none of its routes do and a trailing slash is present in the request URI.
- Changed the subrouter matching so it doesn't work with prefix only. This will remove conflicts between two subrouters having a prefix starting with the same characters (e.g.:
- Cleanup: removed some unused resources, outdated comments and updated incorrect documentation
- Validation
- Fixed a reflect error in
ArrayValidator
if the first element of the array is invalid (e.g.:nil
) - Use error wrapping in
Unique
/Exists
validators for better error stacktraces - Add a timeout on the SQL query executed by the
ExistsArray
validator. - Remove suffix
[]
from n-dimensional array elements field name in error messages.
- Fixed a reflect error in