Skip to content

Release 0.14.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@Ghnuberath Ghnuberath released this 24 May 04:18
· 595 commits to master since this release

Two major breaking changes in this release:

  1. Ravel#registerSimpleParameter is now Ravel#registerParameter
  2. Transaction functionality now supports the opening and closing of connections to specific database providers, rather than all of them every time. This will improve efficiency in applications connecting to several different databases. Examples of change are below:

before:

const before = Resource.before;
class MyResource extends Resource {
  ...
  @before('transaction')
  getAll(ctx) {
    ...
  }
}

after:

const transaction = Resource.transaction;
class MyResource extends Resource {
  ...
  // open all connections
  @transaction()
  getAll(ctx) {
    ...
  }

  // open some connections
  @transaction('mysql', 'rethinkdb')
  get(ctx) {
    ...
  }
}