Changelog History
Page 1
-
v4.1.3 Changes
July 14, 2020[minor] added
webgo.ResponseStatus(rw http.ResponseWriter) int
which returns response status code
๐ [patch] fixed a bug which did not send appropriate JSON response header for the convenience methods
๐จ [patch] fixed accesslog middleware not printing valid http status code when not using webgo response methods
0๏ธโฃ [patch] fixed regression introduced in 4.0.4, where default http status was 0, now it's set to 200
๐จ [patch] refactored accesslog & CORS middleware (moved to new package)
๐จ [patch] refactored global logger for improved modularity
๐ [patch] Removed unnecessary WriteHeader from SendResponse, SendError. Added relevant header write for Send
[-] added handler which directly writes usingw.Write
where 'w' is the http.ResponseWriter, incmd/main.go
โ [-] added tests for logger
๐ [-] no performance impact with these changes
๐ [-] removed the empty deprecation logs function
๐ [-] removed unwanted comments fromcmd/main.go
โก๏ธ [-] updated README with correct version number & updated important section highlight the regression
โก๏ธ [-] updated README with correct version number and updated the sample code
โก๏ธ [-] updated tests to test ifw.Write([]byte)
where 'w' is the http.ResponseWriter, works as expected -
v4.1.1
June 09, 2020 -
v4.0.7
June 07, 2020 -
v4.0.6
June 07, 2020 -
v4.0.4 Changes
June 06, 2020[patch] added http.CloseNotifier implementation
๐จ [patch] refactored response writer and context payload usage
๐ [patch] removed ineffectual assignments
๐ [patch] removed redundant check of customResponseWriter.headerWritten
โ๏ธ [-] fixed typos in comments
๐จ [-] refactored for better readability at multiple places[-] MacBook Pro (13-inch, 2019, Two Thunderbolt 3 ports), OS: 10.15.5 (19F101), Go 1.14.4 darwin/amd64
[-] benchmark resultsBenchmarkGetNoParams-8 809166 1433 ns/op BenchmarkGetWithParams-8 229358 4878 ns/op BenchmarkPostWithParams-8 204218 4904 ns/op
-
v4.0.3
June 06, 2020 -
v4.0.1
June 05, 2020 -
v4.0.0 Changes
June 04, 2020v4.0.0
๐ [major] removed deprecations from 3.x
๐จ [patch] refactored context payload remove unused fields
[patch] introduced new Params function for fetching URI parameters
[-] regression introduced in 3.5.4, for URI params computing. Was computing escaped values again, whenr.URL.EscapedPath()
already gives escaped value
โก๏ธ [-] README updated with new verison number & details
๐ [-] releasenotes.md was removed in favour of git tag messages & github releases
[-] benchmark results, run on MacbookPro 2019, Catalina 10.15.5 (19F101), 16 GB 2133 MHz LPDDR3, 1.4 GHz Quad-Core Intel Core i5BenchmarkGetNoParams-8 741256 1606 ns/op BenchmarkGetWithParams-8 223771 5062 ns/op BenchmarkPostWithParams-8 220663 5131 ns/op
-
v3.5.4 Changes
June 03, 2020v3.5.4
Chances since v2.4.1
v3.5.4, Wed Jun 3 17:32:37 2020 +0530
๐ [minor] deprecation logs are now printed while initial setup (list available in Readme)
๐ฒ [patch] Send,SendResponse,Render methods would log and respond with Internal server error in case of errors while writing response
๐จ [patch] refactored route.init method to reduce cognitive complexity & to smaller functions
๐ [patch] refactored URI matching methods to reduce cognitive complexity, to smaller functions & minor performance improvement
๐ [patch] introduced new functionContextPayload.URIParams(*http.Request)
, deprecatedContextPayload.Params
โก๏ธ [-] updated contribution.md
v3.4.2, Wed May 27 00:59:26 2020 +0530
๐ [minor] refactored serve method to reduce cyclomatic complexity. This provides performance improvement
โก๏ธ [patch] updated go.mod file to use Go version 1.14
โก๏ธ [patch] updated travis config to remove go version from go.mod
v3.3.3, Wed May 13 17:43:44 2020 +0530
๐ง [patch] added function to allow configuration of default logger
v3.3.2, Wed May 13 03:18:02 2020 +0530
๐ฒ [patch] duplicate route name log is made into a "info" log instead of warn
โก๏ธ [patch] updated README with valid code
v3.3.0, Tue Jan 28 09:55:41 2020 +0530
[minor] Implemented
http.Hijacker
interface
v3.2.9, Fri Jan 24 18:24:30 2020 +0530
โก๏ธ [patch] updated how middleware is used on NotFound & NotImplemented handlers
v3.2.8, Fri Jan 24 16:57:25 2020 +0530
๐จ [patch] refactored for better readability
[patch] overwriting the actual request instance
โ [patch] added test to check if webgo context is avaialble in middleware
v3.2.5, Fri Jan 24 16:42:04 2020 +0530
โก๏ธ [patch] updated ServeHTTP to inject webgo context into the request earlier, to make it available to middleware as well
v3.2.4, Sat Jan 18 18:56:36 2020 +0530
๐ [patch] removed some variable declaration to avoid memory allocation
โก๏ธ [patch] updated sample app to show chaining
v3.2.2, Sat Jan 18 16:41:55 2020 +0530
โก๏ธ [patch] minor updates to tests and sample app
v3.2.1, Fri Jan 17 19:18:18 2020 +0530
[minor] middleware will now be excecuted for the router's NotFound handler as well
[minor] Method not implemented status is now executed using a handler similar to NotFound
โก๏ธ [patch] updated responses test to use t.Error instead of Log & Fail
v3.0.2, Sun Oct 6 00:50:29 2019 +0530
โก๏ธ updated test to use v3
v3.0.1, Sun Oct 6 00:37:10 2019 +0530
โก๏ธ middleware package updated
v3.0.0, Sun Oct 6 00:35:15 2019 +0530
โก๏ธ context payload updated
v2.5.3, Sat Oct 5 22:14:01 2019 +0530
๐ documentation update
v2.5.2, Thu Sep 5 10:11:24 2019 +0530
๐ fixed go.mod
v2.5.1, Thu Sep 5 10:09:55 2019 +0530
๐ fixed go.mod v2
v2.5.0, Wed Jul 3 17:24:26 2019 +0530
Webgo context is now available inside middleware too!
-
v3.4.2
May 26, 2020