2015-05-24 18:45:31 +03:00
|
|
|
#CHANGELOG
|
|
|
|
|
|
|
|
###Gin 1.0rc2 (...)
|
|
|
|
|
|
|
|
- [PERFORMANCE] Fast path for writting Content-Type.
|
|
|
|
- [FIX] Better approach to avoid directory listing in StaticFS()
|
|
|
|
- [FIX] Context.ClientIP() always returns the IP with trimmed spaces.
|
|
|
|
- [FIX] Better warning when running in debug mode.
|
|
|
|
- [FIX] Google App Engine integration. debugPrint does not use os.Stdout
|
|
|
|
- [FIX] Fixes integer overflow in error type
|
|
|
|
- [FIX] Error implements the json.Marshaller interface
|
|
|
|
- [FIX] MIT license in every file
|
|
|
|
|
2014-07-18 17:20:46 +04:00
|
|
|
|
2015-05-22 17:55:16 +03:00
|
|
|
###Gin 1.0rc1 (May 22, 2015)
|
2015-05-11 10:15:00 +03:00
|
|
|
|
|
|
|
- [PERFORMANCE] Zero allocation router
|
|
|
|
- [PERFORMANCE] Faster JSON, XML and text rendering
|
|
|
|
- [PERFORMANCE] Custom hand optimized HttpRouter for Gin
|
|
|
|
- [PERFORMANCE] Misc code optimizations. Inlining, tail call optimizations
|
2015-05-22 17:55:16 +03:00
|
|
|
- [NEW] Built-in support for golang.org/x/net/context
|
2015-05-20 14:15:49 +03:00
|
|
|
- [NEW] Any(path, handler). Create a route that matches any path
|
|
|
|
- [NEW] Refactored rendering pipeline (faster and static typeded)
|
2015-05-22 17:55:16 +03:00
|
|
|
- [NEW] Refactored errors API
|
2015-05-11 10:15:00 +03:00
|
|
|
- [NEW] IndentedJSON() prints pretty JSON
|
|
|
|
- [NEW] Added gin.DefaultWriter
|
2015-05-20 14:15:49 +03:00
|
|
|
- [NEW] UNIX socket support
|
|
|
|
- [NEW] RouterGroup.BasePath is exposed
|
2015-05-11 10:15:00 +03:00
|
|
|
- [NEW] JSON validation using go-validate-yourself (very powerful options)
|
|
|
|
- [NEW] Completed suite of unit tests
|
2015-05-20 14:15:49 +03:00
|
|
|
- [NEW] HTTP streaming with c.Stream()
|
2015-05-22 17:55:16 +03:00
|
|
|
- [NEW] StaticFile() creates a router for serving just one file.
|
|
|
|
- [NEW] StaticFS() has an option to disable directory listing.
|
2015-05-20 14:15:49 +03:00
|
|
|
- [NEW] StaticFS() for serving static files through virtual filesystems
|
|
|
|
- [NEW] Server-Sent Events native support
|
|
|
|
- [NEW] WrapF() and WrapH() helpers for wrapping http.HandlerFunc and http.Handler
|
2015-05-11 10:15:00 +03:00
|
|
|
- [NEW] Added LoggerWithWriter() middleware
|
|
|
|
- [NEW] Added RecoveryWithWriter() middleware
|
|
|
|
- [NEW] Added DefaultPostFormValue()
|
|
|
|
- [NEW] Added DefaultFormValue()
|
|
|
|
- [NEW] Added DefaultParamValue()
|
2015-05-20 14:15:49 +03:00
|
|
|
- [FIX] BasicAuth() when using custom realm
|
2015-05-11 10:15:00 +03:00
|
|
|
- [FIX] Bug when serving static files in nested routing group
|
|
|
|
- [FIX] Redirect using built-in http.Redirect()
|
|
|
|
- [FIX] Logger when printing the requested path
|
|
|
|
- [FIX] Documentation typos
|
2015-05-22 17:55:16 +03:00
|
|
|
- [FIX] Context.Engine renamed to Context.engine
|
2015-05-11 10:15:00 +03:00
|
|
|
- [FIX] Better debugging messages
|
|
|
|
- [FIX] ErrorLogger
|
|
|
|
- [FIX] Debug HTTP render
|
|
|
|
- [FIX] Refactored binding and render modules
|
|
|
|
- [FIX] Refactored Context initialization
|
|
|
|
- [FIX] Refactored BasicAuth()
|
|
|
|
- [FIX] NoMethod/NoRoute handlers
|
|
|
|
- [FIX] Hijacking http
|
|
|
|
- [FIX] Better support for Google App Engine (using log instead of fmt)
|
|
|
|
|
|
|
|
|
2015-03-09 04:50:24 +03:00
|
|
|
###Gin 0.6 (Mar 9, 2015)
|
|
|
|
|
2015-05-11 10:15:00 +03:00
|
|
|
- [NEW] Support multipart/form-data
|
|
|
|
- [NEW] NoMethod handler
|
|
|
|
- [NEW] Validate sub structures
|
|
|
|
- [NEW] Support for HTTP Realm Auth
|
2015-03-09 04:50:24 +03:00
|
|
|
- [FIX] Unsigned integers in binding
|
|
|
|
- [FIX] Improve color logger
|
2015-02-07 17:04:24 +03:00
|
|
|
|
|
|
|
|
|
|
|
###Gin 0.5 (Feb 7, 2015)
|
2014-08-31 00:22:57 +04:00
|
|
|
|
|
|
|
- [NEW] Content Negotiation
|
2015-02-04 15:18:37 +03:00
|
|
|
- [FIX] Solved security bug that allow a client to spoof ip
|
|
|
|
- [FIX] Fix unexported/ignored fields in binding
|
2014-08-31 00:22:57 +04:00
|
|
|
|
|
|
|
|
2014-08-21 03:13:37 +04:00
|
|
|
###Gin 0.4 (Aug 21, 2014)
|
2014-07-18 17:25:55 +04:00
|
|
|
|
2014-08-21 03:13:37 +04:00
|
|
|
- [NEW] Development mode
|
2014-08-18 22:55:33 +04:00
|
|
|
- [NEW] Unit tests
|
|
|
|
- [NEW] Add Content.Redirect()
|
|
|
|
- [FIX] Deferring WriteHeader()
|
|
|
|
- [FIX] Improved documentation for model binding
|
|
|
|
|
2014-07-18 17:25:55 +04:00
|
|
|
|
|
|
|
###Gin 0.3 (Jul 18, 2014)
|
2014-07-18 17:20:46 +04:00
|
|
|
|
|
|
|
- [PERFORMANCE] Normal log and error log are printed in the same call.
|
|
|
|
- [PERFORMANCE] Improve performance of NoRouter()
|
|
|
|
- [PERFORMANCE] Improve context's memory locality, reduce CPU cache faults.
|
|
|
|
- [NEW] Flexible rendering API
|
|
|
|
- [NEW] Add Context.File()
|
|
|
|
- [NEW] Add shorcut RunTLS() for http.ListenAndServeTLS
|
|
|
|
- [FIX] Rename NotFound404() to NoRoute()
|
|
|
|
- [FIX] Errors in context are purged
|
|
|
|
- [FIX] Adds HEAD method in Static file serving
|
|
|
|
- [FIX] Refactors Static() file serving
|
|
|
|
- [FIX] Using keyed initialization to fix app-engine integration
|
|
|
|
- [FIX] Can't unmarshal JSON array, #63
|
|
|
|
- [FIX] Renaming Context.Req to Context.Request
|
|
|
|
- [FIX] Check application/x-www-form-urlencoded when parsing form
|
|
|
|
|
|
|
|
|
|
|
|
###Gin 0.2b (Jul 08, 2014)
|
|
|
|
- [PERFORMANCE] Using sync.Pool to allocatio/gc overhead
|
|
|
|
- [NEW] Travis CI integration
|
|
|
|
- [NEW] Completely new logger
|
|
|
|
- [NEW] New API for serving static files. gin.Static()
|
|
|
|
- [NEW] gin.H() can be serialized into XML
|
|
|
|
- [NEW] Typed errors. Errors can be typed. Internet/external/custom.
|
2015-02-04 15:18:37 +03:00
|
|
|
- [NEW] Support for Godeps
|
2014-07-18 17:20:46 +04:00
|
|
|
- [NEW] Travis/Godocs badges in README
|
|
|
|
- [NEW] New Bind() and BindWith() methods for parsing request body.
|
|
|
|
- [NEW] Add Content.Copy()
|
|
|
|
- [NEW] Add context.LastError()
|
|
|
|
- [NEW] Add shorcut for OPTIONS HTTP method
|
|
|
|
- [FIX] Tons of README fixes
|
|
|
|
- [FIX] Header is written before body
|
|
|
|
- [FIX] BasicAuth() and changes API a little bit
|
|
|
|
- [FIX] Recovery() middleware only prints panics
|
|
|
|
- [FIX] Context.Get() does not panic anymore. Use MustGet() instead.
|
|
|
|
- [FIX] Multiple http.WriteHeader() in NotFound handlers
|
|
|
|
- [FIX] Engine.Run() panics if http server can't be setted up
|
|
|
|
- [FIX] Crash when route path doesn't start with '/'
|
|
|
|
- [FIX] Do not update header when status code is negative
|
|
|
|
- [FIX] Setting response headers before calling WriteHeader in context.String()
|
|
|
|
- [FIX] Add MIT license
|
|
|
|
- [FIX] Changes behaviour of ErrorLogger() and Logger()
|