Skip to content

Commit 771e14c

Browse files
committed
v4.3.1 release
1 parent 6c4f459 commit 771e14c

File tree

4 files changed

+867
-1053
lines changed

4 files changed

+867
-1053
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.3.1]
9+
10+
### Added
11+
12+
- support for passing locale to alpha, alphaNumeric, phoneNumber
13+
- wildcardIterations are now configurable
14+
- getErrors() in validator to match v5 api
15+
- validate() in validator to match v5 api
16+
17+
### Fixed
18+
19+
- typescript definition improvements
20+
21+
### Changed
22+
23+
- docs updated
24+
- mime rule improvements
25+
26+
### Security
27+
28+
- deps updated to latest
29+
830
## [4.2.1]
931

1032
### Fixed

index.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ export function niceNames(attributes: object, lang?: string): void;
1010

1111
export function koa(): Function;
1212

13+
export function bailable(sure: boolean): void;
14+
1315
export function assert(rules: object): any;
1416

17+
export function setStrNotationRepetition(repetition: number): void;
18+
1519
export declare class Validator {
1620

1721
inputs: any;
@@ -33,7 +37,11 @@ export declare class Validator {
3337

3438
parseRules(validationRules: object): void;
3539

36-
check(): Promise<boolean>
40+
getErrors(): any;
41+
42+
validate(): Promise<boolean>;
43+
44+
check(): Promise<boolean>;
3745

3846
fails(): Promise<boolean>;
3947

@@ -57,5 +65,9 @@ export declare class Validator {
5765

5866
getExistinParsedMessage(options: any): string;
5967

68+
error(key: string, rule: string, message: string): void;
69+
6070
addError(key: string, rule: string, message: string): void;
71+
72+
appendError(key: string, rule: string, message: string): void;
6173
}

jsconfig.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)