Support React 0.13.1

This commit is contained in:
christianalfoni 2015-03-24 07:53:09 +01:00
parent 36d9741535
commit 5e12c95d36
6 changed files with 61 additions and 35 deletions

View File

@ -1,3 +1,25 @@
**0.8.0**
- Fixed bug where dynamic form elements gave "not mounted" error (Thanks @sdemjanenko)
- React is now a peer dependency (Thanks @snario)
- Dynamically updated values should now work with initial "undefined" value (Thanks @sdemjanenko)
- Validations are now dynamic. Change the prop and existing values are re-validated (thanks @bryannaegele)
- You can now set a "disabled" prop on the form and check "isFormDisabled()" in form elements
- Refactored some code and written a couple of tests
**0.7.2**:
- isNumber validation now supports float (Thanks @hahahana)
- Form XHR calls now includes CSRF headers, if exists (Thanks @hahahana)
**0.7.1**
- Fixed bug where external update of value on pristine form element did not update the form model (Thanks @sdemjanenko)
- Fixed bug where children are null/undefined (Thanks @sdemjanenko)
**0.7.0**
- Dynamic form elements. Add them at any point and they will be registered with the form
- **onChange()** handler is called whenever an form element has changed its value or a new form element is added to the form
- isNumeric validator now also handles actual numbers, not only strings
- Some more tests
**0.6.0**
- **onSubmit()** now has the same signature regardless of passing url attribute or not
- **isPristine()** is a new method to handle "touched" form elements (thanks @FoxxMD)

View File

@ -69,27 +69,7 @@ The main concept is that forms, inputs and validation is done very differently a
## <a name="changes">Changes</a>
**0.8.0**
- Fixed bug where dynamic form elements gave "not mounted" error (Thanks @sdemjanenko)
- React is now a peer dependency (Thanks @snario)
- Dynamically updated values should now work with initial "undefined" value (Thanks @sdemjanenko)
- Validations are now dynamic. Change the prop and existing values are re-validated (thanks @bryannaegele)
- You can now set a "disabled" prop on the form and check "isFormDisabled()" in form elements
- Refactored some code and written a couple of tests
**0.7.2**:
- isNumber validation now supports float (Thanks @hahahana)
- Form XHR calls now includes CSRF headers, if exists (Thanks @hahahana)
**0.7.1**
- Fixed bug where external update of value on pristine form element did not update the form model (Thanks @sdemjanenko)
- Fixed bug where children are null/undefined (Thanks @sdemjanenko)
**0.7.0**
- Dynamic form elements. Add them at any point and they will be registered with the form
- **onChange()** handler is called whenever an form element has changed its value or a new form element is added to the form
- isNumeric validator now also handles actual numbers, not only strings
- Some more tests
[Check out releases](releases)
[Older changes](CHANGES.md)

View File

@ -1,8 +1,8 @@
{
"name": "formsy-react",
"version": "0.8.0",
"version": "0.8.1",
"main": "src/main.js",
"dependencies": {
"react": "^0.11.2"
"react": "^0.11.2 || ^0.13.1"
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
{
"name": "formsy-react",
"version": "0.8.0",
"version": "0.8.1",
"description": "A form input builder and validator for React JS",
"repository": {
"type": "git",
@ -25,11 +25,11 @@
"gulp-uglify": "^0.3.1",
"gulp-util": "^3.0.0",
"phantomjs": "^1.9.12",
"reactify": "^0.15.2",
"reactify": "^1.1.0",
"vinyl-source-stream": "^0.1.1",
"watchify": "^2.1.1"
},
"peerDependencies": {
"react": "^0.12.2"
"react": "^0.12.2 || ^0.13.1"
}
}