Skip to content

Commit ae17ce5

Browse files
committed
Merge branch '15-stable' into 15-dev
2 parents e5efe5f + 8794c51 commit ae17ce5

File tree

294 files changed

+2305
-1304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

294 files changed

+2305
-1304
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2+
sudo: required
3+
dist: trusty
24
language: node_js
35
node_js:
46
- 4
5-
sudo: false
7+
rvm:
8+
- 2.2.3
69
cache:
710
directories:
811
- docs/vendor/bundle

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
## 15.3.0 (July 29, 2016)
2+
3+
### React
4+
- Add `React.PureComponent` - a new base class to extend, replacing `react-addons-pure-render-mixin` now that mixins don't work with ES2015 classes. ([@spicyj](https://github.com/spicyj) in [#7195](https://github.com/facebook/react/pull/7195))
5+
- Add new warning when modifying `this.props.children`. ([@jimfb](https://github.com/jimfb) in [#7001](https://github.com/facebook/react/pull/7001))
6+
- Fixed issue with ref resolution order. ([@gaearon](https://github.com/gaearon) in [#7101](https://github.com/facebook/react/pull/7101))
7+
- Warn when mixin is undefined. ([@swaroopsm](https://github.com/swaroopsm) in [#6158](https://github.com/facebook/react/pull/6158))
8+
- Downgrade "unexpected batch number" invariant to a warning. ([@spicyj](https://github.com/spicyj) in [#7133](https://github.com/facebook/react/pull/7133))
9+
- Validate arguments to `oneOf` and `oneOfType` PropTypes sooner. ([@troydemonbreun](https://github.com/troydemonbreun) in [#6316](https://github.com/facebook/react/pull/6316))
10+
- Warn when calling PropTypes directly. ([@Aweary](https://github.com/Aweary) in [#7132](https://github.com/facebook/react/pull/7132), [#7194](https://github.com/facebook/react/pull/7194))
11+
- Improve warning when using Maps as children. ([@keyanzhang](https://github.com/keyanzhang) in [#7260](https://github.com/facebook/react/pull/7260))
12+
- Add additional type information to the `PropTypes.element` warning. ([@alexzherdev](https://github.com/alexzherdev) in [#7319](https://github.com/facebook/react/pull/7319))
13+
- Improve component identification in no-op `setState` warning. ([@keyanzhang](https://github.com/keyanzhang) in [#7326](https://github.com/facebook/react/pull/7326))
14+
15+
### React DOM
16+
- Fix issue with nested server rendering. ([@Aweary](https://github.com/Aweary) in [#7033](https://github.com/facebook/react/pull/7033))
17+
- Add `xmlns`, `xmlnsXlink` to supported SVG attributes. ([@salzhrani](https://github.com/salzhrani) in [#6471](https://github.com/facebook/react/pull/6471))
18+
- Add `referrerPolicy` to supported HTML attributes. ([@Aweary](https://github.com/Aweary) in [#7274](https://github.com/facebook/react/pull/7274))
19+
- Fix issue resulting in `<input type="range">` initial value being rounded. ([@troydemonbreun](https://github.com/troydemonbreun) in [#7251](https://github.com/facebook/react/pull/7251))
20+
21+
### React Test Renderer
22+
- Initial public release of package allowing more focused testing. Install with `npm install react-test-renderer`. ([@spicyj](https://github.com/spicyj) in [#6944](https://github.com/facebook/react/pull/6944), [#7258](https://github.com/facebook/react/pull/7258), [@iamdustan](https://github.com/iamdustan) in [#7362](https://github.com/facebook/react/pull/7362))
23+
24+
### React Perf Add-on
25+
- Fix issue resulting in excessive warnings when encountering an internal measurement error. ([@sassanh](https://github.com/sassanh) in [#7299](https://github.com/facebook/react/pull/7299))
26+
27+
### React TestUtils Add-on
28+
- Implement `type` property on for events created via `TestUtils.Simulate.*`. ([@yaycmyk](https://github.com/yaycmyk) in [#6154](https://github.com/facebook/react/pull/6154))
29+
- Fix crash when running TestUtils with the production build of React. ([@gaearon](https://github.com/gaearon) in [#7246](https://github.com/facebook/react/pull/7246))
30+
31+
132
## 15.2.1 (July 8, 2016)
233

334
### React

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ You'll notice that we used an HTML-like syntax; [we call it JSX](https://faceboo
3131

3232
## Installation
3333

34-
The fastest way to get started is to serve JavaScript from the CDN (also available on [cdnjs](https://cdnjs.com/libraries/react) and [jsdelivr](https://www.jsdelivr.com/projects/react)):
34+
The fastest way to get started is to serve JavaScript from a CDN. We're using [npmcdn](https://npmcdn.com/) below but React is also available on [cdnjs](https://cdnjs.com/libraries/react) and [jsdelivr](https://www.jsdelivr.com/projects/react):
3535

3636
```html
3737
<!-- The core React library -->
38-
<script src="https://fb.me/react-15.2.1.js"></script>
38+
<script src="https://npmcdn.com/react@15.3.0/dist/react.js"></script>
3939
<!-- The ReactDOM Library -->
40-
<script src="https://fb.me/react-dom-15.2.1.js"></script>
40+
<script src="https://npmcdn.com/react-dom@15.3.0/dist/react-dom.js"></script>
4141
```
4242

43-
We've also built a [starter kit](https://facebook.github.io/react/downloads/react-15.2.1.zip) which might be useful if this is your first time using React. It includes a webpage with an example of using React with live code.
43+
We've also built a [starter kit](https://facebook.github.io/react/downloads/react-15.3.0.zip) which might be useful if this is your first time using React. It includes a webpage with an example of using React with live code.
4444

4545
If you'd like to use [bower](http://bower.io), it's as easy as:
4646

docs/404.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: single
33
title: Page Not Found
4+
permalink: 404.html
45
---
56

67
We couldn't find what you were looking for.

docs/Gemfile

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ source 'https://rubygems.org'
33
gem 'rake'
44

55
# jekyll, which builds it all
6-
# 2.0 includes sass processing
7-
gem 'jekyll', '~>2.0'
6+
# 3.0 includes sass processing
7+
gem 'jekyll', '~>3.1'
88

9-
# Auto redirect pages
9+
# Jekyll extensions
1010
gem 'jekyll-redirect-from'
11+
gem 'jekyll-paginate'
1112

1213
# JSON
1314
gem 'json'
@@ -17,3 +18,12 @@ gem 'rb-fsevent'
1718

1819
# For markdown header cleanup
1920
gem 'sanitize', '~>2.0'
21+
22+
# Markdown
23+
gem 'redcarpet'
24+
25+
# Syntax highlighting
26+
gem 'pygments.rb'
27+
28+
# Avoid having to poll for changes on Windows
29+
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

docs/Gemfile.lock

Lines changed: 45 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,70 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
blankslate (2.1.2.4)
5-
celluloid (0.15.2)
6-
timers (~> 1.1.0)
7-
classifier (1.3.4)
8-
fast-stemmer (>= 1.0.0)
9-
coffee-script (2.3.0)
10-
coffee-script-source
11-
execjs
12-
coffee-script-source (1.7.1)
134
colorator (0.1)
14-
execjs (2.2.1)
15-
fast-stemmer (1.0.2)
16-
ffi (1.9.3)
17-
jekyll (2.2.0)
18-
classifier (~> 1.3)
5+
ffi (1.9.14)
6+
ffi (1.9.14-x64-mingw32)
7+
jekyll (3.1.6)
198
colorator (~> 0.1)
20-
jekyll-coffeescript (~> 1.0)
21-
jekyll-gist (~> 1.0)
22-
jekyll-paginate (~> 1.0)
239
jekyll-sass-converter (~> 1.0)
24-
jekyll-watch (~> 1.0)
10+
jekyll-watch (~> 1.1)
2511
kramdown (~> 1.3)
26-
liquid (~> 2.6.1)
12+
liquid (~> 3.0)
2713
mercenary (~> 0.3.3)
28-
pygments.rb (~> 0.6.0)
29-
redcarpet (~> 3.1)
14+
rouge (~> 1.7)
3015
safe_yaml (~> 1.0)
31-
toml (~> 0.1.0)
32-
jekyll-coffeescript (1.0.0)
33-
coffee-script (~> 2.2)
34-
jekyll-gist (1.1.0)
35-
jekyll-paginate (1.0.0)
36-
jekyll-redirect-from (0.5.0)
37-
jekyll (~> 2.0)
38-
jekyll-sass-converter (1.2.0)
39-
sass (~> 3.2)
40-
jekyll-watch (1.1.0)
41-
listen (~> 2.7)
42-
json (1.8.1)
43-
kramdown (1.4.1)
44-
liquid (2.6.1)
45-
listen (2.7.9)
46-
celluloid (>= 0.15.2)
47-
rb-fsevent (>= 0.9.3)
48-
rb-inotify (>= 0.9)
49-
mercenary (0.3.4)
50-
mini_portile (0.6.0)
51-
nokogiri (1.6.3.1)
52-
mini_portile (= 0.6.0)
53-
parslet (1.5.0)
54-
blankslate (~> 2.0)
55-
posix-spawn (0.3.9)
56-
pygments.rb (0.6.0)
16+
jekyll-paginate (1.1.0)
17+
jekyll-redirect-from (0.11.0)
18+
jekyll (>= 2.0)
19+
jekyll-sass-converter (1.4.0)
20+
sass (~> 3.4)
21+
jekyll-watch (1.4.0)
22+
listen (~> 3.0, < 3.1)
23+
json (2.0.1)
24+
kramdown (1.11.1)
25+
liquid (3.0.6)
26+
listen (3.0.8)
27+
rb-fsevent (~> 0.9, >= 0.9.4)
28+
rb-inotify (~> 0.9, >= 0.9.7)
29+
mercenary (0.3.6)
30+
mini_portile2 (2.1.0)
31+
nokogiri (1.6.8)
32+
mini_portile2 (~> 2.1.0)
33+
pkg-config (~> 1.1.7)
34+
nokogiri (1.6.8-x64-mingw32)
35+
mini_portile2 (~> 2.1.0)
36+
pkg-config (~> 1.1.7)
37+
pkg-config (1.1.7)
38+
posix-spawn (0.3.11)
39+
pygments.rb (0.6.3)
5740
posix-spawn (~> 0.3.6)
58-
yajl-ruby (~> 1.1.0)
59-
rake (10.3.2)
60-
rb-fsevent (0.9.4)
61-
rb-inotify (0.9.5)
41+
yajl-ruby (~> 1.2.0)
42+
rake (11.2.2)
43+
rb-fsevent (0.9.7)
44+
rb-inotify (0.9.7)
6245
ffi (>= 0.5.0)
63-
redcarpet (3.1.2)
46+
redcarpet (3.3.4)
47+
rouge (1.11.1)
6448
safe_yaml (1.0.4)
65-
sanitize (2.0.6)
49+
sanitize (2.1.0)
6650
nokogiri (>= 1.4.4)
67-
sass (3.3.14)
68-
timers (1.1.0)
69-
toml (0.1.1)
70-
parslet (~> 1.5.0)
71-
yajl-ruby (1.1.0)
51+
sass (3.4.22)
52+
yajl-ruby (1.2.1)
7253

7354
PLATFORMS
7455
ruby
56+
x64-mingw32
7557

7658
DEPENDENCIES
77-
jekyll (~> 2.0)
59+
jekyll (~> 3.1)
60+
jekyll-paginate
7861
jekyll-redirect-from
7962
json
63+
pygments.rb
8064
rake
8165
rb-fsevent
66+
redcarpet
8267
sanitize (~> 2.0)
8368

8469
BUNDLED WITH
85-
1.10.1
70+
1.11.2

docs/_config.yml

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,37 @@ url: https://facebook.github.io
55
baseurl: "/react"
66
permalink: "/blog/:year/:month/:day/:title.html"
77
paginate_path: "/blog/page:num/"
8-
relative_permalinks: true
98
paginate: 5
109
timezone: America/Los_Angeles
1110
highlighter: pygments
1211
defaults:
1312
- scope:
1413
path: ''
15-
type: post
14+
type: posts
1615
values:
1716
layout: post
17+
sectionid: blog
18+
- scope:
19+
path: blog
20+
type: pages
21+
values:
22+
sectionid: blog
1823
- scope:
1924
path: docs
20-
type: page
25+
type: pages
2126
values:
2227
layout: docs
28+
sectionid: docs
29+
- scope:
30+
path: tips
31+
type: pages
32+
values:
33+
sectionid: docs
34+
- scope:
35+
path: contributing
36+
type: pages
37+
values:
38+
sectionid: docs
2339
exclude:
2440
- Gemfile
2541
- Gemfile.lock
@@ -36,13 +52,14 @@ sass:
3652
sass_dir: _css
3753
gems:
3854
- jekyll-redirect-from
39-
react_version: 15.2.1
55+
- jekyll-paginate
56+
react_version: 15.3.0
4057
react_hashes:
41-
dev: g2900ZIpFKhyIsz+bnx4YDEfAISugYRU58ljeAgI8TZ0A0AkRLGUCN7OmjF16Cj+
42-
prod: ICzDcvbNpMy31akJ8WzksHoK9tl1iRIUPRCaBRN+sn/k40TNGjs9IvgPN0SekkDT
43-
addons_dev: js+Yc2Nd259A4+UPokRNVOXJdipY9oIrkkDdFJAZzZxgryRJLkWYDrJVgM97aweF
44-
addons_prod: DaNE8gIDQr8RWDoa4y9HX/70fzdOBzpV/e+7RJtMN1MnXEiCMpiIFtutJml6mvPC
45-
dom_dev: LD1cH7LXOdrrq5dOOiE2N/HdgCyrw3nmUMq6oPFCJKUfWO3i7AozvBKz7G3maMHt
46-
dom_prod: 1dLXeik7kFcDPXbz3rX9dibLTGh/D8dpAOL5X2Ml09pH8wpQlpL+JOgOnzAMCO4T
47-
dom_server_dev: WJt1y2JljJEQ1OgpupP2ly0GgIwi7Aodp+n+/fv2bakpgWpXMnLklj5rSouRJt59
48-
dom_server_prod: Y6UDASOvQhWWBwXy/Ccp4vSAt0YAp+ymuRXBX4hffy+pMlOgjXzryIjbiceIB6GF
58+
dev: R8v794QN9hrNjnivoQ3Mf7nMGVwFIHBkUmBanB40ZBIMttZbBEUatXNosjytvPUC
59+
prod: asiNTW+3f/iCKtm+05EX+4V4n6R5R1fyAY9M8Md0DLHodFResXMSBlt8ns9iJaPK
60+
addons_dev: iR3HmJX+5siYwRvy6ZXWWN/dNP4IuItUsfk0JJmwxaBIYtWHZhK/2N7wrAcxmpS8
61+
addons_prod: A/63GcxBS05SAxTWB0+wQKyQl8RVEH3nOuBuxwg/WV6yI5qpfEy4ksn90bqJdFJY
62+
dom_dev: PKr8yTHUBD0chzmoJ6ZYtB1nB87GTEWPmuDlDV7iARDrYGki2fmVB0ae3vf3LX0O
63+
dom_prod: TBEslZF7tpwiuBgt/ajgWUKvDGuCExkmEoWygscHE/OOajWS24BLAaf2/z7lj/9n
64+
dom_server_dev: UxEqwIE5+BLQKOqKHnPfJBOrSDo7HyocIl6sTb6taLayrVmDuhQ5VM4iauS54BbK
65+
dom_server_prod: hOLRkO2HGPRi0d73qKZWueHZyDD/6BID0CJax9kNUNaAvMR4atbNIcYfk2BoM8T3

docs/_data/nav_contributing.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- title: Contributing
2+
items:
3+
- id: design-principles
4+
title: Design Principles

docs/_includes/nav_docs.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,18 @@ <h3>{{ section.title }}</h3>
3535
</ul>
3636
</div>
3737
{% endfor %}
38+
39+
<!-- Contributing Nav -->
40+
{% for section in site.data.nav_contributing %}
41+
<div class="nav-docs-section">
42+
<h3>{{ section.title }}</h3>
43+
<ul>
44+
{% for item in section.items %}
45+
<li>
46+
<a href="/react/contributing/{{ item.id }}.html"{% if page.id == item.id %} class="active"{% endif %}>{{ item.title }}</a>
47+
</li>
48+
{% endfor %}
49+
</ul>
50+
</div>
51+
{% endfor %}
3852
</div>

docs/_layouts/contributing.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
layout: default
3+
sectionid: contributing
4+
---
5+
6+
<section class="content wrap documentationContent">
7+
{% include nav_docs.html %}
8+
9+
<div class="inner-content">
10+
<h1>{{ page.title }}</h1>
11+
<div class="subHeader">{{ page.description }}</div>
12+
{{ content }}
13+
14+
<div class="docs-prevnext">
15+
{% if page.prev %}
16+
<a class="docs-prev" href="/react/contributing/{{ page.prev }}">&larr; Prev</a>
17+
{% endif %}
18+
{% if page.next %}
19+
<a class="docs-next" href="/react/contributing/{{ page.next }}">Next &rarr;</a>
20+
{% endif %}
21+
</div>
22+
</div>
23+
</section>

0 commit comments

Comments
 (0)