Commit Graph

5402 Commits

Author SHA1 Message Date
Ben Alpert 2a51d1bf93 Merge pull request #5016 from spicyj/tu-stateless
Make scry* look through stateless components
2015-10-01 14:13:32 -07:00
Sebastian Markbåge 4fa3ce48e8 Merge pull request #5021 from sebmarkbage/prototypetag
isReactClass -> .prototype.isReactComponent
2015-10-01 14:05:13 -07:00
Ben Alpert 3606702245 Merge pull request #5026 from chicoxyzzy/clarify-events-doc
clarify that events work for elements not for components
2015-10-01 10:49:25 -07:00
Jim b53df5446e Merge pull request #5029 from jabbrass/patch-1
[docs] Fix typo in videos.md
2015-10-01 10:38:39 -07:00
J. Andrew Brassington 32b8135f94 [docs] Fix typo in videos.md
Line 111: "integate" =>  "integrate".
Thanks to all core contribs for open sourcing such a great tool!
2015-10-01 09:38:02 -07:00
Jim 1c385c0484 Merge pull request #5025 from chicoxyzzy/fix-event-methods-notation
fix methods notation of SyntheticEvent in docs
2015-10-01 06:18:50 -07:00
chico e6314641ce fix isDefaultPrevented() and isPropagationStopped() methods of SyntheticEvent notation 2015-10-01 14:06:30 +03:00
chico 38a3150f62 clarify that events work for elements not for components 2015-10-01 14:00:05 +03:00
Jim 6dbdea15b2 Merge pull request #4964 from jimfb/stateless-functions-and-render-docs
Documentation for stateless functions/components, condensed two pages about refs into one
2015-09-30 20:59:29 -07:00
Jim 5ee8a93280 Added documentation for stateless components, condensed the two pages about refs into a single page. 2015-09-30 18:54:19 -07:00
Sebastian Markbage 83644185f4 isReactClass -> .prototype.isReactComponent
Put the flag on the prototype instead to help certain limited forms
of class extensions that doesn't properly transfer static properties.

Fixes #4836
2015-09-30 18:28:49 -07:00
Sebastian Markbåge 401e6f1058 Merge pull request #5020 from sebmarkbage/fixjestcli
Enforce NODE_ENV=test
2015-09-30 17:57:52 -07:00
Sebastian Markbage 41cba2e77b Enforce NODE_ENV=test
You could make the argument that this should be optional, but it doesn't
work without it so we might as well just enforce it.

