Paul O’Shannessy
d245eb6583
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 and Paul O’Shannessy
b41acfd9f3
Update link and description of TypeScript support. ( #6953 )
2016-06-03 10:27:39 -07:00
Andrew Imm and Jim
c73baa6a8b
Fallback to legacy set/get in old versions of FF ( #6930 )
2016-06-02 11:35:21 -07:00
Sasha Aickin and Ben Alpert
e0fc4cc3a2
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
e145aead46
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
080f3c7023
Add a gulp script for extracting error codes ( #6882 )
2016-06-01 11:21:26 -07:00
Ben Alpert
89c2936b91
Add rudimentary test renderer ( #6944 )
2016-06-01 11:17:10 -07:00
Jim
ad00e55038
Remove css px warning, stop appending px to strings ( #6899 )
2016-05-31 14:32:27 -07:00
Sebastian Markbåge
15d0900897
Merge pull request #6931 from sebmarkbage/newreconciler
...
[Fiber] Simple test assertions
2016-05-31 14:20:18 -07:00
Sebastian Markbage
cdec00dc2c
[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
44f2958f7c
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
469317f179
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
b7caf25adc
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 and Jim
1cd36b40a4
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 and Jim
082caf3b6b
Remove getDOMNode from docs ( #6919 )
2016-05-30 09:16:15 -07:00
Alex Jacobs and Dan Abramov
b921f171b6
Fix minor lint warnings ( #6909 )
2016-05-28 22:04:32 +01:00
Ben Alpert
ee56546a24
Fix style test for Jasmine 2 ( #6913 )
2016-05-28 12:58:08 -07:00
Nate Norberg and Jim
7db3733fce
Added more specific warning for using onDblClick instead of onDoubleClick ( #6881 )
2016-05-27 15:23:05 -07:00
Jim
af4f0171ea
Followup to 6896, add explanation of workaround. ( #6905 )
2016-05-27 09:19:25 -07:00
Bruce Harris and Jim
e5a6f51e47
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
2d4e352911
[docs] Use existing layout for redirecting html-jsx ( #6904 )
2016-05-26 23:50:55 -07:00
Ilya Gelman and Paul O’Shannessy
159cad1302
Add ReactNext 2016 conference ( #6833 )
2016-05-26 23:43:00 -07:00
Daniel Lo Nigro and Paul O’Shannessy
c55ee8dab0
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 and Paul O’Shannessy
5aa13f2c5c
Add link to ReactJS.NET on server-side environments page ( #6607 )
2016-05-26 23:36:56 -07:00
Keyan Zhang and Paul O’Shannessy
549eb4b625
switched to codemirror's jsx mode ( #6898 )
2016-05-26 23:33:04 -07:00
Paul O’Shannessy
65881a3fc8
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
ba8cf5ea4d
Merge pull request #6859 from sebmarkbage/newreconciler
...
[Fiber] Child Reconciler + New Coroutines Primitive
2016-05-26 18:21:08 -07:00
Sebastian Markbage
48cb921d3a
Coroutines
2016-05-26 18:13:21 -07:00
Sebastian Markbage
a87703f7ee
Child Fiber
2016-05-26 17:27:19 -07:00
Robin Berjon and Dan Abramov
1a2a118b28
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
cab8eb3e05
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
c493e7aee5
Merge pull request #6890 from grgur/patch-1
...
Added React Europe 2015 videos
2016-05-26 13:50:55 +01:00
Grgur Grisogono
96bc11e1a5
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
b4724b7db9
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
0e08c3abb7
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
c2b95a737d
Inline expectations in tests as they are used once
2016-05-26 01:29:54 +01:00
Dan Abramov
0ef83e847e
Infer displayName in more cases for props.ref/key warning
2016-05-26 01:21:28 +01:00
Ben Alpert
9afd22f430
Warn when element is missing in devtool ( #6869 )
2016-05-25 17:11:57 -07:00
Dan Abramov
687f75ff5b
Correctly check that element and props are frozen
...
This fixes an incorrect way of checking introduced in e075fe49d1 (it had no effect).
2016-05-26 01:08:29 +01:00
Dan Abramov
0eaa8c512f
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
d31e259a83
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
677b154394
Move tests concerned with cloning into ReactElementClone-test
2016-05-26 00:27:57 +01:00
Dan Abramov
311ed11c98
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 428d8de4e8 .
2016-05-26 00:21:18 +01:00
Dan Abramov
b9b6fd5f02
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 428d8de4e8 .
2016-05-26 00:10:10 +01:00
Dan Abramov
d6f66ed0b7
Tweak whitespace
2016-05-25 23:21:29 +01:00
Dan Abramov
f87959f5f2
Remove indirection when determining valid config and ref
2016-05-25 23:17:20 +01:00
Eric Matthys and Dan Abramov
428d8de4e8
Do not clone key and ref getters
2016-05-25 23:02:56 +01:00
Andrew Clark and Dan Abramov
a0ff2e77de
Clarify that string refs are considered legacy. ( #6692 )
2016-05-25 22:47:34 +01:00
Ben Alpert
60e66e619d
Revert "Update shallowCompare to accept nextContext" ( #6877 )
2016-05-25 14:37:48 -07:00
Dan Abramov
b9636ecaa8
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