Jim
22b8952fbf
Merge pull request #5231 from davidkpiano/patch-1
...
Updating "JSX Gotchas" docs for Custom Attributes
2015-11-05 09:43:36 -08:00
Paul O’Shannessy
6d5fe44c86
Merge pull request #5396 from zpao/packagejsons
...
Improve npm packages' metadata
2015-11-04 21:29:35 -08:00
Paul O’Shannessy
88584a96b7
Generate better readmes for addons npm packages
2015-11-04 21:25:28 -08:00
Paul O’Shannessy
2f6fb746b9
Make sure npm packages have repo and keywords set
2015-11-04 21:25:28 -08:00
Paul O’Shannessy
9b7cc43330
Merge pull request #5352 from chicoxyzzy/eslint-upgrade
...
remove eslint-disable when possible and update babel-eslint version
2015-11-04 18:17:23 -08:00
chico
b9fd77a4bd
update eslint and eslint-plugin-react
2015-11-05 05:14:51 +03:00
chico
4a7456a136
review fixes
2015-11-05 05:11:39 +03:00
chico
8987522a2a
remove eslint-disable when possible and update eslint version
2015-11-05 05:11:39 +03:00
Ben Alpert
e131357c23
Merge pull request #5394 from spicyj/tu-shallow-ref
...
Revert #4993 with an added test for refs
2015-11-04 18:00:27 -08:00
Ben Alpert
9419976e51
Revert #4993 with an added test for refs
...
We were shallow-rendering a component that used refs at FB so this can't go in as-is. It's a little unclear what we _should_ do though, since there is nothing to hold a ref to (since we're shallowly rendering) and we generally promise that child refs are resolved before a parent's componentDidMount. Also, changing shallow rendering to use the original `_renderValidatedComponent` (instead of `_renderValidatedComponentWithoutOwnerOrContext`) breaks tests because now the `_owner` field doesn't match up for `toEqual` (non-null in `getRenderOutput` but null if constructed in a test).
2015-11-04 17:53:40 -08:00
Paul O’Shannessy
578312e267
Update website for 0.14.2
...
(cherry picked from commit fdf6f6bbb0 )
2015-11-04 17:38:31 -08:00
Paul O’Shannessy
76bbd9e660
Update readme for 0.14.2
...
(cherry picked from commit 01622a4442 )
2015-11-04 17:38:31 -08:00
Paul O’Shannessy
e2fdcb1990
Blog post for 0.14.2
...
(cherry picked from commit a4fd08973b )
2015-11-04 17:38:31 -08:00
Paul O’Shannessy
cd7387c465
Changelog for 0.14.2
...
(cherry picked from commit c2dd57c6a6 )
2015-11-04 17:38:31 -08:00
Paul O’Shannessy
80af7c7be4
Merge pull request #5353 from chicoxyzzy/patch-1
...
add Node 5 to devEngines
2015-11-04 15:02:26 -08:00
Jim
4fae036269
Merge pull request #5385 from marocchino/update-korean
...
Update korean translation to 84af306
2015-11-04 13:57:00 -08:00
Arkist
1c14477a47
Update Korean translation to 84af306
2015-11-05 06:56:48 +09:00
Ben Alpert
35962a0008
Merge pull request #5205 from spicyj/cotree-num
...
Use incrementing numerical IDs to identify DOM components
2015-11-04 11:41:38 -08:00
Ben Alpert
c193d1a0c2
Don't put IDs in the DOM in createElement mode
2015-11-04 11:39:44 -08:00
Ben Alpert
b80f676d27
Add hooks back for devtools
2015-11-04 11:39:44 -08:00
Ben Alpert
35543c6312
Remove unused modules
...
- Remove last references to ReactInstanceHandles (still used in responder unit test)
- Remove ClientReactRootIndex/ServerReactRootIndex
2015-11-04 11:39:44 -08:00
Ben Alpert
3cebadaa6b
Remove now-unused _rootNodeID from composites
2015-11-04 11:39:44 -08:00
Ben Alpert
e48c8be556
Use incrementing numerical IDs to identify DOM components
2015-11-04 11:39:44 -08:00
Ben Alpert
f06ddf7905
Turn ReactInstanceHandles-test into ReactDOMTreeTraversal-test
...
This test relied on the fact that ReactDOMComponent still produced hierarchical IDs -- although this module could be used standalone, we're replacing it completely so it makes more sense to just move the tests over to test ReactDOMTreeTraversal.
2015-11-04 11:39:44 -08:00
Ben Alpert
663c4b7d2e
Stop relying on hierarchical IDs in ReactDefaultPerf
2015-11-04 11:39:43 -08:00
Ben Alpert
5d94d7d43c
Perf: Static children count for wasted time
2015-11-04 11:39:43 -08:00
Ben Alpert
4ba0e95a96
Kill ReactMount.getNode/getID/purgeID with fire
2015-11-04 11:39:43 -08:00
Ben Alpert
796f8c353c
put/deleteListener take an instance, not an ID
...
This removes SimpleEventPlugin's dependency on ReactMount.getID.
2015-11-04 11:39:43 -08:00
Ben Alpert
d11ccd6956
Propagate events based on component tree, not IDs
2015-11-04 11:39:43 -08:00
Ben Alpert
f470cb88f8
Events: Pass native instances up until propagation
...
Next step: take advantage of having the native instances in EventPropagators instead of converting right back to IDs.
2015-11-04 11:39:43 -08:00
Ben Alpert
6d20556c78
Add functions to find the instance given a node
2015-11-03 17:03:40 -08:00
Ben Alpert
ce528457a4
ReactDOMComponentTree
...
New module! With this, we have a new module that uses the component tree to store DOM nodes. Most of the logic in this file relates to markup adoption -- if we were to drop that (along with server rendering) this file could just be a `return inst._nativeNode;`.
This works with useCreateElement only because we need to reference each node as it's created.
Events is now the only thing using ReactMount.getNode -- I'll introduce pointers back from the DOM nodes (and a `ReactDOMComponentTree.getInstanceFromNode`) and make that work.
2015-11-03 17:03:40 -08:00
Ben Alpert
5a7c273a1b
Always do useCreateElement for updates
...
Initial render can still be a markup string.
2015-11-03 17:03:40 -08:00
Ben Alpert
276ef737fe
Make ReactDOMComponent-test pass with useCreateElement
2015-11-03 17:03:40 -08:00
Ben Alpert
5becbe3f08
Remove obsolete tests with new tree-walking
2015-11-03 17:03:40 -08:00
Ben Alpert
19e2cf5ad5
Make ReactEmptyComponent-test not swallow logs
2015-11-03 17:03:40 -08:00
Jim
84af306044
Merge pull request #5372 from csbok/patch-1
...
Update getting-started.ko-KR.md
2015-11-03 03:44:31 -08:00
Ben Alpert
2858bca2e3
Merge pull request #5361 from ali/warn-on-missing-event-handlers
...
Warn on missing event handler properties
2015-11-02 20:23:20 -08:00
Ali Ukani
9ad4be0316
Warn on missing event handler properties
...
Fixes #3548 . Warns on properties that are case-insensitive matches for
registered event names (e.g. "onclick" instead of "onClick").
2015-11-02 23:13:20 -05:00
Ben Alpert
a4b5f2fffa
Merge pull request #5376 from spicyj/gh-4993
...
Test fixups after #4993
2015-11-02 18:27:25 -08:00
Ben Alpert
c802e9ede9
Test fixups after #4993
2015-11-02 18:26:52 -08:00
Ben Alpert
d2888798f0
Merge pull request #4993 from jsdf/shallow-render-lifecycle
...
Run all component lifecycle methods when shallow rendering
2015-11-02 18:16:55 -08:00
Ben Alpert
17289020f7
Merge pull request #5356 from rpominov/patch-1
...
fix shallowRenderer.getRenderOutput() return type in docs
2015-11-02 17:27:08 -08:00
Ben Alpert
5724fca7ae
Merge pull request #5358 from conorhastings/invariant-testutils-simulate-shallow-render
...
#5284 - Show a friendly error when using TestUtils.Simulate with shallow rendering
2015-11-02 17:22:07 -08:00
conorhastings
fbb8d2fe2d
Show a friendly error when using TestUtils.Simulate with shallow rendering
2015-11-02 20:14:26 -05:00
Paul O’Shannessy
b9371bc216
Merge pull request #5370 from zpao/babel6docs
...
Update docs for Babel 6
2015-11-02 16:58:17 -08:00
csbok
2b54e5417d
Update getting-started.ko-KR.md
...
correcting misspelled words
2015-11-03 09:56:41 +09:00
Paul O’Shannessy
bc3b32c968
[docs] Update tooling integration for more babel 6
2015-11-02 13:10:40 -08:00
Paul O’Shannessy
db7ea058e7
[docs] Update Getting Started for babel 6
2015-11-02 12:56:30 -08:00
Paul O’Shannessy
dbab71bbf4
Merge pull request #5350 from ludovicofischer/master
...
Correct Babel 6 command line usage instructions.
2015-11-02 11:42:44 -08:00