Skip to content

Releases: ntbosscher/gobase

Golang 1.18 compatibility and jwt security fixes

26 Apr 13:32
Compare
Choose a tag to compare

v0.7.18

03 Aug 17:53
Compare
Choose a tag to compare
update jwt library for CVE-2020-26160

Fix nested model mapping and expose http auto-recover

18 Dec 15:15
Compare
Choose a tag to compare
v0.7.17

extract AutoHandleHttpPanics so that other packages can use it too (f…

Cleanup squirrel-model interactions, Change routing API

07 Dec 21:10
Compare
Choose a tag to compare
  • 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

16 Nov 18:15
Compare
Choose a tag to compare
v0.7.15

add websocket.HasMessage notification channel

add auth.UserNull for db queries that want to inject the current user (nullable)

16 Nov 15:42
Compare
Choose a tag to compare
v0.7.14

add auth.UserNull for db queries that want to inject the current user…

add model.ScheduleFunc for query enabled scheduled jobs

16 Nov 15:36
Compare
Choose a tag to compare
v0.7.13

update model/schedule to rely on timeutil.ScheduleJob instead of re-i…

add model.ScheduleFunc for query enabled scheduled jobs

16 Nov 15:30
Compare
Choose a tag to compare
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

16 Nov 14:46
Compare
Choose a tag to compare
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

16 Nov 14:30
Compare
Choose a tag to compare
v0.7.10

update delay functionality in model.ScheduleQuery to make the delay's…