Skip to content

Commit

Permalink
Support React 0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Mar 24, 2015
1 parent 36d9741 commit 5e12c95
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 35 deletions.
22 changes: 22 additions & 0 deletions CHANGES.md
@@ -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)
Expand Down
22 changes: 1 addition & 21 deletions README.md
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions bower.json
@@ -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"
}
}
14 changes: 11 additions & 3 deletions build/formsy-react.js

Large diffs are not rendered by default.

28 changes: 22 additions & 6 deletions build/specs.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
@@ -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",
Expand All @@ -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"
}
}

0 comments on commit 5e12c95

Please sign in to comment.