Paul O’Shannessy
36d1a271c4
Upgrade to flow 0.26 & match internal config with strict args
...
Also ignore examples, important because react can be installed by the commonjs
one and the modules will get detected there too, resulting in duplicate
definitions
2016-06-03 13:12:47 -07:00
Daniel Rosenwasser
6b3f11cdd7
Update link and description of TypeScript support. ( #6953 )
2016-06-03 10:27:39 -07:00
Andrew Imm
8216125d82
Fallback to legacy set/get in old versions of FF ( #6930 )
2016-06-02 11:35:21 -07:00
Sasha Aickin
d6e70586b7
Replace the implementation of escapeTextContentForBrowser with escape-html ( #6862 )
...
* Replacing the implementation of escapeTextContentForBrowser with escape-html for performance
* Addressing @spicyj's code review comment here: https://github.com/facebook/react/pull/6862#issuecomment-223102868 . Pulled the code of escape-html in to react and changed the encoding of single quote to '.
* Addressing code review comment https://github.com/facebook/react/pull/6862#discussion_r65462074 to make code more inlinable for v8. Thanks, @spicyj.
2016-06-01 17:14:30 -07:00
Ben Alpert
9498747606
Remove Flux from docs nav ( #6945 )
...
Most people don't use the official Flux implementation or docs so I think this is likely to be more confusing than helpful. Maybe later we can add a better comparison of data management solutions.
2016-06-01 11:41:35 -07:00
Keyan Zhang
bfd1531eca
Add a gulp script for extracting error codes ( #6882 )
2016-06-01 11:21:26 -07:00
Ben Alpert
50982cea99
Add rudimentary test renderer ( #6944 )
2016-06-01 11:17:10 -07:00
Jim
51f8b1b40c
Remove css px warning, stop appending px to strings ( #6899 )
2016-05-31 14:32:27 -07:00
Sebastian Markbåge
dc5686a42f
Merge pull request #6931 from sebmarkbage/newreconciler
...
[Fiber] Simple test assertions
2016-05-31 14:20:18 -07:00
Sebastian Markbage
8056fbc2c9
[Fiber] Simple test assertions
...
I'll split the coroutine and incremental testing into their own
tests so that I can expand them with more edge cases.
2016-05-31 13:52:28 -07:00
Sebastian Markbåge
7de23758f1
Merge pull request #6903 from sebmarkbage/newreconciler
...
[Fiber] Transfer everything from Element onto the Fiber and use Tag instead of Stage
2016-05-31 13:39:59 -07:00
Sebastian Markbage
811084d74e
Use the tag instead of stage field for coroutine stages
...
This gets rid of a field that we only need for coroutines.
We might need this if we have multi phase handlers in the future
but then maybe we can just use multiple tags.
2016-05-31 13:34:19 -07:00
Sebastian Markbage
aa14d89c7d
Transfer everything from Element onto the Fiber
...
This has a few benefits:
1) This allows the element to always remain on the young generation.
2) The key can be accessed on the fiber which is easier to keep as the
same class and is directly accessible in the child reconciliation of every
object.
3) This conveniently means that we don't have to create a fake element for
continuations which was really hacky.
We can still do the quick bailout of rerendered things using the props
object which is also unique.
2016-05-31 13:34:19 -07:00
hjmoss
4e82e8b6e6
Grammar: less dependencies -> fewer dependencies ( #6917 )
...
* Grammar: less dependencies -> fewer dependencies
* changelog.md grammar: less dependencies -> fewer dependencies
2016-05-31 09:17:13 -07:00
Toru Kobayashi
97b44085ff
Remove getDOMNode from docs ( #6919 )
2016-05-30 09:16:15 -07:00
Alex Jacobs
29ed7c6c8c
Fix minor lint warnings ( #6909 )
2016-05-28 22:04:32 +01:00
Ben Alpert
e62384bca4
Fix style test for Jasmine 2 ( #6913 )
2016-05-28 12:58:08 -07:00
Nate Norberg
38900cc7ca
Added more specific warning for using onDblClick instead of onDoubleClick ( #6881 )
2016-05-27 15:23:05 -07:00
Jim
ba3bfe3e31
Followup to 6896, add explanation of workaround. ( #6905 )
2016-05-27 09:19:25 -07:00
Bruce Harris
f329099831
Update tutorial with reference to autobinding docs ( #6870 )
...
* Update tutorial with reference to autobinding docs
* Update tutorial to clarify that autobinding happens specifically with createClass() API
2016-05-27 04:07:00 -07:00
Paul O’Shannessy
d87005e0b6
[docs] Use existing layout for redirecting html-jsx ( #6904 )
2016-05-26 23:50:55 -07:00
Ilya Gelman
b0cb4e850d
Add ReactNext 2016 conference ( #6833 )
2016-05-26 23:43:00 -07:00
Daniel Lo Nigro
871116f001
Move HTMLtoJSX page off React site. References https://github.com/reactjs/react-magic/issues/52 ( #6608 )
2016-05-26 23:39:28 -07:00
Daniel Lo Nigro
d81f3297aa
Add link to ReactJS.NET on server-side environments page ( #6607 )
2016-05-26 23:36:56 -07:00
Keyan Zhang
c8bab76091
switched to codemirror's jsx mode ( #6898 )
2016-05-26 23:33:04 -07:00
Paul O’Shannessy
5c6f9d31bd
Merge pull request #6677 from zpao/dont-warn-css-0-string
...
Don't warn when style value is '0'
2016-05-26 20:05:32 -07:00
Sebastian Markbåge
0f4a4df12e
Merge pull request #6859 from sebmarkbage/newreconciler
...
[Fiber] Child Reconciler + New Coroutines Primitive
2016-05-26 18:21:08 -07:00
Sebastian Markbage
fd4f74ef95
Coroutines
2016-05-26 18:13:21 -07:00
Sebastian Markbage
7c8a090994
Child Fiber
2016-05-26 17:27:19 -07:00
Robin Berjon
263615573c
Stop passing null as second argument to document.createElement() ( #6896 )
...
* Stop passing null as second argument to document.createElement()
* rewrap check for props.is to make it more readable
2016-05-26 21:51:15 +01:00
Dan Abramov
ca5a0dad16
Merge pull request #6886 from Weizenlol/patch-1
...
Added own property check when deleting listeners.
2016-05-26 21:14:50 +01:00
Dan Abramov
1d3aceb6c3
Merge pull request #6890 from grgur/patch-1
...
Added React Europe 2015 videos
2016-05-26 13:50:55 +01:00
Grgur Grisogono
c5d4978f23
Added React Europe 2015 videos
...
Linking to the official channel that contains separate playlists for Day 1, Day 2, and Lightning talks
2016-05-26 14:29:48 +02:00
Weizenlol
b1882f870a
Added own property check when deleting listeners.
...
React crash when default object prototype is modified.
2016-05-26 11:30:36 +03:00
Dan Abramov
2d74280679
Merge pull request #6880 from gaearon/clone-key-ref-props-2
...
Fix issues introduced by createElement() warning
2016-05-26 01:41:24 +01:00
Dan Abramov
58c9fda946
Inline expectations in tests as they are used once
2016-05-26 01:29:54 +01:00
Dan Abramov
55a0e4bf80
Infer displayName in more cases for props.ref/key warning
2016-05-26 01:21:28 +01:00
Ben Alpert
21d271f6d0
Warn when element is missing in devtool ( #6869 )
2016-05-25 17:11:57 -07:00
Dan Abramov
919eba3c99
Correctly check that element and props are frozen
...
This fixes an incorrect way of checking introduced in 95373ce769 (it had no effect).
2016-05-26 01:08:29 +01:00
Dan Abramov
a432afa750
Ignore specifically React warning getter in ReactElement
...
We don’t want to have different behavior in development and production.
Previously, we used to ignore getters on key/ref in dev, but we’d read them in prod.
Now, we only ignore the getters that we *know* we created so the production logic doesn’t differ.
2016-05-26 01:01:15 +01:00
Dan Abramov
e822cbd183
Make sure cloneElement() supports prototype-less config ( #6878 )
...
This brings createElement() fix from #6855 to cloneElement().
2016-05-26 00:37:18 +01:00
Dan Abramov
d9ae319821
Move tests concerned with cloning into ReactElementClone-test
2016-05-26 00:27:57 +01:00
Dan Abramov
c77411b1af
Short-circuit the check just for getters
...
This way in other cases both DEV and PROD falls through to the check for undefined.
This fixes #6879 and a similar bug introduced for cloneElement() in 94d0dc68c8 .
2016-05-26 00:21:18 +01:00
Dan Abramov
1b802fbd65
Add a test verifying undefined key and ref are ignored
...
It currently fails in `createElement` because of #6879 which was introduced in #5744 .
It also fails in `cloneElement` because the code with that bug was extracted and shared in 94d0dc68c8 .
2016-05-26 00:10:10 +01:00
Dan Abramov
15cd66b91b
Tweak whitespace
2016-05-25 23:21:29 +01:00
Dan Abramov
f846edcbea
Remove indirection when determining valid config and ref
2016-05-25 23:17:20 +01:00
Eric Matthys
94d0dc68c8
Do not clone key and ref getters
2016-05-25 23:02:56 +01:00
Andrew Clark
d7ced68dce
Clarify that string refs are considered legacy. ( #6692 )
2016-05-25 22:47:34 +01:00
Ben Alpert
eb050727ee
Revert "Update shallowCompare to accept nextContext" ( #6877 )
2016-05-25 14:37:48 -07:00
Dan Abramov
c0ecde687a
Merge pull request #6872 from gaearon/jest-cli@12
...
Update to Jest 12.1.1 and Jasmine 2
2016-05-25 22:07:50 +01:00