Skip to content

Releases: aurelia/validatejs

0.7.0

27 Jul 17:55
Compare
Choose a tag to compare
  • Version bump

0.6.0

22 Jun 15:48
Compare
Choose a tag to compare
  • Release sync.

0.5.2

17 Jun 01:54
Compare
Choose a tag to compare
  • Add typings.json

0.5.1

16 Jun 03:10
Compare
Choose a tag to compare
  • Fixing various bugs. Sorry for lack of details, our chagelog generation is temporarily out of commission.

0.5.0

14 Jun 19:43
Compare
Choose a tag to compare
  • Major new implementation. See blog post for details.

0.4.0

31 May 15:29
Compare
Choose a tag to compare

Bug Fixes

  • bindings: use binding engine to get target (#70)
  • dts: make key and descriptor optional (#64)

0.3.1

17 May 19:26
Compare
Choose a tag to compare

Fixes

  • renderer: ensure previous errors are cleared before rendering new errors (#52)
  • numericality: missing configuration argument (#43)

0.3.0

10 May 20:14
Compare
Choose a tag to compare

Breaking changes -

Validator / Fluent API

The Validator class for the fluent API should not be injected because it should not be a singleton. The developer 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 is here - #17

You can also 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 - #41

0.2.1

05 May 13:56
Compare
Choose a tag to compare

Bug Fixes

  • deps: fix other polyfills version (f6038dfc)

0.2.0

03 May 20:29
Compare
Choose a tag to compare

Bug Fixes

  • package: update polyfills version and add bower.json (6acc623c)