Releases: ntbosscher/gobase
Releases · ntbosscher/gobase
Golang 1.18 compatibility and jwt security fixes
v0.7.18
update jwt library for CVE-2020-26160
Fix nested model mapping and expose http auto-recover
v0.7.17 extract AutoHandleHttpPanics so that other packages can use it too (f…
Cleanup squirrel-model interactions, Change routing API
- Update
r
routing to use an argument builder API rather than a function call builder API to make things more concise (BREAKING CHANGE) - Move squirrel related stuff out of model and into squtil (BREAKING CHANGE)
- Add
paginate
to provide simplified data access with paginating, search, filtering and sorting - A bunch of other minor improvements and fixes
Routing Migration
// before
router.WithRole(auth.RoleAny, func(r *r.RoleRouter) {
r.Add("GET", "/api/project/screenshot", project.GetScreenshotHandler)
})
// after
router.Add("GET", "/api/project/screenshot", project.GetScreenshotHandler, auth.RoleAny)
// or
router.Add("GET", "/api/project/screenshot", auth.RoleAny, project.GetScreenshotHandler)
add websocket.HasMessage notification channel
v0.7.15 add websocket.HasMessage notification channel
add auth.UserNull for db queries that want to inject the current user (nullable)
v0.7.14 add auth.UserNull for db queries that want to inject the current user…
add model.ScheduleFunc for query enabled scheduled jobs
v0.7.13 update model/schedule to rely on timeutil.ScheduleJob instead of re-i…
add model.ScheduleFunc for query enabled scheduled jobs
v0.7.12 update requestip.IP to not panic when an IP isn't available
update requestip.IP to not panic when an IP isn't available
v0.7.11 update requestip.IP to not panic when an IP isn't available
update delay functionality in model.ScheduleQuery to make the delay's more reasonable and related to the interval
v0.7.10 update delay functionality in model.ScheduleQuery to make the delay's…