1 | # Changelog
|
2 |
|
3 | All notable changes to this project will be documented in this file.
|
4 |
|
5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7 |
|
8 | ## [4.2.0-rc2]
|
9 |
|
10 | ### Added
|
11 |
|
12 | - assert rules to check invalid rules
|
13 |
|
14 | ## [4.2.0-rc1]
|
15 |
|
16 | ### Added
|
17 |
|
18 | - Persian(farsi) support [#24](https://github.com/bitnbytesio/node-input-validator/pull/24)
|
19 | - rule:different
|
20 |
|
21 | ## [4.1.0]
|
22 |
|
23 | ### Added
|
24 |
|
25 | - support for root level array
|
26 |
|
27 | ### Fixed
|
28 |
|
29 | - exception if rule againest attr not defined
|
30 |
|
31 | ## [4.0.0]
|
32 |
|
33 | ### Added
|
34 |
|
35 | - multiple errors support
|
36 | - global level nice names
|
37 | - support for async and non-async rules
|
38 | - Deeply nested objects validation
|
39 |
|
40 | ### Changed
|
41 |
|
42 | - ValidatorInstance.setAttributeNames renamed to ValidatorInstance.niceNames
|
43 | - Validator.messages renamed to .extendMessages
|
44 | - Namespace and directory structure
|
45 | - all previous async rules to sync
|
46 | - Params of all rules/add new rules/post rules/message parser
|
47 |
|
48 | ### Removed
|
49 |
|
50 | - Validator.messages in favour of .extendMessages
|
51 | - Top level Validator class
|
52 | - Nodejs 7 support dropped
|
53 |
|
54 | ### Fixed
|
55 |
|
56 | - numeric rule behaviour
|
57 |
|
58 | ### Security
|
59 |
|
60 | - deps updated to latest
|
61 |
|
62 | ## [3.7]
|
63 |
|
64 | ### Added
|
65 |
|
66 | - dimensions rule
|
67 |
|
68 | ### Fixed
|
69 |
|
70 | - breakage in case of missing required nested field
|
71 |
|
72 | ## [3.6.4]
|
73 |
|
74 | ### Fixed
|
75 |
|
76 | - breaking changes in message parser due to trimStart for 3.6.* fixed
|
77 |
|
78 | ## [3.6.3]
|
79 |
|
80 | ### Fixed
|
81 |
|
82 | - breaking changes in message parser for 3.6.* fixed
|
83 |
|
84 | ## [3.6.2]
|
85 |
|
86 | ### Fixed
|
87 |
|
88 | - digits rule was not checking for digits
|
89 |
|
90 | ## [3.6.1]
|
91 |
|
92 | ### Fixed
|
93 |
|
94 | - double space in case of camel case attributes
|
95 |
|
96 | ## [3.6.0]
|
97 |
|
98 | ### Added
|
99 |
|
100 | - datetime: attribute must be in format YYYY-MM-DD HH:mm:ss
|
101 | - dateiso: attribute must be valid iso date
|
102 |
|
103 | ### Fixed
|
104 |
|
105 | - required: empty check was failing in case of boolean false and int 0
|
106 | - lengthBetween: no error in case of invalid maximum seed
|
107 |
|
108 | ## [3.5.0]
|
109 |
|
110 | ### Added
|
111 |
|
112 | - arrayUnique: array must contains unique values
|
113 | - arrayUniqueObjects: array of objects must have unique attribute as per seed
|
114 | - length: length rule with max and min (optional) seed
|
115 |
|
116 | ### Fixed
|
117 |
|
118 | - requiredwith, requiredWithout throw exception in case of invalid seed
|
119 | - integer 0 makes required rule to failed, as 0 was considered as empty
|
120 |
|
121 | ## [3.4.2]
|
122 |
|
123 | ### Added
|
124 |
|
125 | - Example of custom rule using other attributes
|
126 |
|
127 | ## [3.4.1]
|
128 |
|
129 | ### Fixed
|
130 |
|
131 | - crash in case of using non-string rules in constructor will now fails with exception of in valid rule
|
132 |
|
133 | ## [3.4.0]
|
134 |
|
135 | ### Added
|
136 |
|
137 | - gt: greater then another field rule
|
138 | - gte: greater then or equals another field rule
|
139 | - lt: less then another field rule
|
140 | - lte: less then or equals another field rule
|
141 |
|
142 | ### Fixed
|
143 |
|
144 | - typings
|
145 | - multiple underscore (_) replacement with space issue
|
146 |
|
147 | ## [3.3.0]
|
148 |
|
149 | ### Fixed
|
150 |
|
151 | - between rule
|
152 | - lengthBetween rule
|
153 |
|
154 | ### Security
|
155 |
|
156 | - npm audit vulnerabilities fix
|