Skip to content

Revel 0.20.0

Compare
Choose a tag to compare
@notzippy notzippy released this 23 Sep 18:27
· 93 commits to master since this release

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)