Skip to content

Commit 861572b

Browse files
committed
1.7.1
1 parent 8e8c520 commit 861572b

File tree

4 files changed

+15
-29
lines changed

4 files changed

+15
-29
lines changed

CHANGELOG.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,25 @@
88

99
#### Bug Fixes
1010

11-
## 1.7.0 (April 29, 2016)
11+
## 1.7.1 (May 10, 2016)
1212

13-
#### Breaking Changes
13+
#### New Features
14+
15+
- Update to React 15.0.2 #525
16+
17+
#### Bug Fixes
18+
19+
- Update `.to_prepare` for Rails 5 #526
20+
- Use `register_engine` with Sprockets 3 to avoid compiling _all_ files #522
21+
22+
## 1.7.0 (April 29, 2016)
1423

1524
#### New Features
1625

1726
- Update to React 15.0.1 #512
1827
- Support PJAX #518
1928
- Static renders don't include `data-react-` attributes #497
2029

21-
#### Deprecation
22-
2330
#### Bug Fixes
2431

2532
- Better unmounting on Turbolinks 5 #521

README.md

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Just getting started with React? Make sure to check out the [Getting Started] (h
2626
Add `react-rails` to your gemfile:
2727

2828
```ruby
29-
gem 'react-rails', '~> 1.7.0'
29+
gem 'react-rails'
3030
```
3131

3232
And install:
@@ -90,17 +90,6 @@ See [VERSIONS.md](https://github.com/reactjs/react-rails/blob/master/VERSIONS.md
9090

9191
After installing `react-rails`, restart your server. Now, `.js.jsx` files will be transformed in the asset pipeline.
9292

93-
`react-rails` currently ships with two transformers, to convert jsx code -
94-
95-
* `BabelTransformer` using [Babel](http://babeljs.io), which is the default transformer.
96-
* `JSXTransformer` using `JSXTransformer.js`
97-
98-
You can use the deprecated `JSXTransformer` by setting it in an application config:
99-
100-
```ruby
101-
config.react.jsx_transformer_class = React::JSX::JSXTransformer
102-
```
103-
10493
#### BabelTransformer options
10594

10695
You can use babel's [transformers](http://babeljs.io/docs/advanced/transformers/) and [custom plugins](http://babeljs.io/docs/advanced/plugins/),
@@ -115,18 +104,6 @@ config.react.jsx_transform_options = {
115104
```
116105
Under the hood, `react-rails` uses [ruby-babel-transpiler](https://github.com/babel/ruby-babel-transpiler), for transformation.
117106

118-
#### JSXTransformer options
119-
120-
You can use JSX `--harmony` or `--strip-types` options by adding a configuration:
121-
122-
```ruby
123-
config.react.jsx_transform_options = {
124-
harmony: true,
125-
strip_types: true, # for removing Flow type annotations
126-
asset_path: "path/to/JSXTransformer.js", # if your JSXTransformer is somewhere else
127-
}
128-
```
129-
130107
### Rendering & mounting
131108

132109
`react-rails` includes a view helper (`react_component`) and an unobtrusive JavaScript driver (`react_ujs`)
@@ -148,6 +125,7 @@ If Turbolinks is present components are mounted on the `page:change` event, and
148125
__Turbolinks >= 2.4.0__ is recommended because it exposes better events.
149126

150127
In case of __Ajax calls__, the UJS mounting can be triggered manually by calling from javascript:
128+
151129
```javascript
152130
ReactRailsUJS.mountComponents()
153131
```

VERSIONS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ You can control what version of React.js (and JSXTransformer) is used by `react-
1010
| Gem | React.js |
1111
|----------|----------|
1212
| master | 15.0.2 |
13+
| 1.7.1 | 15.0.2 |
1314
| 1.7.0 | 15.0.1 |
1415
| 1.6.2 | 0.14.6 |
1516
| 1.6.1 | 0.14.6 |

lib/react/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module React
22
module Rails
33
# If you change this, make sure to update VERSIONS.md
44
# And the version hint in README.md, if needed
5-
VERSION = '1.7.0'
5+
VERSION = '1.7.1'
66
end
77
end

0 commit comments

Comments
 (0)