Skip to content

v1.0.0

Choose a tag to compare

@stevenschobert stevenschobert released this 09 Mar 07:44
· 2 commits to master since this release

This release overhauls how requests/responses are handled from a controller-level. Previously, a controller would use this to return text/json/ect. Now controllers will be interfacing primarily through a new connection parameter they get passed.

class PostsController {
  index(conn) {
    return conn.json({ message: "hello world!" });
  }
}

This change was primarily driven by a big upgrade to the underlying library (mach) that power most of Pimm.

The connection handling is the only breaking change in this release. Some other fun features include bug fixes to enable ES6 class support in controllers.