Skip to content

Releases: aurelia/validation

1.0.0-beta.1.0.0

09 Dec 03:52
Compare
Choose a tag to compare

breaking changes

  1. ValidationError class renamed ValidateResult. Previously ValidationError represented a broken rule. Now ValidateResult represents the result of evaluating a rule and the pass/fail status is stored in a new boolean property named valid.
  2. RenderInstruction, which is the argument passed to validation renderers, now recieves ValidateResults instead of ValidationErrors. This means you'll need to skip rendering results whose valid property is true OR you'll need to add logic to render "success". Examples of both are in the docs.
  3. The ValidationController's validate method has a new return type. Previously it was Promise<ValidationError[]>. Now it's Promise<ControllerValidateResult>. This means you'll need to change code like this:
    js controller.validate().then(errors => { if (errors.length === 0) { // valid :) } else { // invalid :( } });
    To something like this:
    js controller.validate().then(result => { if (result.valid) { // valid :) } else { // invalid :( } });

0.14.0

08 Nov 17:27
Compare
Choose a tag to compare

Bug Fixes

  • ValidationController: handle null objects
  • build: fix api.json generation
  • ValidationParser: handle parenthesis

Features

  • validation-rules: validate email as per HTML standard
  • package: add tslint

0.13.1

06 Oct 03:29
Compare
Choose a tag to compare
  • Documentation fixes.

0.13.0

29 Sep 04:24
Compare
Choose a tag to compare

aurelia-validation 0.13.0

Bug Fixes

  • ValidationParser: handle props that are only accessible via bracket syntax

Features

  • validation-rules: permit uppercase email
  • validateTrigger: add changeOrBlur trigger
  • ValidateBindingBehavior: enable specifying validate trigger on individual bindings
  • Validator: rule prioritization and bailing
  • ValidationControllerFactory: add validator arg to createForCurrentScope

0.12.5

13 Sep 18:48
Compare
Choose a tag to compare

aurelia-validation 0.12.5

Bug Fixes

  • ValidationControllerFactory: construct in child container
  • ValidationParser: handle "use strict"

0.12.4

12 Sep 15:57
Compare
Choose a tag to compare
  • Docs update.
  • feat(ValidationError): override toString

0.12.3

07 Sep 17:40
Compare
Choose a tag to compare

aurelia-validation 0.12.3

Features

  • RenderInstruction: add 'kind' property
  • withMessage: provide access to getDisplayName
  • ValidationParser: caching and warnings
  • ValidateBindingBehavior: support custom attributes
  • ValidationRules: add equals rule

Bug Fixes

  • build: turn on declarations flag
  • ValidationParser: parse arrow functions

Code Refactoring

  • ValidateBindingBehavior: use controller.container API

0.12.2

29 Aug 14:23
Compare
Choose a tag to compare
  • fix(ValidationRules): improve typescript definition
  • fix(package.json): add missing dependency
  • fix(util): isString fix for Internet Explorer
  • chore(package): add build resources (#291)
  • fix(ValidationController): validate binding only when bound
  • doc(basics): add Element.closest polyfill note

0.12.1

27 Aug 17:10
Compare
Choose a tag to compare
  • Moved rules metadata to a non-enumerable property.
  • Fixed an issue with providing string property names to the validation api

0.12.0

26 Aug 20:15
Compare
Choose a tag to compare
  • Major update! See the docs up for the details.