Makes `jest` work by default.
2015-09-30 17:43:06 -07:00
Ben Alpert 29fbbe7263 Merge pull request #5017 from spicyj/gh-5005
Fix dev/prod mismatch in context === bailout
2015-09-30 17:05:25 -07:00
Ben Alpert 3ad5419ce5 Merge pull request #5018 from spicyj/ev-l-bool
Don't throw for onClick={false} in initial render
2015-09-30 17:05:20 -07:00
Ben Alpert 2b63601472 Don't throw for onClick={false} in initial render
I accidentally regressed this in #3246. Now this matches what we already checked for updates.
2015-09-30 16:53:47 -07:00
Ben Alpert cf86cd8ebf Fix dev/prod mismatch in context === bailout
Fixes #5005.
2015-09-30 16:47:40 -07:00
Ben Alpert 7bd51659d6 Make scry* look through stateless components
Fixes #4882.
2015-09-30 16:00:21 -07:00
Paul O’Shannessy 249e0f7331 Merge pull request #5008 from james4388/patch-3
Add missing comma (,) between propTypes and render
2015-09-30 14:34:08 -07:00
Paul O’Shannessy 45b63c55a0 Merge pull request #4736 from yhagio/patch-1
Update 02-displaying-data.ja-JP.md
2015-09-30 14:22:53 -07:00
Paul O’Shannessy cf0e6dfae7 Merge pull request #4980 from edvinerikson/add-window-document-note
Added a note about needing document globally available
2015-09-30 11:08:29 -07:00
Edvin Erikson f9417a5da1 Added a note about needing document globally available
Added a note in ``10.4-test-utils.md` about needing window, document and
document.createElement globally available before importing React.
2015-09-30 14:28:57 +02:00
Trinh Hoang Nhu 3c56146a44 Add missing comma (,) between propTypes and render
Add missing comma (,) between `propTypes` and `render`
2015-09-30 03:48:51 -05:00
Ben Alpert 5a4b92d8c5 Merge pull request #5003 from spicyj/gh-4996
Improve warning for old element objects
2015-09-29 22:52:08 -07:00
Ben Alpert 35f731b012 Merge pull request #5002 from spicyj/check-no-warn-jest
Fail jest tests on any un-spied warnings
2015-09-29 22:51:47 -07:00
Ben Alpert d561949711 Improve warning for old element objects
Fixes #4996.
2015-09-29 18:02:47 -07:00
Ben Alpert b8c7b13042 Fail jest tests on any un-spied warnings
Originally #4223 -- we lost this when we switched to jest.
2015-09-29 17:35:39 -07:00
Ben Alpert 9a234e1d48 Merge pull request #4995 from gregrperkins/master
Rename TYPE_SYMBOL to REACT_ELEMENT_TYPE
2015-09-28 14:18:18 -07:00
Greg Perkins c9320142ec Rename TYPE_SYMBOL to REACT_ELEMENT_TYPE
See D2454031 for context.
2015-09-28 14:11:40 -07:00
Ben Alpert c512603a8c Merge pull request #4987 from spicyj/perf
Add unit test to ensure DOM mutations are instrumented
2015-09-28 11:48:18 -07:00
Paul O’Shannessy 1b5cd36f03 Merge pull request #4901 from zpao/npm-react-dom-dist
Build ReactDOM browser builds into react-dom/dist
2015-09-28 11:41:00 -07:00
Paul O’Shannessy ed264b548b Merge pull request #4953 from zpao/test-utils-scry
Make ReactTestUtils.scryRenderedComponentWithClass find multiple classes
2015-09-28 10:31:21 -07:00
Paul O’Shannessy e9c571acc6 Make ReactTestUtils.scryRenderedComponentWithClass find multiple classes 2015-09-28 10:06:54 -07:00
Ben Alpert 013bf16501 Merge pull request #4985 from mbrookes/patch-1
Correct the CSS example for 'appear' transition
2015-09-27 16:23:09 -07:00
Ben Alpert 7938650ca9 Make new perf unit test pass 2015-09-27 14:26:26 -07:00
Ben Alpert 47de0a8ce6 Add unit test to ensure DOM mutations are instrumented 2015-09-27 14:26:01 -07:00
Matt 208f20b787 Correct the CSS example for 'appear' transition
Move transition from `.example-appear` to `.example-appear.example-appear-active`
2015-09-27 17:33:16 +01:00
cpojer 2c973796e3 Add trailing commas to react-codemod output by default. 2015-09-26 22:58:45 +02:00
Paul O’Shannessy ce8fed7592 Merge pull request #4893 from jw-00000/patch-1
Fix documentation of behavior of v0.12 and v0.13
2015-09-26 10:46:07 -07:00
JW 3b6697f177 Fix documentation of event propagation: 0.13 to 0.14 2015-09-26 12:31:48 +02:00
Vipul A M 1d4371a1d2 [docs] Replace JSXTransformer with babel/browser
Closes #4131
2015-09-25 20:13:19 -07:00
Paul O’Shannessy d3d2504e72 Merge pull request #4846 from zpao/docs-use-babel
[docs] Remove references to react-tools, JSXTransformer, replace with Babel.
2015-09-25 20:06:47 -07:00
Paul O’Shannessy 105554fe5c [docs] Remove JSXTransformer, react-tools from downloads page 2015-09-25 17:58:07 -07:00
Paul O’Shannessy bef8942cb7 [docs] Remove JSXTransformer from tutorial 2015-09-25 17:58:07 -07:00
Paul O’Shannessy 4d9c1d1126 [docs] Update script mimetypes: text/jsx -> text/babel 2015-09-25 17:56:42 -07:00
Paul O’Shannessy 097b32b7d2 [docs] Remove mentions of react-tools/jsx command 2015-09-25 17:56:42 -07:00
Paul O’Shannessy 411ed31cb1 [docs] Stop supporting our JSX compiler page
Link to Babel REPL directly instead.
2015-09-25 17:56:42 -07:00
Paul O’Shannessy 6ff4ba9512 Merge pull request #4978 from zpao/tutorial-server
[docs] Make the server required for the tutorial
2015-09-25 17:54:47 -07:00
Paul O’Shannessy a440f40713 [docs] Make the server required for the tutorial 2015-09-25 17:52:45 -07:00
Ben Alpert 59466a0b52 Merge pull request #4977 from spicyj/gh-4870
Actually don't store <input> until mount-ready
2015-09-25 13:41:45 -07:00