@samitouri / QOS-React-2 / commits / d17d0d5f50
Fork 0

The library for web and native user interfaces.

Changelog for 0.4.0

Paul O’Shannessy committed Jul 17, 2013 at 11:19 UTC d17d0d5f504ebac2a1b525c0b2abca1d38346c2f
1 file changed +28
CHANGELOG.md
+28
@@ -1,3 +1,31 @@
1 +## 0.4.0 (July 17, 2013)
2 +
3 +### React
4 +
5 +* Switch from using `id` attribute to `data-reactid` to track DOM nodes. This allows you to integrate with other JS and CSS libraries more easily.
6 +* Support for more DOM elements and attributes (e.g., `<canvas>`)
7 +* Improved server-side rendering APIs. `React.renderComponentToString(<component>, callback)` allows you to use React on the server and generate markup which can be sent down to the browser.
8 +* `prop` improvements: validation and default values. [Read our blog post for details...](http://facebook.github.io/react/blog/2013/07/11/react-v0-4-prop-validation-and-default-values.html)
9 +* Support for the `key` prop, which allows for finer control over reconciliation. [Read the docs for details...](http://facebook.github.io/react/docs/multiple-components.html)
10 +* Removed `React.autoBind`. [Read our blog post for details...](http://facebook.github.io/react/blog/2013/07/02/react-v0-4-autobind-by-default.html)
11 +* Improvements to forms. We've written wrappers around `<input>`, `<textarea>`, `<option>`, and `<select>` in order to standardize many inconsistencies in browser implementations. This includes support for `defaultValue`, and improved implementation of the `onChange` event, and circuit completion. [Read the docs for details...](http://facebook.github.io/react/docs/forms.html)
12 +* We've implemented an improved synthetic event system that conforms to the W3C spec.
13 +* Updates to your component are batched now, which may result in a significantly faster re-render of components. `this.setState` now takes an optional callback as it's second parameter. If you were using `onClick={this.setState.bind(this, state)}` previously, you'll want to make sure you add a third parameter so that the event is not treated as the callback.
14 +
15 +### JSX
16 +
17 +* Support for comment nodes `<div>{/* this is a comment and won't be rendered */}</div>`
18 +* Children are now transformed directly into arguments instead of being wrapped in an array
19 + E.g. `<div><Component1/><Component2></div>` is transformed into `React.DOM.div(null, Component1(null), Component2(null))`.
20 + Previously this would be transformed into `React.DOM.div(null, [Component1(null), Component2(null)])`.
21 + If you were using React without JSX previously, your code should still work.
22 +
23 +### react-tools
24 +
25 +* Fixed a number of bugs when transforming directories
26 +* No longer re-write `require()`s to be relative unless specified
27 +
28 +
29 ## 0.3.3 (June 20, 2013)
30
31 ### React