Commit Graph
5233 Commits
Author SHA1 Message Date
Paul O’Shannessy a9e787665d Merge pull request #3413 from zpao/travis
Fix TravisCI fast bail check
2015-03-16 09:28:45 -07:00
xmo-odoo f0c7b0c8ed Link to inserting raw HTML document 2015-03-16 10:51:20 +01:00
Austin Wright 29416f422e Appease eslint 2015-03-14 14:08:18 -07:00
Austin Wright b52bb22342 Move list of newline-eating tags to variable 2015-03-14 13:57:15 -07:00
Austin Wright 030a7b34c7 Add back \n-to-be-eaten for the plain-text elements
The comment hack to enable polyglot HTML isn't cross-browser, or simply doesn't work.
2015-03-14 13:53:12 -07:00
Austin Wright 8e714f9898 Update tests to use Polyglot profile of HTML 2015-03-14 13:53:12 -07:00
Austin Wright e913e85e1a Use a Polyglot HTML-safe method of escaping leading newline in rawtext elements 2015-03-14 13:53:12 -07:00
Austin Wright 8bc828aa7c Generate XML-compatible tags and boolean attributes 2015-03-14 13:53:12 -07:00
Ben Alpert 98671fda1a Fix up Perf a bit better for 0.13
_mountImageIntoNode moved into ReactMount and wasn't being counted where it was supposed to be. In addition, all DOM elements are now wrapped in a composite wrapper but for the perf tools we want to skip over those or else we'll double-count (at least with the current accounting -- and that's effectively what we did before so this brings us back up to parity).

Fixes #3407.

Test Plan:
Used the jsbin from #3407 and saw similar output from this branch and 0.12:

![image](https://cloud.githubusercontent.com/assets/6820/6649816/4d7202e0-c9b2-11e4-9364-e1b50c96b55b.png)
2015-03-13 18:51:53 -07:00
Paul O’Shannessy 08b1515f7f Update TravisCI to use exiting env var
$TRAVIS_COMMIT_RANGE was broken but it seems what we're doing is worse and
resulting in false negatives.

The result of the bad range was that we weren't running lint or tests for
things we should have been. It actually looks like $TRAVIS_COMMIT has been
wrong and it's not clear why this has been working at all.
2015-03-13 18:39:47 -07:00
Paul O’Shannessy 68a2f89cc6 Merge pull request #3402 from vkramskikh/fix-empty-selects-with-value
Fix for empty <select> elements with value
2015-03-13 18:04:57 -07:00
Ben Alpert ed257cb691 Merge pull request #3412 from spicyj/gh-3329
Squash getDOMNode warning from isDOMComponent
2015-03-13 17:55:02 -07:00
Ben Alpert 70985ba68d Squash getDOMNode warning from isDOMComponent
Fixes #3329.
2015-03-13 17:11:02 -07:00
Ben Alpert bcd70ad500 Merge pull request #3410 from robertknight/3409-style-null-to-nonnull
Fix incorrect update of style when props.style transitions from null to non-null
2015-03-13 17:07:01 -07:00
Robert Knight ee86942d77 Fix incorrect update of style when props.style transitions from null to non-null
ReactDOMComponent maintains a copy of the previous style
object to support in-place mutations of props.style.

This cached object was not cleared when the style
property was removed in a props update.

Fixes #3409
2015-03-13 22:16:19 +00:00
Vitaly Kramskikh 2f52d81865 Fix for empty <select> elements with value
There is an exception when value or defaultValue is set but there are no
children as ReactDOMSelect tries to mark the first children as selected
even if there are no children.
2015-03-13 21:48:02 +07:00
Paul O’Shannessy 228c00b813 Merge pull request #3397 from koba04/eslint-ignore-built-files
ESLint ignores built files
2015-03-12 18:25:42 -07:00
Toru Kobayashi ed0e242e07 ESLint ignores built files 2015-03-13 09:58:20 +09:00
Sebastian Markbåge ca8d7cba1b Merge pull request #3355 from cpojer/shallowCompare
Add shallowCompare module and use it in PureRenderMixin + tests
2015-03-12 17:45:22 -07:00
Bartosz Kaszubowski 4b1d7bcec2 toBeDOMComponentWithChildCount readability 2015-03-13 00:15:32 +01:00
Paul O’Shannessy d19636295b Merge pull request #3394 from cody/getDOMNode
Fix in docs: getDOMNode --> findDOMNode
2015-03-12 14:12:23 -07:00
Stefan Dombrowski 84e6a392a3 Fix in docs: getDOMNode --> findDOMNode 2015-03-12 22:07:03 +01:00
Ben Alpert 1f72387a47 Merge pull request #3385 from RichardLitt/patch-2
Nominalized 'shallow copy'
2015-03-11 16:27:26 -07:00
Richard Littauer 00e89454ec Nominalized 'shallow copy'
I mis-parsed 'shallow copies' as adjective noun, instead of as a compound verb. I've adjusted the text to make it easier to parse on the first read, which should also help ESL learners to be able to parse it easier.
2015-03-11 16:22:24 -07:00
Paul O’Shannessy 78001d3abc jsx_orphaned_brackets_transformer v1.0.1 2015-03-11 15:52:54 -07:00
Paul O’Shannessy b459f2ff99 Merge pull request #3384 from syranide/npmjobt
Fix jsx_orphaned_brackets_transformer using jstransformer with an older esprima version
2015-03-11 15:51:38 -07:00
syranide 4485f6a439 Fix jsx_orphaned_brackets_transformer using jstransformer with an older esprima version 2015-03-11 23:48:05 +01:00
Ben Alpert f8672c7270 Fix grammar in warning message 2015-03-11 15:47:04 -07:00
Ben Alpert d9e06462a3 Merge pull request #3383 from ariabuckles/proptype-warnings
[PropTypes] Add warnings if PropTypes return functions
2015-03-11 15:46:17 -07:00
Aria Buckles 206e69c403 [PropTypes] Make invalid proptype warning clearer
Addresses comments on #3383, making the invalid proptype specification
warning clearer and making the tests for it a bit clearer.
2015-03-11 15:36:51 -07:00
Ben Alpert 098f316aff It\ns -> Its 2015-03-11 15:28:24 -07:00
Paul O’Shannessy adf4aee1b4 [docs] it's --> its 2015-03-11 15:25:57 -07:00
Aria Buckles d973e32336 [PropTypes] Add warnings if PropTypes return functions
Summary:
Right now, if a component specifies a propType as, for example,
`myProp: React.PropTypes.shape`, without an actual shape
parameter, any prop type will be accepted, because
`React.PropTypes.shape` returns a function (the actual validator),
not an Error, currently indicating that propType checking passed.

This can create an unfortunate situation where a component looks
like it has fully specified `propTypes`, but in fact does not.

This commit addresses this by warning if a propType checker returns
anything non-falsy that is not an Error (currently all the library
PropTypes return null or an Error).

Test Plan:
Added a unit test; ran `jest` in the root repo directory.
Also ran `grunt lint` and `grunt test`
2015-03-11 15:09:18 -07:00
Paul O’Shannessy c4a2e4d414 Fix module option parsing of jsx command 2015-03-11 14:26:51 -07:00
Jay Jaeho Lee 58f6958128 Revise Korean translation - final 2015-03-12 01:57:44 +09:00
Jim 3d8b47bbcc Merge pull request #3356 from cpojer/findDOMNode
foo.getDOMNode => React.findDOMNode(foo)
2015-03-11 08:47:56 -07:00
Jinwoo Oh dd3734094c Update Translation to 91b4564 2015-03-12 00:37:35 +09:00
Ted Kim 7dfbf73004 ref-08-reconciliation (based on 941cba6) 2015-03-12 00:37:35 +09:00
Jinwoo Oh 7dc818a95a Translate 06 to Korean
- Up to 8326a9f
2015-03-12 00:37:34 +09:00
Shim Won f2fbb31ace Apply review
- Up to 60e96ed
2015-03-12 00:37:02 +09:00
Jinwoo Oh 2bc8a36ab9 Translate 11 to Korean
- Up to 83e4409
2015-03-12 00:37:02 +09:00
Shim Won ec91b4184f Translate 10.1 to Korean
- Up to 678ec31
2015-03-12 00:37:02 +09:00
Seoh Char 4aeb306064 translation of 05-reusable-components-ko-KR.md 2015-03-12 00:37:02 +09:00
Shim Won 87fb9caca7 Update Translation to b95ad29 2015-03-12 00:37:01 +09:00
Shim Won bf6d9811e7 Translate 10.2 to Korean
- Up to b7a548c
2015-03-12 00:36:50 +09:00
Jinwoo Oh 5579a86ac3 Translate 08.1 to Korean
- Up to b7a548c
2015-03-12 00:36:50 +09:00
Shim Won c0ac76d723 Translate 10.7 to Korean
- Up to 0bf88f2
2015-03-12 00:36:50 +09:00
Shim Won c24e5926b9 Translate 10.3 to Korean
- Up to 5ab7fde
2015-03-12 00:36:50 +09:00
Jinwoo Oh 48d2f31a6d Translate conferences to Korean
- Up to 1b86246
2015-03-12 00:36:50 +09:00
Shim Won 8838a6d9f9 Translate 10.5 to Korean
- Up to 60e96ed
2015-03-12 00:36:25 +09:00