Commit Graph

5462 Commits

Author SHA1 Message Date
Jim d0970ee8b8 Merge pull request #5063 from facebook/revert-5062-revert-4959-no-shams
Remove dependence on ES5 shams per #4189
2015-10-07 14:23:35 -07:00
Jim f97d759db1 Merge pull request #5032 from jimfb/remove-react-link
Added warning for use of ReactLink.
2015-10-07 14:23:11 -07:00
Ben Alpert 40cce38330 Merge pull request #5075 from spicyj/docs-downloads
Update downloads page for 0.14
2015-10-07 13:04:41 -07:00
Ben Alpert f31a46cb18 Merge pull request #4983 from spicyj/id-swap
Refactor how composite type changes work, fix memory leak in ReactMount caching
2015-10-07 13:02:58 -07:00
Ben Alpert 34d84a36d6 Merge pull request #5066 from camsong/patch-2
Always use ANONYMOUS const in  ReactPropTypes.js
2015-10-07 12:57:59 -07:00
Ben Alpert 8ce7b7120c ReactMount now never expects invalid nodes in its cache
It never really made sense for us to have "invalid" nodes in the cache -- when we unmount things, we should always remove them from the cache properly. Now that swapping composite types doesn't repopulate the cache, we should be okay to now assume that everything in the cache is good.
2015-10-07 12:57:34 -07:00
Ben Alpert fe9a76ef25 Rewrite ReactInstanceHandles-test to be less brittle 2015-10-07 12:57:34 -07:00
Ben Alpert 60491d89f8 Use returned native node for composite type-change
With this change, all unmounted components should be properly purged from ReactMount's cache.
2015-10-07 12:57:34 -07:00
Ben Alpert 743ccf090f Cache native node on native components, return it when unmounting
This is probably slightly slower for unmounts in the case that no updates were ever performed, but caching the node on the instance should make updates faster. In any case, the more important consequence of this change is that we can fix the current memory leak that happens when swapping composite types.
2015-10-07 12:57:34 -07:00
Ben Alpert e4a43389b8 Don't use existing "root" ID if non-root
Before, if you had

```
container = <div data-reactid=".0"><div data-reactid=".0.0" /></div>;
```

and did `ReactDOM.render(<span />, container)` you would get

```
<div data-reactid=".0"><span data-reactid=".0" /></div>;
```

(along with a warning not to replace React-rendered children with a new tree like that). But that makes no sense -- the span should have a new index, not truncate the ID of the old child it's replacing.

