v2.0.1
Breaking changes
Use templateify
method instead of Template
class
import { templateify, required, minLength, maxLength } from 'vuito';
export const signIn = templateify({
username: [
{ test: required, message: 'Please enter a username.' },
{ test: minLength(3), message: 'Username is too short.' },
{ test: maxLength(20), message: 'Username is too big.' },
],
password: [
{ test: required, message: 'Please enter a password.' },
{ test: minLength(12), message: 'Password is too short.' },
]
});
Fix the following issues
- Fix #1
Commits
- 403a894: [UPDATE] package-lock.json (Arnaud Gissinger)
- 46b30f1: [UPDATE] eslint and prettier config (Arnaud Gissinger)
- b5c4903: [UPDATE] docs (Arnaud Gissinger)
- d069b6b: [FIX] vscode eslint config (Arnaud Gissinger)
- 1f1dd97: [UPDATE] keywords (Arnaud Gissinger)
- a38aedf: [ADD] demo to docs (Arnaud Gissinger)
- 4521c98: [UPDATE] demo link in README (Arnaud Gissinger)
- 8f91632: [UPDATE] better syntax (Arnaud Gissinger)
- 6da94c9: [UPDATE] new npm version (Arnaud Gissinger)
- 2a86761: [FIX] new fct templateify (Arnaud Gissinger)
- c070aa5: [UPDATE] tsconfig use ES6 as target (Arnaud Gissinger)
- 2087e1d: v2.0.0 (Arnaud Gissinger)
- 9bfa622: [UPDATE] docs (Arnaud Gissinger)
- 5ed5fce: [FIX] stupid mistake (leaving console.log ..) (Arnaud Gissinger)
- 6d2077b: v2.0.1 (Arnaud Gissinger)