Release Notes - v0.8.x

What’s new?

  • Auto Parse and Bind - Controller action parameters.
  • Centralized Error Handler.
  • Secure HTTP Headers.
  • Content Negotiation.
  • Max Request Body Limit.

Changelog

Features

Enhancements

  • aah server header made configurable, refer to config, #98.
  • aah application PID file path made configurable, refer to config, #99
  • Custom Render implementation support added, refer to doc, #103.
  • Code improvements, Documentation, Website improvements.

Bug Fixes

  • i18n fallback to default store when locale configuration file/key is not defined, #97.
  • Hot-Reload with VirtualBox port forwarding issue, #92.

Migration Guide

aah.conf

Time Format configuration enhanced to support more formats. So remove these two date and datetime config and add following config under format { ... }

# Time format for auto parse and bind. aah tries to parse the
# time value in the order they defined till it gets success
# otherwise returns the error.
time = [
  "2006-01-02T15:04:05Z07:00",
  "2006-01-02T15:04:05Z",
  "2006-01-02 15:04:05",
  "2006-01-02"
]

Breaking changes

routes.conf

not_found { ... } configuration section in routes.conf have been removed in-favor of Centralized Error Handler.

ahttp.Request

Payload field have been removed in-favor of Auto parse and bind feature. Also Body() method is introduced in v0.8 to get access to request body if need be.