Paul O’Shannessy
7a1d87bd33
A couple small style fixups that were missed in recent PRs
2015-12-18 11:27:49 -08:00
Ben Alpert
963b3cacab
Merge pull request #5346 from prometheansacrifice/warn-immutable-props
...
Warns when mutated props are passed.
2015-12-16 16:09:33 -08:00
Jim
c9c3c339b7
Merge pull request #5216 from nLight/number-in-data-attrs-2329
...
Allow numbers after `data-` in custom attributes fixes #2329
2015-12-16 15:37:41 -08:00
Jim
3afced6a75
Error boundaries.
2015-12-16 12:15:26 -08:00
Oliver Zeigermann
20e5a95fe3
fixed docs on ReactElement that were out of sync with code
2015-12-16 11:26:32 +01:00
jpersson
13080f99ba
Rephrase comment to better describe use of warning()
2015-12-14 23:27:37 -05:00
Ben Alpert
33217f0fb9
Merge pull request #4888 from spicyj/ssr-no-queue
...
Don't build up mount-ready queue for server side rendering
2015-12-14 14:46:04 -08:00
Ben Alpert
3997164418
Merge pull request #5550 from spicyj/cc-speed
...
Make createClass 10-15% faster on complex specs
2015-12-14 14:45:44 -08:00
Freddy Rangel
db37deb17c
Autocorrect and autocapitalize should not be property
...
Fixes facebook/react#5436
2015-12-13 23:37:29 -08:00
Justas Brazauskas
0886273438
Fix few typos in React docs and comments
2015-12-13 16:39:07 +02:00
Ben Alpert
4f7a2766e4
Merge pull request #5640 from spicyj/no-typechecks
...
Remove @typechecks
2015-12-10 11:30:40 -08:00
Ben Alpert
46f5251c66
Remove @typechecks
...
These don't really do anything.
```
codemod.py -d src --extensions js -m '\s* \* @typechecks.*?\n' '\n'
```
with "yes to all".
2015-12-10 11:26:45 -08:00
Jim
be964561ed
Merge pull request #5610 from yangshun/change-devtools-message
...
Change devtools install message on file: URLs
2015-12-10 08:55:57 -08:00
Tay Yang Shun
3deca65a89
Change devtools install message on file: URLs
2015-12-11 00:48:53 +08:00
Mark Rushakoff
86b44349de
Avoid negative lookahead in regular expression
...
I'm trying to use React with otto
(https://github.com/robertkrimen/otto ), which is implemented in Go and
does not support lookaheads or backreferences in regular expressions.
(Unfortunately that *does* mean that otto isn't fully compatible with
the ECMA5 spec; but since this is the only lookahead I am aware of in
the React codebase, this change makes React once again compatible with
otto, and any other JS implementation that may not be fully compliant on
regular expressions).
As far as I can tell, the previous code replaced a sequence of slash
characters with one more slash than before. The new code avoids the
negative lookahead by matching any sequence of slash characters and then
using the special `$&` placeholder to replace the matched sequence with
the original sequence, plus one more slash.
2015-12-06 13:46:16 -08:00
Taeho Kim
14725ba768
Clean up caller sites of instantiateReactComponent
...
The 2nd argument was removed since #4139 .
2015-12-06 17:31:30 +09:00
Paul O’Shannessy
67663ba2c9
Merge pull request #5603 from henryw4k/patch-3
...
chore(ReactComponentWithPureRenderMixin.js): made "Mixin" lowercase
2015-12-04 13:08:58 -08:00
Henry Wong
4a971c2d1c
chore(ReactComponentWithPureRenderMixin.js): made "Mixin" lowercase
...
When referring to mixin, the rest of the comment is in lowercase; see line 36 and line 37.
This change helps with the consistency of the usage of "mixin", and not to confuse it with a variable name.
2015-12-04 11:12:07 -08:00
Remko Tronçon
7d699f4063
Fix single select incorrectly updating
...
Closes #5592
2015-12-04 11:21:02 +01:00
Jim
50c7b1792c
Merge pull request #5570 from jimfb/remove-setprops-replaceprops
...
Remove setProps and replaceProps.
2015-12-02 19:09:19 -08:00
Scott Feeney
8557cc0d67
Merge pull request #5561 from graue/setstate-cwm
...
shallow render: fix setState in componentWillMount
2015-12-01 19:49:15 -08:00
Scott Feeney
9c21e2f3c4
shallow render: fix setState in componentWillMount
2015-12-01 19:43:52 -08:00
Ben Alpert
6b3ee0e74d
Merge pull request #5576 from spicyj/log-top-level
...
Log top-level renders with console.time
2015-12-01 11:34:40 -08:00
Ben Alpert
a0f88d29df
Log top-level renders with console.time
...
Behind a flag.
2015-12-01 11:29:13 -08:00
Paul O’Shannessy
13c398bef6
Merge pull request #5536 from zpao/keys-on-prototypes
...
Don't use `key` when defined on String, Number prototypes
2015-11-30 23:33:26 -08:00
jim
fbf81a8435
Remove setProps and replaceProps.
2015-11-30 11:46:07 -08:00
Ben Alpert
50c81d5fe6
Make createClass 10-15% faster on complex specs
2015-11-25 18:24:46 -08:00
Ben Alpert
418ba27485
Kill global queue in ReactMultiChild
...
As we move away from using HTML for updates, this becomes less useful.
2015-11-25 12:59:02 -08:00
Ben Alpert
08499f9938
Turn on useCreateElement by default
...
Facebook has been running with this on for a couple weeks now with no ill effects.
2015-11-25 12:59:01 -08:00
Paul O’Shannessy
f44a0778e3
Don't use key when defined on String, Number prototypes
2015-11-23 15:33:34 -08:00
Cheng Lou
60af7d1c3d
Remove unreachable return from shouldUpdateReactComponent
...
Eslint didn't catch this (we do have this rule turned on) because it's a
big. There are no other locations I think. Detected that when I minified
some code.
2015-11-21 18:00:40 -05:00
Ben Alpert
812e1a877f
Merge pull request #5500 from hejld/master
...
Update DOM_OPERATION_TYPES mappings for ReactDefaultPerfAnalysis
2015-11-20 11:21:06 -08:00
Sebastian Markbåge
64f795e5ef
Merge pull request #5411 from simonewebdesign/master
...
ReactShallowRenderer.render returns the rendered output
2015-11-20 11:20:37 -08:00
Ben Alpert
907dee2b5d
Merge pull request #5451 from spicyj/empty-comments
...
Use comment nodes for empty components
2015-11-19 16:56:23 -08:00
jim
1d071c20e8
Removed unnecessary variables/assertions.
2015-11-19 11:32:51 -08:00
Jim
c643ecd7c7
Merge pull request #5495 from jimfb/remove-public-dom-instance
...
Remove legacy dom node/ref stuff.
2015-11-19 11:27:24 -08:00
hejld
a3779421a1
Update DOM_OPERATION_TYPES mappings for ReactDefaultPerfAnalysis
2015-11-18 20:58:32 +01:00
Ben Alpert
1a6d1e74e0
Merge pull request #5330 from laskos/fix-shallow-rendering-function-refs
...
Fix shallow renderer with ref as function
2015-11-17 23:53:00 -08:00
Paul O’Shannessy
c4f134883d
Support reversed for <ol>s
2015-11-17 22:42:01 -08:00
Paul O’Shannessy
c07b304c76
Merge pull request #5381 from kevinrobinson/react-dom-server-package
...
Add additional secret property to build artifact for react-dom-server
2015-11-17 16:48:08 -08:00
jim
538d0b08f2
Remove legacy dom node/ref stuff.
2015-11-17 15:30:35 -08:00
Ben Alpert
e03df26e62
Merge pull request #5493 from spicyj/gh-4589
...
Finish comment in ReactDOMComponentTree
2015-11-17 09:54:23 -08:00
Ben Alpert
6c89857cdc
Finish comment in ReactDOMComponentTree
2015-11-17 09:41:24 -08:00
hejld
ba8c987391
Fix typos and redundant words
2015-11-17 12:39:29 +01:00
hejld
94504c3767
Remove rendundant 'the'; keep iff (if and only if)
2015-11-16 20:05:37 +01:00
Manas
593a234c1e
Warns when mutated props are passed.
2015-11-13 01:15:38 +05:30
Dmitriy Rozhkov
a2b471e098
Allow all characters (except astral) specified in XML specs. fixes #2329
2015-11-12 16:21:34 +01:00
Ben Alpert
ea31f924b8
Merge pull request #5368 from spicyj/adler32
...
adler32: Properly break loop into 4096-char blocks
2015-11-11 22:21:22 -08:00
Paul O’Shannessy
8104262043
Merge pull request #5390 from chicoxyzzy/arrayof-objectof-tests
...
Add validation for arrayOf and objectOf in ReactPropTypes
2015-11-11 16:48:33 -08:00
Sebastian Markbåge
951f3b6ba8
Merge pull request #5406 from acdlite/better-error-message-for-setState-in-constructor
...
Updates the warning that is displayed when `setState` is called within either `render` or a component constructor.
2015-11-11 16:45:12 -08:00