gin/CHANGELOG.md

177 lines
6.3 KiB
Markdown
Raw Normal View History

2017-04-07 23:17:46 +03:00
# CHANGELOG
2015-05-24 18:45:31 +03:00
2017-04-07 23:17:46 +03:00
### Gin 1.2
- [NEW] Switch from godeps to govendor
- [NEW] Improve README examples and add extra at examples folder
- [NEW] Improved support with App Engine
- [FIX] Refactor render
- [FIX] Reworked tests
### Gin 1.1.4
- [NEW] Support google appengine for IsTerminal func
### Gin 1.1.3
- [FIX] Reverted Logger: skip ANSI color commands
### Gin 1.1
- [NEW] Implement QueryArray and PostArray methods
- [NEW] Refactor GetQuery and GetPostForm
- [NEW] Add contribution guide
- [FIX] Corrected typos in README
- [FIX] Removed additional Iota
- [FIX] Changed imports to gopkg instead of github in README (#733)
- [FIX] Logger: skip ANSI color commands if output is not a tty
### Gin 1.0rc2 (...)
2015-05-24 18:45:31 +03:00
2016-01-26 17:55:30 +03:00
- [PERFORMANCE] Fast path for writing Content-Type.
2015-05-31 05:33:47 +03:00
- [PERFORMANCE] Much faster 404 routing
- [PERFORMANCE] Allocation optimizations
- [PERFORMANCE] Faster root tree lookup
2015-06-07 14:51:35 +03:00
- [PERFORMANCE] Zero overhead, String() and JSON() rendering.
- [PERFORMANCE] Faster ClientIP parsing
2015-05-31 18:35:22 +03:00
- [PERFORMANCE] Much faster SSE implementation
2015-05-31 05:33:47 +03:00
- [NEW] Benchmarks suite
2015-05-31 18:35:22 +03:00
- [NEW] Bind validation can be disabled and replaced with custom validators.
2015-06-07 14:51:35 +03:00
- [NEW] More flexible HTML render
2015-07-04 19:10:03 +03:00
- [NEW] Multipart and PostForm bindings
- [NEW] Adds method to return all the registered routes
- [NEW] Context.HandlerName() returns the main handler's name
- [NEW] Adds Error.IsType() helper
2015-05-31 05:33:47 +03:00
- [FIX] Binding multipart form
2015-06-07 14:51:35 +03:00
- [FIX] Integration tests
2015-05-31 05:33:47 +03:00
- [FIX] Crash when binding non struct object in Context.
- [FIX] RunTLS() implementation
- [FIX] Logger() unit tests
2015-07-04 19:10:03 +03:00
- [FIX] Adds SetHTMLTemplate() warning
- [FIX] Context.IsAborted()
- [FIX] More unit tests
- [FIX] JSON, XML, HTML renders accept custom content-types
- [FIX] gin.AbortIndex is unexported
2015-05-24 18:45:31 +03:00
- [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
2017-04-07 23:17:46 +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
2015-07-04 19:10:03 +03:00
- [FIX] Refactored binding and render modules
2015-05-11 10:15:00 +03:00
- [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)
2017-04-07 23:17:46 +03:00
### Gin 0.6 (Mar 9, 2015)
2015-03-09 04:50:24 +03:00
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
2017-04-07 23:17:46 +03:00
### Gin 0.5 (Feb 7, 2015)
- [NEW] Content Negotiation
- [FIX] Solved security bug that allow a client to spoof ip
- [FIX] Fix unexported/ignored fields in binding
2017-04-07 23:17:46 +03: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
2017-04-07 23:17:46 +03: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
2017-04-07 23:17:46 +03:00
### Gin 0.2b (Jul 08, 2014)
2014-07-18 17:20:46 +04:00
- [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.
- [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()