(Now tests pass again with useCreateElement on; before they threw a "valid but unequal" on our test for this warning.)
2015-10-07 12:57:34 -07:00
Ben Alpert 8ebbb7802c Merge pull request #4918 from glenjamin/shallow-getinstance
Expose component instance in shallow rendering
2015-10-07 12:52:09 -07:00
Ben Alpert 501a2765ac Merge pull request #4947 from fabiomcosta/server_render_index
[react] making sure ReactDOMServer always uses ServerReactRootIndex, …
2015-10-07 12:51:59 -07:00
Ben Alpert 4a29fd892a Merge pull request #4779 from mnordick/master
Support CSS3 Grid Layout Module for inline styles
2015-10-07 12:51:26 -07:00
Ben Alpert e1d4668fd5 Update downloads page for 0.14 2015-10-07 12:50:59 -07:00
Paul O’Shannessy 926f372dc5 Merge pull request #5073 from mfunkie/patch-2
Update Pure Render Mixin docs to point to new npm package
2015-10-07 12:22:04 -07:00
Paul O’Shannessy 30386b2e86 Final docs update for 0.14 2015-10-07 11:25:50 -07:00
Paul O’Shannessy 42481fe51f [docs] Update acknowledgements for 0.14 2015-10-07 11:25:44 -07:00
Mark Funk c2ae332718 Update Pure Render Mixin docs to point to new npm package 2015-10-07 14:16:26 -04:00
Paul O’Shannessy 59cd224a03 Bump version in master for 0.15 development 2015-10-07 09:57:53 -07:00
Paul O’Shannessy c8374d6db8 Merge pull request #4785 from zpao/0.14-authors
Update AUTHORS for 0.14
2015-10-07 09:50:42 -07:00
Paul O’Shannessy e2211ab826 Update AUTHORS for 0.14 2015-10-07 09:49:10 -07:00
Ben Alpert 55cab74312 Merge pull request #5072 from spicyj/14blog
0.14 blog post
2015-10-07 09:46:44 -07:00
Ben Alpert 2bedb4ae96 Write 0.14 blog post 2015-10-06 23:59:20 -07:00
Ben Alpert e292df781e Copy 0.14 RC blog post to 0.14 blog post 2015-10-06 23:19:50 -07:00
Ben Alpert 84dff0be5d Fix bower info in RC blog post
Fixes #5054.
2015-10-06 23:19:46 -07:00
Cam Song a69f05c881 Always use ANONYMOUS const in ReactPropTypes.js 2015-10-07 11:28:38 +08:00
Ben Alpert 1711c7aae3 Merge pull request #5065 from spicyj/docs-pkgs
Update some more docs for package split
2015-10-06 18:38:19 -07:00
Ben Alpert 26bde37cf8 Updat docs for refs/findDOMNode 2015-10-06 17:53:38 -07:00
Ben Alpert 0faf4b752f Update some more docs for package split 2015-10-06 17:36:16 -07:00
Jim ff533cb4db Merge pull request #5055 from jimfb/reactdom-render
React -> ReactDOM for render() and findDOMNode()
2015-10-06 15:04:15 -07:00
Sebastian Markbåge 6d3a11e602 Merge pull request #4943 from bspaulding/throw-stateless-ref
Composite component throws on attaching ref to stateless component #4939
2015-10-06 14:33:48 -07:00
Jim fc043bb3a5 Revert "Revert "Remove dependence on ES5 shams per #4189"" 2015-10-06 14:31:20 -07:00
Jim 6446a45a00 Merge pull request #5062 from facebook/revert-4959-no-shams
Revert "Remove dependence on ES5 shams per #4189"
2015-10-06 14:30:26 -07:00
Jim 571edd85c2 Revert "Remove dependence on ES5 shams per #4189" 2015-10-06 14:30:03 -07:00
Jim 0b73099301 Merge pull request #4959 from dgreensp/no-shams
Remove dependence on ES5 shams per #4189
2015-10-06 13:57:49 -07:00
David Greenspan f95747b929 Remove dependence on ES5 shams per #4189
Docs not updated
2015-10-06 13:49:47 -07:00
Bradley Spaulding c6a3eb14db Wrapping StatelessComponent ref warning in __DEV__ block 2015-10-05 21:44:42 -07:00
Jim 712199ef98 React -> ReactDOM for render() and findDOMNode() 2015-10-05 17:46:58 -07:00
Jim 870a15adec Merge pull request #5056 from jimfb/reactdom-in-src
React->ReactDOM in src/
2015-10-05 16:30:25 -07:00
Jim 5a9dea00b9 React->ReactDOM in src/ 2015-10-05 16:29:33 -07:00
Ben Alpert 94ccda8543 Merge pull request #5041 from spicyj/val-key-err
Don't blow up in key warning for undefined type
2015-10-05 13:57:25 -07:00
Paul O’Shannessy d1065355a9 Merge pull request #5045 from CoderK/master
rename renderSubtreeIntoContainer.js to renderSubtreeIntoContainer-test.js
2015-10-03 07:57:26 -07:00
KimCoding f316839b90 rename renderSubtreeIntoContainer.js to renderSubtreeIntoContainer-test.js
To distinguish between testing file and implementation file.
2015-10-03 18:11:48 +09:00
Jim c103c8d065 Added warning for use of ReactLink. 2015-10-02 11:33:48 -07:00
Ben Alpert 1959aaa1f9 Don't blow up in key warning for undefined type 2015-10-02 11:31:28 -07:00
Jim a71a06077f Merge pull request #5019 from jimfb/renderer-blog-post
Blog post for react render and top level API
2015-10-02 10:42:48 -07:00
Jim e25753fdf1 Merge pull request #5038 from chicoxyzzy/docs-notation-fixes
make properties notation consistent over docs
2015-10-01 19:01:37 -07:00
chico 89e28a3fbe make properties notation in docs consistent 2015-10-02 03:44:47 +03:00
Paul O’Shannessy 95c5491781 Merge pull request #5001 from claudiopro/master
[docs] Italian localization of documentation
2015-10-01 14:46:21 -07:00
claudiopro a4ec19500a Translate documentation to Italian 2015-10-01 23:40:14 +02:00