Commit Graph
4623 Commits
Author SHA1 Message Date
Kohei TAKATA 2c66cf5e44 Fix link of getting-started.ja-JP.md 2015-06-17 22:17:47 +09:00
Ben Alpert 5b74eae513 Merge pull request #4152 from spicyj/rce
Disallow passing a DOM component to reactComponentExpect
2015-06-16 23:33:09 -07:00
Ben Alpert b99bafec31 Merge pull request #4151 from spicyj/fairti
Disallow passing a DOM component to findAllInRenderedTree
2015-06-16 23:32:53 -07:00
Ben Alpert 768c0dd4ee Disallow passing a DOM component to reactComponentExpect
We won't be able to support this after DOM-components-as-refs but we don't expect many people to be passing DOM components to this function anyway, and it should be fairly straightforward for people to clean up failing unit tests using this function.

(This module also isn't public API and never has been.)
2015-06-16 17:51:06 -07:00
Ben Alpert c616caf450 Disallow passing a DOM component to findAllInRenderedTree
We won't be able to support this after DOM-components-as-refs but we don't expect many people to be passing DOM components to this function anyway, and it should be fairly straightforward for people to clean up failing unit tests using this function.
2015-06-16 16:37:37 -07:00
Ben Alpert 91e780a5c2 Invert logic in findAllInRenderedTreeInternal
With DOM components we won't be able to go from public instance to internal instance reliably, so do the traversal on internal instances.
2015-06-16 14:38:03 -07:00
Paul O’Shannessy 3de4a7a80f Merge pull request #4121 from cristovaov/tutorial-doc/script-src
update script sources to be even with the example file ...
2015-06-16 12:37:20 -07:00
Paul O’Shannessy 6ba7660edb Merge pull request #4142 from zpao/lint-changed
npm script to run lint only on changed files
2015-06-16 11:41:28 -07:00
Paul O’Shannessy 9fb423af8d npm script to run lint only on changed files 2015-06-16 11:24:02 -07:00
Ben Alpert a841cb0384 Merge pull request #4145 from RReverser/patch-1
Update 2015-06-12-deprecating-jstransform-and-react-tools.md
2015-06-16 10:57:50 -07:00
Sebastian Markbåge f67ca49b17 Merge pull request #4105 from sebmarkbage/moveismounted
Move isMounted logic into the ReactUpdateQueue
2015-06-16 10:36:04 -07:00
Ingvar Stepanyan deb1803b34 Update 2015-06-12-deprecating-jstransform-and-react-tools.md
Add paragraph about parsing JSX after deprecation of esprima-fb.
2015-06-16 16:18:18 +03:00
Ben Alpert 519a0b92d3 Merge pull request #4137 from spicyj/setpropsinternal
Remove _setPropsInternal
2015-06-15 23:33:14 -07:00
Ben Alpert 1e593219b5 Remove _setPropsInternal
Nothing uses this.
2015-06-15 23:28:27 -07:00
Ben Alpert cd02036103 Merge pull request #4115 from spicyj/dom-hash
Reduce hash lookups for DOM properties
2015-06-15 14:15:55 -07:00
Paul O’Shannessy 4a5414159e Merge pull request #4097 from zpao/react-dom-package
Build react-dom package
2015-06-15 12:04:44 -07:00
Paul O’Shannessy b9a09ab474 Build react-dom package 2015-06-15 11:01:39 -07:00
Paul O’Shannessy 769fd2410f Merge pull request #4103 from marocchino/ko-update
Update Korean transltaion to 19b0f68
2015-06-15 10:56:40 -07:00
Paul O’Shannessy 67f5439348 Merge pull request #4132 from tako-black/translate_why-react_to_japanese
Translate 01-why-react.md to Japanese
2015-06-15 10:51:32 -07:00
Kohei TAKATA 74dc80d3f4 Translate 01-why-react.md to Japanese 2015-06-15 21:30:12 +09:00
Cristovao Verstraeten 29b72f1f89 update script sources to be even with the example file in reactjs/react-tutorial repo ... apply to japanese and korean translation (+2 squashed commit)
Squashed commit:

[4564e55] Ensures we don't need to update this page for every release.

[b0d60f9] update script sources to be even with the example file in reactjs/react-tutorial repo
2015-06-15 13:30:15 +02:00
Paul O’Shannessy f5b58d505f Merge pull request #4128 from prathamesh-sonpatki/more-typos
Fix typos in ReactServerRenderingTransaction.js
2015-06-15 00:32:53 -07:00
Prathamesh Sonpatki daadcf54ba Fix typos in ReactServerRenderingTransaction.js
- There were some more occurrences of typos fixed in
   https://github.com/facebook/react/pull/4123.
2015-06-15 12:42:45 +05:30
Paul O’Shannessy 8a1588a6b3 Merge pull request #4123 from carterchung/patch-1
Corrected spelling in ReactReconcileTransaction.js
2015-06-15 00:03:47 -07:00
Carter Chung 2b0baf9f2a Corrected spelling
ReactReconcileTransaction.js
2015-06-13 18:21:17 -07:00
Ben Alpert 6a6c44433a Merge pull request #4119 from iamdustan/patch-1
s/parse/parser in jstransform deprecation blog post
2015-06-12 21:52:13 -07:00
Ben Alpert 1165613c3a Merge pull request #4114 from spicyj/void-warn
Add owner to void element children warning
2015-06-12 21:41:24 -07:00
Ben Alpert 1375b67d3a Add owner to void element children warning 2015-06-12 21:37:51 -07:00
Dustan Kasten ff7c09b83d s/parse/parser in jstransform deprecation blog post 2015-06-12 23:57:49 -04:00
Ben Alpert 8c7d1b210f Reduce hash lookups for DOM properties 2015-06-12 17:10:26 -07:00
Paul O’Shannessy 84e72523c3 [blog] Deprecate JSTransform & react-tools 2015-06-12 16:45:15 -07:00
Paul O’Shannessy 39c8168d72 Merge pull request #4112 from kevhuang/doc/readme-grammar
Remove extra period
2015-06-12 12:10:12 -07:00
Kevin Huang ba3fb76d4b Remove extra period 2015-06-12 11:29:26 -07:00
Sebastian Markbåge 870e8a6ccc Merge pull request #4091 from sebmarkbage/updatequeuewarning
Make setState in render a warning, not an invariant
2015-06-11 18:41:46 -07:00
Sebastian Markbage d47c3daef6 Move isMounted logic into the ReactUpdateQueue
This is kind of a confusing place for it but it is intimitely tied to the
update life cycle which is what the update queue is about.

This kills some dependencies from isomorphic to the renderer.
2015-06-11 18:39:13 -07:00
Shim Won 7fa0790dc1 Update Korean transltaion to 19b0f68 2015-06-12 10:24:07 +09:00
Benjamin Woodruff 98f79089b4 Merge pull request #4102 from tomarak/patch-1
Fixed grammar in CLA section of contribution guide
2015-06-11 17:57:32 -07:00
Anuj Tomar 51de35597c Fixed grammar in CLA section of contribution guide
took out quotation marks from CLA header as per MLA standards
2015-06-11 17:49:46 -07:00
Ben Alpert 19b0f68270 Merge pull request #4098 from spicyj/grunt
Inline requires in Gruntfile
2015-06-11 15:14:09 -07:00
Ben Alpert e658ddedb0 Inline requires in Gruntfile
I think this makes it quite a bit easier to understand.
2015-06-11 15:00:30 -07:00
Paul O’Shannessy 917accb480 Merge pull request #4095 from zpao/update-jest
Update jest to latest
2015-06-11 11:07:20 -07:00
Paul O’Shannessy 93cb6c4588 Update jest to latest 2015-06-11 11:01:00 -07:00
Paul O’Shannessy 351d4c41e6 Merge pull request #4058 from yiminghe/className_contains
fix className check in scryRenderedDOMComponentsWithClass when encounter new line
2015-06-11 09:37:09 -07:00
Paul O’Shannessy 6806c20620 [lint] Ignore generated docs 2015-06-11 09:27:05 -07:00
yiminghe db1416dd68 update code style 2015-06-11 23:26:09 +08:00
yiminghe 855a85dff3 update code style 2015-06-11 23:21:52 +08:00
Sebastian Markbage ee5c28497e Make setState in render a warning, not an invariant
We keep track of the fact that something is rendering for a bunch of
warnings. (ReactCurrentOwner.current !== null)

Once we get rid of owner for string refs, I'll convert those to something
like "isRendering" instead. The interesting part is that feature `__DEV__`
only. It is only used for warnings. Except for this case.

This means that we can get rid of the special case for the isRendering
stack on in prod.
2015-06-10 18:33:59 -07:00
Sebastian Markbåge 2f82f9bd87 Merge pull request #4090 from sebmarkbage/fixdomcomponentest
Use the public render API in ReactDOMComponent-test
2015-06-10 17:57:33 -07:00
Sebastian Markbage 08f887dfc9 Use the public render API in ReactDOMComponent-test
Avoids testing a non-public API. First step towards refactoring more of
these internals to not be instances. Also gets rid of an _owner usage.
2015-06-10 17:34:56 -07:00
Paul O’Shannessy 6bc4a6d249 Merge pull request #4088 from zpao/fix-class-test
Fix Class tests
2015-06-10 17:19:40 -07:00