VaticanJS v1.4 is out!

VaticanJS - v1.4
v1.4 is out now! Get it while it's hot!

After several years of neglect a few months ago I decided I would update VaticanJS to be compatible with the latest version of Javascript, since one major change that was introduced with ES6, was the 'class' construct.

In case you didn't know, the biggest feature of Vatican, the one that differentiates it from the other similar frameworks (such as Express, HAPI and others) is the addition of annotations . But the syntax was only compatible with ES5 "class" definition (in other words, by using the prototype-based approach). Now, thanks to this code update, Vatican is also able to understand your ES6 classes and their annotated methods as endpoint handlers.

In other words, you can do something like:

class MyBooksHandler {
@endpoint(url: /books method: get name: books_list)
list(req, res, next) {
//your code here

The other "big" feature, although not that original, was that Vatican also provided a CLI generator for your handlers and models, with a single line, you can tell it to generate your MongoDB compatible models and endpoints, and for the classic CRUD ones, it'll even pre-fill them with basic code. And now, that generated code is also ES6 compatible.

Feel free to look at the full docs in this site, to understand how VaticanJS can help you out when developing your RESTful APIs.

Let me know if you're using VaticanJS and if this update came in handy, I'd love to hear from you!


Recent Posts

See All