Skip to content

Commit eb8a335

Browse files
committed
Package version has upgraded to v2.0.1
1) Package version has upgraded 2) Readme, changelogs, versions md files are updated 3) Example project updated Signed-off-by: gokulakannant <gokulakannanthangaraji@gmail.com>
1 parent 14f3b58 commit eb8a335

File tree

7 files changed

+20
-11
lines changed

7 files changed

+20
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ All notable changes to React Form Input Validation APIs will be documented in th
88

99
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1010

11+
## [2.0.1] - 25/11/2019
12+
13+
### Fixed
14+
15+
- Fixed `onformsubmit` event is received with empty values.
16+
1117
## [2.0.0] - 22/11/2019
1218

1319
### Added

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
A customized [validatorjs](https://www.npmjs.com/package/validatorjs) library to validate the react forms. It uses the [Controlled Components](https://reactjs.org/docs/forms.html#controlled-components) approach for validation.
88

99
* [Supported Rules](https://www.npmjs.com/package/validatorjs#available-rules) (It is supports all validatorjs rules)
10-
* [Documentation](https://gokulakannant.github.io/react-form-input-validation/v2.0.0/index.html)
10+
* [Documentation](https://gokulakannant.github.io/react-form-input-validation/v2.0.1/index.html)
1111
* [Demo](https://codesandbox.io/s/react-form-input-validation-demp-hyuju?fontsize=14&hidenavigation=1&theme=dark) (in CodeSandbox)
1212

1313
## Why use react-form-input-validation?
@@ -36,7 +36,7 @@ Using [yarn](https://yarnpkg.com/en/) as your package manager.
3636

3737
## Usage
3838

39-
A example form has given below. View all available apis in [documentation](https://gokulakannant.github.io/react-form-input-validation/v2.0.0/index.html).
39+
A example form has given below. View all available apis in [documentation](https://gokulakannant.github.io/react-form-input-validation/v2.0.1/index.html).
4040

4141
```js
4242
import React from "react";
@@ -142,7 +142,7 @@ The output will be like, "The Username field is required.".
142142

143143
## Supported form fields
144144

145-
|Form Fields and Attributes|Support By Library|
145+
|Form Fields and Attributes|Supported By Library|
146146
| :-- |:--:|
147147
|text|&#x2611;|
148148
|password|&#x2611;|

VERSIONS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ The most recent version is recommended in production.
88

99
|Versions|Documents|Releases|
1010
|--------|---------|--------|
11+
|v2.0.1|[Documentation](https://gokulakannant.github.io/react-form-input-validation/v2.0.1/index.html)|[Release notes](https://github.com/gokulakannant/react-form-input-validation/releases/tag/v2.0.1)|
1112
|v2.0.0|[Documentation](https://gokulakannant.github.io/react-form-input-validation/v2.0.0/index.html)|[Release notes](https://github.com/gokulakannant/react-form-input-validation/releases/tag/v2.0.0)|
1213
|v1.0.1|[Documentation](https://gokulakannant.github.io/react-form-input-validation/index.html)| |
1314

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": {
66
"react": "^16.8.0",
77
"react-dom": "^16.8.0",
8-
"react-form-input-validation": "^2.0.0",
8+
"react-form-input-validation": "^2.0.1",
99
"react-scripts": "3.2.0"
1010
},
1111
"scripts": {

example/src/Form.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import ReactFormValidation from "react-form-input-validation";
2+
import ReactFormValidation, { Lang } from "react-form-input-validation";
33
import "./Form.css";
44

55
class ValidationForm extends React.Component {
@@ -44,10 +44,12 @@ class ValidationForm extends React.Component {
4444
passes();
4545
}, 1000);
4646
});
47-
/* let messages = ReactFormValidation.getMessages('en');
48-
messages.required = 'Whoops, :attribute field is required.';
47+
let messages = ReactFormValidation.getMessages(Lang.en);
48+
console.log(messages);
49+
/* messages.required = 'Whoops, :attribute field is required.';
4950
ReactFormValidation.setMessages('en', messages);
50-
ReactFormValidation.useLang('en') */
51+
console.log(Lang)
52+
ReactFormValidation.useLang(Lang.fr) */
5153
}
5254

5355
render() {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "react-form-input-validation",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A validator package to validate the react forms",
55
"main": "./dist/bundle.js",
66
"license": "GPLv3",
77
"author": "gokulakannant <gokulakannanthangaraji@gmail.com> (https://gokulakannant.github.io)",
8-
"homepage": "https://gokulakannant.github.io/react-form-input-validation/v2.0.0/index.html",
8+
"homepage": "https://gokulakannant.github.io/react-form-input-validation/v2.0.1/index.html",
99
"repository": {
1010
"type": "git",
1111
"url": "https://github.com/gokulakannant/react-form-input-validation.git"

0 commit comments

Comments
 (0)