Skip to content

Releases: ngamux/ngamux

v1.6.1

04 Jun 11:29
Compare
Choose a tag to compare

v1.6.1 (2024-06-04)

Add

Chore

Feat

  • query parser to struct fd72e85
  • mux: πŸš€ dynamic route using + (mandatory any) 87da71a
  • mux: πŸš€ mount mux at any path ad16522

Fix

  • ngamux: regex for param finder remove one excape char 314bb56

Refactor

  • regex for param finding use backtick 88135e8
  • response: πŸ”§ HTML & JSON renamed a48e2c6
  • test: πŸ§ͺ cleaner logs 5496606

Send Parsed HTML

04 Mar 04:08
Compare
Choose a tag to compare

v1.6.0 (2023-03-04)

Feat

Refactor

Test

Docs

  • add supported middlewares fd5a8b2
  • unsupported middlewares and examples with new response API 8204cd0

Add Context and Some Ngamux's Functions

26 Feb 15:20
Compare
Choose a tag to compare

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

24 Feb 19:57
Compare
Choose a tag to compare

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

24 Feb 17:57
Compare
Choose a tag to compare

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

23 Feb 14:49
Compare
Choose a tag to compare

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

21 Feb 15:05
Compare
Choose a tag to compare

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

14 Mar 00:43
afa4f5a
Compare
Choose a tag to compare

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

26 Sep 07:37
Compare
Choose a tag to compare

In this release, ngamux has increased on code coverage by more than 70%.
ngamux

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

21 Sep 07:33
Compare
Choose a tag to compare

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