1.0.22 (2024-09-22)
- add params.Int (1709e1d)
1.0.21 (2023-11-20)
1.0.20 (2023-02-12)
1.0.19 (2022-08-30)
1.0.18 (2022-08-09)
- panic when trying to register same routes with different param names (ace1f17)
1.0.17 (2022-05-25)
- fix another corner case with incorrect param resolving (7e3d720)
1.0.16 (2022-05-23)
- fix extracting params from routes with wildcard and named params (2741aad)
- reqlog: add trace id (b2d6582)
1.0.15 (2022-05-08)
- call method not allowed handler once (37425b7)
1.0.14 (2022-04-14)
- use httpsnoop to wrap response writer (3d86932)
1.0.13 (2022-03-22)
- dedup middlewares applied on the method not allowed handler (2659f03)
- accept multiple middlewares in Use(fn1, fn2, fn3) (1486279)
1.0.12 (2022-01-19)
- use RawPath when available (9859bc7)
1.0.11 (2022-01-18)
- add basicauth middleware (363da1a)
-
Added
Use
function which is an alias forWithMiddleware
. -
Updated docs to use cleaner version of the API. Instead of:
router.NewGroup("/some/prefix",
bunrouter.WithMiddleware(middleware1),
bunrouter.WithMiddleware(middleware2),
bunrouter.WithGroup(func(group *bunrouter.Group) {}),
)
You can use:
router.Use(middleware1).
Use(middleware2).
WithGroup("/some/prefix", func(group *bunrouter.Group) {})
1.0.10 (2022-01-08)
- harden redir checks
1.0.9 (2021-12-23)
- properly handle wildcard node without a slash (88b4d3e)
- add Router.ServeHTTPError that returns the error from the handler (9add167)
1.0.8 (2021-11-16)
- properly handle empty root node (b37ad45)
1.0.7 (2021-11-12)
- don't panic on path that matches routes common prefix (d89dc38)
1.0.6 (2021-11-09)
- propagate error in HTTP compat handlers (5ed4d41)
1.0.5 (2021-11-08)
- fallback to context when params can't be found (ee2eb33)
- apply middleware to method not allowed handler (8e295d0)
1.0.4 (2021-11-07)
- reqlog: support http.Flusher (938d70a)
1.0.3 (2021-10-21)
- make routes with only colon nodes work (fffd754)
1.0.2 (2021-10-19)
- make redirects work for wildcard routes (04cb9f3)
1.0.1 (2021-10-15)
- change WithContext to preserve route params (2ca195a)
1.0.0 (2021-10-14)
- make Slice and Map work on empty request (609c7a3)
- allow configuring reqlog from env variables (486ec10)
1.0.0-rc.2 (2021-10-04)
- Initial release. See the documentation for details.