7.9 KiB
7.9 KiB
1.0.23 (2025-03-19)
Bug Fixes
- router: ensure proper param handling in MethodNotAllowed fallback test (1fe6546)
- router: improve error handling & nil checks (094d78b)
- router: improve error handling & nil checks (d4bd43d)
1.0.23 (2025-03-19)
Features
- enhanced error handling and nil checks throughout the codebase (0dba7e1)
- implemented proper HTTP error interface for standardized error responses (0dba7e1)
- added more descriptive error messages with package prefix (0dba7e1)
Bug Fixes
- prevent panics with comprehensive nil checks (0dba7e1)
- improved parameter validation with bounds checking (0dba7e1)
- ensured Map() and Slice() methods always return non-nil values (0dba7e1)
- fixed JSON handling for nil values (0dba7e1)
1.0.22 (2024-09-22)
Features
- 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)
Bug Fixes
- panic when trying to register same routes with different param names (ace1f17)
1.0.17 (2022-05-25)
Bug Fixes
- fix another corner case with incorrect param resolving (7e3d720)
1.0.16 (2022-05-23)
Bug Fixes
- fix extracting params from routes with wildcard and named params (2741aad)
Features
- reqlog: add trace id (b2d6582)
1.0.15 (2022-05-08)
Bug Fixes
- call method not allowed handler once (37425b7)
1.0.14 (2022-04-14)
Bug Fixes
- use httpsnoop to wrap response writer (3d86932)
1.0.13 (2022-03-22)
Bug Fixes
- dedup middlewares applied on the method not allowed handler (2659f03)
Features
- accept multiple middlewares in Use(fn1, fn2, fn3) (1486279)
1.0.12 (2022-01-19)
Bug Fixes
- use RawPath when available (9859bc7)
1.0.11 (2022-01-18)
Features
- add basicauth middleware (363da1a)
-
Added
Usefunction 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)
Bug Fixes
- properly handle wildcard node without a slash (88b4d3e)
Features
- add Router.ServeHTTPError that returns the error from the handler (9add167)
1.0.8 (2021-11-16)
Bug Fixes
- properly handle empty root node (b37ad45)
1.0.7 (2021-11-12)
Bug Fixes
- don't panic on path that matches routes common prefix (d89dc38)
1.0.6 (2021-11-09)
Bug Fixes
- propagate error in HTTP compat handlers (5ed4d41)
1.0.5 (2021-11-08)
Bug Fixes
- fallback to context when params can't be found (ee2eb33)
Features
- apply middleware to method not allowed handler (8e295d0)
1.0.4 (2021-11-07)
Features
- reqlog: support http.Flusher (938d70a)
1.0.3 (2021-10-21)
Bug Fixes
- make routes with only colon nodes work (fffd754)
1.0.2 (2021-10-19)
Features
- make redirects work for wildcard routes (04cb9f3)
1.0.1 (2021-10-15)
Bug Fixes
- change WithContext to preserve route params (2ca195a)
1.0.0 (2021-10-14)
Bug Fixes
- make Slice and Map work on empty request (609c7a3)
Features
- allow configuring reqlog from env variables (486ec10)
1.0.0-rc.2 (2021-10-04)
- Initial release. See the documentation for details.