Skip to content

0.11.0

Compare
Choose a tag to compare
@frandiox frandiox released this 16 Apr 13:58
· 276 commits to master since this release
  • Props/API handlers can now return status and statusText at the top level (before they had to be wrapped in options).
  • Support redirects from props handlers by just returning a 3xx status code and a Location header.
  • Errors thrown in props/API handlers are automatically parsed as JSON responses and passed to page components as props.
  • Provided a set of common error constructors (e.g. throw new BadRequestError('yikes', { inputs: ['email'] })) and a way to extend them.