Revel v0.21.0 Release Notes
Release Date: 2018-10-30 // over 4 years ago-
๐ New items
- ๐ Session Engine support You can now define your own session engine. By default the cookie engine is the one used for the session, but with this change you can implement your own. Also controller.Session is now a
map[string]interface{}
which means you can place any object that can be serialized to a string. - โ Added http mux support you can now integrate Revel with packages that have their own HTTP muxers. This allows you to integrate with Hugo, Swagger or any suite of software that is out there.
- 0๏ธโฃ
revel.controller.reuse
app.conf option to turn on / off reuse of the controllers. Defaults to true
๐ฅ Breaking changes
controller.Session is now a map[string]interface{} (previously was map[string]string) this means existing code needs to cast any values they pull from the session
if username, ok := c.Session["user"]; ok { // username is a string type return c.getUser(username) }
๐ changes to
if username, ok := c.Session["user"]; ok { // username is an interface{} type return c.getUser(username.(string)) }
๐ Deprecated log points removed
๐ revel.ERROR, revel.TRACE, revel.DEBUG, revel.WARN have been removedFunction name change
revel.OnAppStop
Replaced revel.OnAppShutdown๐ revel.SimpleStack was moved to github.com/revel/revel/utils.SimpleStack
๐ New packages required
Revel Framework
- github.com/twinj/uuid (revel/revel session ID generation)
Revel Cmd
- github.com/kr/pty (revel/cmd capture output of dep tool)
๐ฆ Package changes
Revel Framework
- โ Added stack to errors Added stack information to router when forumlating error
- ๐ Fix spelling errors from go report
- โ Removed deprecated loggers
- โก๏ธ Updated travis , made windows success optional
- ๐ฆ Exposed StopServer function to public Changed session filter to use empty call
- ๐ 577ae8b Enhancement pack for next release Added session engine support, and the session cookie engine breaking change revel.Session was map[string]string now is map[string]interface{}
- โก๏ธ Updated shutdown to support windows environment
- ๐ Patched shutdown support to make it work through the event engine
- Added ENGINE_SHUTDOWN_REQUEST to events, raising this event will cause the server to shutdown
- Assigned Server engines to receive revel.Events Added revel.OnAppStop hooks -
- ๐ฆ Normalized startup / shutdown hooks into their own package
Revel Cmd
- Modified run command to translate symlinks to absolute paths
- โก๏ธ Tool updates Updated tool to give more meaningful errors
- โ Added file system as an option to fetch the skeleton from
- ๐ Allow windows to fail on travis
- โ run Command will choose CWD if no additional arguments are supplied
- โ Added Revel version check, compatible lists are in model/version
Revel Modules
- โก๏ธ Updated CSRF test cases
- โ Added travis test for modified test engine
- โก๏ธ Updated server-engine modules to support OnAppStop functionality.
- โก๏ธ Reorganization, readme updates Moved auth example into its own folder
- โก๏ธ Updated root readme
- โก๏ธ Updated CSRF
Revel Examples
- ๐ Fixed issue with error checking closes websocket in chat
- โก๏ธ Updated booking module to work with changed session
- โก๏ธ Updated to remove any references to old revel.log variables
- ๐ Session Engine support You can now define your own session engine. By default the cookie engine is the one used for the session, but with this change you can implement your own. Also controller.Session is now a