Aurelia

Aurelia Releases - May 10, 2016

Introduction

Aurelia

Aurelia


Aurelia Releases - May 10, 2016

Posted by Aurelia on .
Featured

Aurelia Releases - May 10, 2016

Posted by Aurelia on .

In our last full team meeting, we made a goal to have weekly releases, targeting Tuesday. Each release should, naturally, be accompanied by release notes tracking everything contained in the day's releases along with any notes on emergency patch releases done out-of-band in the previous week.

This week's release notes can be found below. Here's a few high level general notes on important issues:

Validation

We're continuing to work on the new validation library we announced last Tuesday. Each of our releases to this plugin will likely contain breaking changes for a little while. So, remember, to get these updates you need to jspm install rather than jspm update (if you are using jspm). Here's some notes from Patrick Walters on the changes in this release.

Breaking Changes

The Validator class for the fluent API should not be injected because it should not be a singleton. Developers should switch this...

static inject = [Validator];  
constructor(validator) {  
  this.validator = validator
    .ensure(this.model, 'firstName')
      .required();
}

to this...

constructor() {  
  this.validator = new Validator(this.model)
    .ensure('firstName')
      .required();
}

You can also see that the fluent API has been refactored to reduce duplication and clean up usage. More information available here.

New Features

You can now manually validate instances that use decorators like this:

class Model {  
  @required firstName = '';
}

this.model = new Model();  
this.validator = new Validator(this.model);  
this.validator.validate();  

Fixes

You can now pass configuration objects to all validation rules. There was previously an issue with a few of the rules mentioned here.

Dialog

Core team member Jedd Ahyoung is taking over working on the dialog library now that Patrick Walters is focusing in on Validation. We like to have at least two (or more) core team members with intimate knowledge of every part of Aurelia, with one taking the leader role on each library. This helps in code review, knowledge transfer and vision casting.

Router

Thanks to the work of community member Javier Ros, the router now has the ability to handle both case-sensitive and case-insensitive routes. The router is case-insensitive by default. You can change this by setting the caseSensitive property on the config object during router configuration.

All the Rest (Release Notes)

Below you can find the release notes relating to other patch releases. As part of this set of patches, we also updated each library's bower.json file to better work with those using Webpack with bower.

aurelia-history 1.0.0-beta.1.2.1

Features

  • history: add getAbsoluteRoot method (96b5e6ed)

aurelia-history-browser 1.0.0-beta.1.2.1 (2016-05-10)

Features

  • history-browser: add getAbsoluteRoot method (c5bb6811)

aurelia-metadata 1.0.0-beta.1.2.1

Bug Fixes

  • metadata: targetKey in Reflect.defineMetadata is optional (fa861f7c)

aurelia-route-recognizer 1.0.0-beta.1.2.1

Bug Fixes

  • route-recognizer: route recognizer is case insensitive by default (d89cde4c)

aurelia-router 1.0.0-beta.1.2.2

Bug Fixes

  • router: router is case sensitive by default (b7cd6f05)

Features

  • router: generate absolute URI from router (6c468265, closes #88)

aurelia-templating 1.0.0-beta.1.2.5

Features

  • view-compiler: add element to processAttributes (d753e672)

aurelia-validatejs 0.2.1

Bug Fixes

  • deps: fix other polyfills version (aurelia/validatejs@f6038df)

aurelia-templating-binding 1.0.0-beta.1.2.3

Bug Fixes

  • AttributeMap: handle standard SVG attributes (288ba120)

templating-resources 1.0.0-beta.1.2.4

Bug Fixes

  • analyze-view-factory: prevent infinite recursion (e9797aa1, closes #219)

aurelia-ui-virtualization 0.4.5

Bug Fixes

  • all: import from root of dependencies (6c41804f, closes #48)
  • array-virtual-repeat-strategy: error when deleting a lot of items (b35135db, closes #49)

aurelia-dialog 0.6.0

Bug Fixes

View Comments...