Revel v0.20.0 Release Notes

Release Date: 2018-09-23 // over 5 years ago
  • ๐Ÿ†• New items

    • โšก๏ธ Updated minimum Go requirements to Go 1.8

    Revel Cmd changes

    ๐Ÿ‘€ See manual for more information on the flags and new features

    • ๐Ÿš€ Rewrote revel/cmd package so it has no dependencies on revel/revel - future releases for revel/cmd will not be on the same schedule as revel/revel
    • โž• Added flag support to revel/cmd ,
    • โž• Added automatic vendor creation flag, when enabled a vendor folder will be added and used to the project
    • โž• Added [DEFAULT] section to message skeleton so multiple lines work
    • ๐Ÿ†“ If port specified is 0 then proxy can will run on a random free port
    • Split main file into two files so it may be invoked using other methods
    • โž• Added ability to only monitor and update build files (without running a proxy)
    • Auto download revel/revel, revel/cmd - if you point your GOPATH to an empty directory the revel tool will still be able to create a new project
    • ๐Ÿ‘ Made application path smarter. Now supports absolute paths and relatives paths.
    • modified revel run to pass in json code to the revel.Init function in place of the mode field. This allows for dynamic information to be passed to the Revel Server. This can be disabled by using this flag --historic-run-mode
    • modified revel new added -V to auto create the vendor folder inside the application along with the Gopkg.toml file.
    • modified revel new added -r to run the application after creating it.

    revel/module

    • โœจ Enhanced gorp module to make database schema available
    • โž• Added server-engine server-engine/gohttptest and a testsuite file that implements all the methods from revel/testsuite. This test engine as an alpha implementation to be able to run go test from the command line. Meaning your tests can now live beside the controller. An example testsuite is here
    • โšก๏ธ Updated static module, moved a structure into a model package

    revel/revel

    • โž• Added startup fail REVEL_FAILURE event
    • Added HTTP_REQUEST_CONTEXT fetch
    • โž• Added websockets Message.Send / Message.Receive functions.
    • โœจ Enhanced required validator
    • ๐Ÿ‘€ Graceful shutdown added. By doing a revel.RaiseEvent()

    ๐Ÿ’ฅ Breaking Changes

    • Request.Context() map[string]interface() renamed to
      Request.Args() map[string]interface()
      ๐Ÿ†• new function added which returns the request.Context for the server-engine that supports it
      Request.Context() context.Context
      revel.EventHandler signature was func(typeOf int, value interface{}) (responseOf int)
      now it is func(typeOf Event, value interface{}) (responseOf EventResponse)