Skip to content

Releases: raveljs/ravel

Release 0.17.14

06 Oct 19:22
Compare
Choose a tag to compare
Release 0.17.14 Pre-release
Pre-release

Fix for #163

Release 0.17.13

13 Sep 16:46
Compare
Choose a tag to compare
Release 0.17.13 Pre-release
Pre-release

Fix for #161

Release 0.17.12

08 Sep 15:34
Compare
Choose a tag to compare
Release 0.17.12 Pre-release
Pre-release

Documentation improvements concerning logging ( #157 )

Release 0.17.11

30 Aug 19:40
Compare
Choose a tag to compare
Release 0.17.11 Pre-release
Pre-release

It turns out TypeScript supports decorators on generator methods! Ravel will be moving to TypeScript as its default/recommended JavaScript transpiler for the time being until issues with babel are fixed.

Please keep in mind that Ravel is not a TypeScript framework. All of the examples continue to be ES6+Decorators exclusively. It is simply recommended to use TypeScript as an ES6+Generators => ES6 transpiler (though you are welcome to try TypeScript itself with Ravel).

When using the TypeScript transpiler on your js source, be sure to enable allowJs, experimentalDecorators and set target='ES6'.

From now on, Resource and Routes classes can take full advantage of the originally-intended syntax for Ravel:

@inject('cities')
class CitiesResource extends Resource {
  // ... constructor ...

  // notice the koa-like syntax of the handler function
  @before('anotherMiddleware')
  *get(ctx) {
    ctx.body = yield this.cities.getCity(ctx.params.id);
  }
}

Release 0.17.10

25 Aug 19:31
Compare
Choose a tag to compare
Release 0.17.10 Pre-release
Pre-release
  • Removing some undocumented behaviour (see #149)
  • Routes and Resource handler methods can now return a generator function as well as Promises. The generator will be wrapped with co and executed appropriately. This is a stepping stone to when ES2016 decorators can be used on generator methods:
@inject('users')
class UsersResource extends Resource {
  constructor(users) {
    this.users = users;
  }

  @before('something')
  getAll(ctx) {
    return function*() {
      // assume users.getAllUsers returns a Promise
      ctx.body = yield this.users.getAllUsers();
    }.bind(this);
  }
}

Release 0.17.9

25 Aug 15:34
Compare
Choose a tag to compare
Release 0.17.9 Pre-release
Pre-release

Maintenance release containing upgraded dependencies. See #147 for details.

Release 0.17.8

23 Aug 18:39
Compare
Choose a tag to compare
Release 0.17.8 Pre-release
Pre-release

Removes koa-redis dependency in favour of an equivalent, internal implementation. This removes the need for two separate redis connections, as well as two sets of potentially incompatible redis libraries.

Release 0.17.7

19 Aug 17:02
Compare
Choose a tag to compare
Release 0.17.7 Pre-release
Pre-release

Fix for #142

Release 0.17.6

05 Aug 15:05
Compare
Choose a tag to compare
Release 0.17.6 Pre-release
Pre-release

Fixes for #139 and #140

Release 0.17.5

01 Aug 22:15
Compare
Choose a tag to compare
Release 0.17.5 Pre-release
Pre-release

Fixes for #135 and #136