Sebastian Markbage
ff032dc857
Introducing ReactComponentBase base class
...
This is the base class that will be used by ES6 classes.
I'm only moving setState and forceUpdate to this base class and the other
functions are disabled for modern classes as we're intending to deprecate
them. The base classes only have getters that warn if accessed. It's as if
they didn't exist.
ReactClass now extends ReactComponentBase but also adds the deprecated
methods. They are not yet fully deprecated on the ReactClass API.
I added some extra tests to composite component which we weren't testing
to avoid regressions.
I also added some test for ES6 classes. These are not testing the new
state initialization process. That's coming in a follow up.
2015-01-13 10:54:19 -08:00
Ben Alpert
90053da7bd
Merge pull request #2844 from kchia/patch-1
...
Update README.md insert comma
2015-01-12 09:45:52 -10:00
Hou Chia
08c7c556de
Update README.md insert comma
...
The file change inserts a missing comma.
Best,
Hou
2015-01-12 11:29:17 -08:00
Jim
d94acc0363
Merge pull request #2830 from jsfb/remove-tag-warning
...
Removed unknown tag warning/whitelist.
2015-01-12 10:42:44 -08:00
Christopher Chedeau
f50da7ec63
Merge pull request #2832 from kikyous/patch-1
...
Update 07-forms.md
2015-01-10 13:54:05 -08:00
Jim
61f7a5613b
Removed unknown tag warning/whitelist.
2015-01-09 11:46:47 -08:00
chen
bb52715f1c
Update 07-forms.md
2015-01-09 10:19:42 +08:00
Paul O’Shannessy
5394acdb4b
Merge pull request #2799 from stkb/master
...
Wrap setInnerHTML in Windows 8 apps (Fixes #441 )
2015-01-07 16:47:32 -08:00
Paul O’Shannessy
4772967e29
Remove period from findDOMNode test filename
2015-01-07 15:16:31 -08:00
Paul O’Shannessy
6204aeec7d
Merge pull request #2822 from zpao/rm-immutable
...
Remove LegacyImmutableObject
2015-01-07 13:27:21 -08:00
Jim
9514861d93
Merge pull request #2814 from jsfb/testutils-consolemock
...
Added jasmine matcher that expects calls to console.warn.
2015-01-07 13:10:53 -08:00
Paul O’Shannessy
7863175cd9
Remove LegacyImmutableObject
...
We don't use it and it's not part of the build so nobody else is using
it. You should probably use immutable instead anyway.
2015-01-07 11:37:52 -08:00
Jason Bonta
cdec83732d
suggesting the use of immutable js for comparisons
2015-01-07 10:46:50 -08:00
Jim
bd4aff062d
Added jasmine matcher that expects calls to console.warn.
2015-01-06 14:05:37 -08:00
Paul O’Shannessy
a45472e050
Merge pull request #2793 from huang47/improve/use-bundle-collapser-to-reduce-file-size
...
use bundle-collapser to reduce browserified file size
2015-01-05 15:43:04 -08:00
Paul O’Shannessy
680bfd54a6
Merge pull request #2807 from JoshSGman/patch-1
...
Fix Outdated Copyright Year
2015-01-05 15:42:12 -08:00
Jim
e5b3f9aefa
Merge pull request #2520 from jsfb/warn-for-dangerouslySetInnerHtml
...
Added checks for incorrect usage of innerHTML. Fixes #1370
2015-01-05 13:39:16 -08:00
Jim
158e0dd35a
Merge pull request #2614 from jsfb/monitor-should-update-owner-is-useful
...
Find cases where shouldUpdateReactComponent is det
2015-01-05 13:32:43 -08:00
Jim
2a28189bea
Merge pull request #2800 from jsfb/getDOMNode-becomes-findDOMNode
...
Minor updates to findDOMNode, as per additional post-commit CR feedback.
2015-01-05 13:29:14 -08:00
Jim
f507ba3c2b
Minor updates to findDOMNode, as per additional post-commit CR feedback.
2015-01-05 13:26:35 -08:00
ShihChi Huang
9bc1961936
apply browserify bundle collapser to all build type
2015-01-05 13:15:16 -08:00
Joshua Goldberg
e926d4ff54
Fix Outdated Copyright Year
...
Fix outdated copyright year (update to 2015)
The copyright year was out of date. Copyright notices must reflect the current year. This commit updates the listed year to 2015.
2015-01-05 13:52:20 -05:00
Paul O’Shannessy
a7028c467f
Merge pull request #2801 from jsfb/componentDidUpdate-docs
...
Update docs to indicate that componentDDidUpdate is fired after changes are flushed to the DOM. Fix
2015-01-05 09:34:38 -08:00
Steve Baker
9c55b961d3
code formatting fixes
2015-01-05 18:21:53 +01:00
Paul O’Shannessy
26636e501d
Merge pull request #2791 from rickbeerendonk/patch-1
...
Update ref-09-glossary.md
2015-01-05 09:05:46 -08:00
Paul O’Shannessy
7295f36b0f
Merge pull request #2788 from mihaip/master
...
SyntheticEvent.timeStamp is a number, not a Date
2015-01-05 09:05:19 -08:00
Jim
08c5e42649
Update docs to indicate that componentDDidUpdate is fired after changes are flushed to the DOM. Fixes #2796
2015-01-02 14:02:44 -08:00
Steve Baker
3287ea52fe
Wrap setInnerHTML in Windows 8 apps
2015-01-02 20:28:58 +01:00
ShihChi Huang
f214776a97
use bundle-collapser to reduce browserified file size
2014-12-30 23:16:04 -08:00
Rick Beerendonk
717b6d6249
Update ref-09-glossary.md
...
Minor grammatical fix.
2014-12-30 23:42:38 -05:00
Mihai Parparita
c0e33e8e76
SyntheticEvent.timeStamp is a number, not a Date
...
Also makes the a few other attribute types use lowercase (primitive) naming, to be consistent.
2014-12-30 12:06:49 -08:00
Paul O’Shannessy
ebf4cb4fab
Merge pull request #2785 from c-das/patch-1
...
Update 02-displaying-data.md
2014-12-30 06:45:18 -08:00
Chitharanjan Das
b25e2e70d8
Update 02-displaying-data.md
...
Just a couple of minor grammatical fixes.
2014-12-30 10:49:44 +00:00
Sebastian Markbåge
82a30268a3
Merge pull request #2767 from sebmarkbage/moderntypevalidation
...
Add late class validation warnings for statics
2014-12-29 12:45:49 -05:00
Sebastian Markbage
82d15c8fd5
Add late class validation warnings for statics
...
ES6 classes won't have an early validation step. Therefore I added some
extra validation later on in the process. These would've normally have
been caught by createClass in classic React.
2014-12-29 12:43:40 -05:00
Sebastian Markbåge
9cd290a8c8
Merge pull request #2783 from dylanharrington/master
...
Fix typo in warning for invalid reused markup
2014-12-29 12:14:22 -05:00
Sebastian Markbåge
bd5a91a55c
Merge pull request #2768 from sebmarkbage/duplicatetests
...
Removed some duplicate tests
2014-12-29 09:10:26 -08:00
Dylan Harrington
159ba54b8c
Fix typo in warning message for invalid reused markup
2014-12-29 01:55:16 -08:00
Sebastian Markbåge
11f83c1fa0
Merge pull request #2769 from sebmarkbage/breakonwarning
...
Throw a caught error in the default warning module
2014-12-25 14:47:34 -08:00
Paul O’Shannessy
b98facd76e
Merge pull request #2773 from vanesyan/patch-1
...
Update ref-01-top-level-api.md
2014-12-25 10:42:47 -08:00
Roman Vanesyan
172dec8351
Update ref-01-top-level-api.md
...
React isn't framework, it's library for UI!?
2014-12-24 14:39:37 +05:00
Paul O’Shannessy
6ca8bf82f5
Merge pull request #2772 from zpao/fixjsdoc
...
Fixup jsdoc for findDOMNode
2014-12-23 15:58:59 -08:00
Paul O’Shannessy
20c43d4ec8
Fixup jsdoc for findDOMNode
2014-12-23 15:56:05 -08:00
Paul O’Shannessy
41b919bb81
Merge pull request #2771 from zpao/temp-fix-empty-component
...
Temporarily fix EmptyComponents
2014-12-23 15:43:00 -08:00
Paul O’Shannessy
b2bf83ec85
Temporarily fix EmptyComponents
...
This a workaround for the problem described in #2770 . It should be
temporary because this is really just working around the real problem.
2014-12-23 15:33:53 -08:00
Sebastian Markbage
f1bab136d0
Throw a caught error in the default warning module
...
This throws an error that is immediately caught. This allows you to use the
debugger's "break on caught exception" feature to break on warnings.
This should help with tracking down these warnings using the stack.
However, it could also add more noise to other debugging pattern.
2014-12-23 14:21:04 -08:00
Sebastian Markbage
8864692237
Removed some duplicate tests
...
These tests are duplicates of the same test in the same file. Copy/paste
fail.
2014-12-23 13:59:11 -08:00
Paul O’Shannessy
3fec78638d
v0.13.0-alpha.1
...
Bumping version numbers so we can push to npm.
2014-12-23 12:04:23 -08:00
Paul O’Shannessy
343cda72d9
Merge pull request #2760 from alextsg/patch-3
...
Update 14-communicate-between-components.md for grammatical changes
2014-12-22 13:56:44 -08:00
Paul O’Shannessy
fe1edb60eb
Merge pull request #2759 from alextsg/patch-2
...
Update 05-maximum-number-of-jsx-root-nodes.md for capitalization
2014-12-22 13:56:10 -08:00