Skip to content

0.2.0

Compare
Choose a tag to compare
@VitorLuizC VitorLuizC released this 17 Aug 22:07
· 61 commits to master since this release
  • Refactor formatters using a functional approach;
  • Rename options and plugins:
    • function: toAge to toYears;
    • option: validations to validators;
    • option: formaters to formatters;
    • plugin: $validation/validation to $validate/validate;
  • Fixed #5 - invalid values on $validate.isCPF;
  • Added JSDoc to all functions;
  • Added unit tests / Just some of them;
  • Added integration with Travis-CI;
  • Added toEmpty to formatters that return a custom char or '-' for empty values;
    <template>
      <p>{{ user.cpf | toCPF | toEmpty('-') }}</p>
    </template>
  • Added is to validators that verify value constructor;
      return this.$validate.is(user.name, 'Null') ? '-' : user.name