Skip to content

Commit

Permalink
Added
Browse files Browse the repository at this point in the history
- `EachRule`
- Made `Validator` a callable class
- Allow adding rules via `Validator` constructor

Deprecated
- `Validator.build()`

Changed
- Moved all files to src folder. Use `import 'package:flrx_validator/flrx_validator.dart';` *BREAKING CHANGE*
- Minor Code cleanup

Fixed
- Fixed `transformMessage` not applying properly in `AnyRule`

Removed
- OneOfRule (deprecated in v0.3.0)

Merge branch 'release/0.4.0+2'
  • Loading branch information
ibrahim-mubarak committed Nov 18, 2019
2 parents c86e092 + 63d8074 commit 3c34ae2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

Initial Release

[v0.4.0+1]: https://github.com/flrx/validator/compare/v0.4.0+2...v0.3.0
[v0.4.0+2]: https://github.com/flrx/validator/compare/v0.4.0+2...v0.3.0
[v0.3.0]: https://github.com/flrx/validator/compare/v0.3.0...v0.2.0
[v0.2.0]: https://github.com/flrx/validator/compare/v0.2.0...v0.1.0
[v0.1.0]: https://github.com/flrx/validator/tag/v0.1.0
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Add the following to your `pubspec.yaml` file

```yaml
dependencies:
flrx_validator: ^0.4.0+1
flrx_validator: ^0.4.0+2
```
## Usage
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Add the following to your `pubspec.yaml` file:

```yaml
dependencies:
flrx_validator: ^0.4.0+1
flrx_validator: ^0.4.0+2
```
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: flrx_validator
description: >
A powerful, extensible validator package to get validation messages based on a list of rules.
version: 0.4.0+1
version: 0.4.0+2
author: Flrx Team <[email protected]>
homepage: https://flrx.github.io/validator/
repository: https://github.com/flrx/validator
Expand Down

0 comments on commit 3c34ae2

Please sign in to comment.