Releases: ngamux/ngamux
Releases Β· ngamux/ngamux
v1.6.1
Send Parsed HTML
v1.6.0 (2023-03-04)
Feat
- response-static: π send static file (#17 by @born2ngopi) 595a25c
- Add route method HEAD 667c923
Refactor
- ctx: π§ move ctx to https://github.com/ngamux/ctx dc402c5
- response: π§ change String to Text 6a95513
- response: π§ rename StaticFile to HTML b46db13
Test
- response: π§ͺ Html 9f6c49f
Docs
Add Context and Some Ngamux's Functions
v1.5.0 (2023-02-26)
Feat
- context: π wrap req and res in single object
- ngamux-config: π get (read only) config
- ngamux-head: π send header only response
Fix
- ngamux: π lint error
Test
- π§ͺ use LogLevelQuiet
Simple Logging Utility
v1.4.0 (2023-02-25)
Feat
- log: π simple logging utility
- req-IsLocalhost: π check is request come from local
Fix
- route: π not log route registration
Test
- higher coverage
Chore
- linter was going annoying
Chaining API to Manage Request Data
v1.3.0 (2023-02-25)
Feat
- request: π chaining API to manage request data
Refactor
- better request chaining API
Ci
- version typo
- update actions
Test
- π§ͺ check error in response
Chaining Response Builder
v1.2.0 (2023-02-23)
Feat
- response: π chaining response builder
Ci
- update go to 1.20.1
- update go to 1.20
Test
- π§ͺ testing response chaining
Nested Group Support and Simpler Middleware Registration
v1.1.0 (2023-02-21)
Feat
- group: π nested
- ngamux: set config use options API
- ngamux-with: π new way middleware registration
Fix
- common: π not use any for unknown type
Refactor
- π§ put all supported method in variable
Test
- common: π§ͺ TestGetFormValue
Chore
- ignore test output file
- bump go to 1.20
- ci: add coveralls
[PATCH] Better Testing and API Changes
v1.0.4 (2022-03-14)
Fix
- mux: register route all to all supported methods
- ngamux: change NewNgamux to New
- route: no matched because method replaced
Refactor
- common: test using golang-must assertion lib
- config: test using golang-must assertion lib
- group: test using golang-must assertion lib
- handler: test using golang-must assertion lib
- mux: test using golang-must assertion lib
- ngamux: fix golint
- ngamux: fix golint
- ngamux: fix golint
- route: test using golang-must assertion lib
Chore
- ci test show coverage
- ci lint and test
- improve golint
- git-chglog init
- common: fix misspell in comments
Feat
- ngamux: benchmark add and get route
[PATCH] Increase tested code coverage and fix route matching
In this release, ngamux has increased on code coverage by more than 70%.
Change Log
v1.0.3 (2021-09-26)
Feat
- common: test TestGetQuery
- common: test TestGetParam
- common: test TestSetContextValue
- common: test TestGetContextValue
- common: test TestString
- common: test TestStringWithStatus
- common: test TestJSON
- common: test TestJSONWithStatus
- common: test WithMiddlewares
- common: test TestGetJSON
- config: test TestBuildConfig
- group: test TestGroup
- handler: test TestServeHTTP
- mux: test TestGet
- mux: test TestNewNgamux
- mux: test TestPut
- mux: test TestPatch
- mux: test TestDelete
- mux: test TestAll
- mux: test TestPost
- mux: test TestUse
- route: test TestBuildRoute
- route: test TestAddRoute
- route: test TestGetRoute
Fix
- mux: route param finder with number and chars
- mux: route method all matching
- mux: send error object to global error handler
[PATCH] Fix error handling and add common features
This is patch release, the last release was enhanced without API breaking changes.
Here what is included in this release:
- change NotFoundHandler to GlobalErrorHandler with error data in req context value
- apply global middleware for GlobalErrorHandler
- add Map type to simplify JSON response
- add func to send string response