Commit Graph
2152 Commits
Author SHA1 Message Date
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 571edd85c2 Revert "Remove dependence on ES5 shams per #4189" 2015-10-06 14:30:03 -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 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
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
Ben Alpert 1959aaa1f9 Don't blow up in key warning for undefined type 2015-10-02 11:31:28 -07:00
Paul O’Shannessy 9aa4546410 Merge pull request #5034 from zpao/fbjs-0.3
Update to fbjs@0.3
2015-10-01 14:33:40 -07:00
Paul O’Shannessy 693dd3567b Update to fbjs@0.3
As far as we're concerned, the only difference is that we moved some files from React to fbjs.
2015-10-01 14:30:05 -07:00
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 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
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 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
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
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 e9c571acc6 Make ReactTestUtils.scryRenderedComponentWithClass find multiple classes 2015-09-28 10:06:54 -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
Bradley Spaulding 63cfcca74e Updated stateless ref warning message with more info 2015-09-25 16:21:59 -07:00
Ben Alpert 6e62a010dd Actually don't store <input> until mount-ready
So #4976 was a lie. Fixes #4870 for real (thanks @STRML).
2015-09-25 13:39:05 -07:00
Ben Alpert b82f3ab55d Merge pull request #4976 from spicyj/gh-4870
Don't store <input> instance until mount-ready
2015-09-25 13:30:01 -07:00
Ben Alpert c04d10f033 Don't store <input> instance until mount-ready
Fixes #4870.

This more or less matches what we were doing with the old wrapper components (not storing until componentDidMount).
2015-09-25 13:20:40 -07:00
Ben Alpert e352475ddc Don't blow up on missing _store in element validation
Seems better to fail gracefully, especially now that we support inlining. If people do this by accident we can figure out how to add a helpful warning instead.

Fixes #3285.
2015-09-25 13:09:03 -07:00
Paul O’Shannessy 7037ef9d8b [lint] Update and fix 2015-09-25 12:32:51 -07:00
Sebastian Markbåge 8854a31e31 Merge pull request #4942 from darobin/rdfa-attributes
Add RDFa attributes not already covered (fixes #3459)
2015-09-25 09:32:40 -07:00
Bradley Spaulding af79118148 attachRef to a stateless component warns instead of throwing #4939 2015-09-24 11:52:46 -07:00
Bradley Spaulding 8b4663d722 Renamed componentInstance to publicComponentInstance 2015-09-24 11:46:41 -07:00
Paul O’Shannessy 8857e12c9e Use main document for getTestDocument
This should be fine in a jest environment, which is all we really care about now.
2015-09-23 13:46:41 -07:00
Ben Alpert ab03f34965 Merge pull request #4951 from spicyj/gh-4840
Improve traverseAllChildren object error message
2015-09-23 12:17:35 -07:00
Ben Alpert 1922db1711 Improve traverseAllChildren object error message
Fixes #4840.
2015-09-23 12:17:20 -07:00
Paul O’Shannessy 33e44f041b Merge pull request #4944 from zpao/rm-event-path
Remove SyntheticEvent.path
2015-09-23 10:03:19 -07:00
Ben Alpert 7398606ccf Merge pull request #4683 from JaeHunRo/master
temporarily fixes printWasted abnormality
2015-09-23 00:34:51 -07:00
Paul O’Shannessy 96b3ef54bf Merge pull request #4935 from saifelse/fix-firefox-dom-sel
Fix ReactDOMSelection to avoid erroring on Firefox's anonymous divs
2015-09-22 17:57:24 -07:00
JaeHunRo 6244a985c4 updates printWasted 2015-09-23 01:46:31 +01:00
Ben Alpert b06be9bc2d Merge pull request #4946 from spicyj/nan
Improve error for style mutation
2015-09-22 16:34:05 -07:00
Ben Alpert 9faf1f3969 Improve error for style mutation
Fixes #4877. I opted not to change shallowEqual for this since it seems relatively one-off.
2015-09-22 16:29:40 -07:00
Ben Alpert 57c516cb0e Don't use magic browser event dispatching for simulated events
When calling ReactTestUtils.Simulate, sometimes you want to test that an exception is thrown by the event handler. This lets you do that without relying on the fact that old jsdom doesn't implement `Event`.
2015-09-22 15:31:08 -07:00
Saif Hakim 0267cfbb8f Fix ReactDOMSelection to avoid erroring on Firefox's anonymous divs 2015-09-22 15:28:33 -07:00
Paul O’Shannessy 8a837cbd3f Remove SyntheticEvent.path 2015-09-22 15:12:19 -07:00
Bradley Spaulding 650fa58ab9 Composite component throws on attaching ref to stateless component #4939 2015-09-22 14:28:38 -07:00
Robin Berjon fd682b5cac add RDFa attributes not already covered 2015-09-22 16:58:48 -04:00
Ben Alpert c561324e7e Merge pull request #4903 from spicyj/event-unmounted
Just ignore events on unmounted components
2015-09-22 09:54:04 -07:00
Ben Alpert 45f85a6cc5 Just ignore events on unmounted components
Fixes #4865 and also seems to fixes #3790.
2015-09-17 17:42:01 -07:00