Please read through the notes to see what is new, what has been improved, and most importantly, what might be breaking changes for existing applications.

In addition to what is listed here, I recommend you read the CHANGELOG for a complete list of what has changed in v0.8.1 .

What’s New

Resource Generator Improvements

Resource generation has been around a while in Buffalo, but until v0.8.1 it has been pretty basic. Now, when generating a resource, the CRUD actions will be fully implemented, as well as the HTML views. This speeds up development tremendously!

Here is a small video to introduce this new feature:

There is more work to come on resource generation over the next few releases, so stay tuned!

ES6 Transpiling and Production Minification

Buffalo now fully supports ES6 transpiling and minification. Newly generated applications will get this automatically. To upgrade existing Buffalo applications is fairly easy. The PR https://github.com/gobuffalo/buffalo/pull/350/files demonstrates the changes.

i18n Support

Buffalo now supports i18n (internationalization) out of the box using the https://github.com/nicksnyder/go-i18n package. Newly generated Buffalo applications will have this setup by default, but it’s straightforward to back port to previous applications.

Here is a small video to introduce this new feature:

https://vimeo.com/212306865

CSRF Middleware

In v0.7.4.1 a new middleware for handling CSRF attacks was introduced. In v0.8.1 this middleware is now generated into actions/app.go for new applications.

It is strongly encouraged that you add this middleware if you have not already. The github.com/gobuffalo/tags/form package already has support for working with this middleware.

Parameter Logging Middleware

In v0.8.1 a new middleware, middleware.ParameterLogger is introduced to log parameters and form values. For newly generated this middleware is setup to be used only in development mode.

Existing applications can easily set up this middleware in the actions/app.go file:

if ENV == "development" {

app.Use(middleware.ParameterLogger)

}

Tons of Windows Fixes

A lot of great fixes in Buffalo and packr for Windows.

“form” and “form_for” helpers

Work on the github.com/gobuffalo/tags has been going on for a couple of months, mostly pending the release of Plush. Now that Plush is released and stable the “experimental” tag has been removed from tags and it’s finally production ready.

Included in Plush now are two helpers, form and form_for , that can be used to generate forms in Plush.