UNPKG

9.91 kBMarkdownView Raw
1# react-rails
2
3#### Breaking Changes
4
5#### New Features
6
7#### Deprecation
8
9#### Bug Fixes
10
11## 2.3.1
12
13#### Breaking Changes
14
15- React Deprecations for 15.4, 15.5, 15.6 in preparation for 16 handled in prebundled version
16
17#### New Features
18
19- Generator now makes modern style `createReactClass`(JS) or `extends React.Component`(ES6, CoffeeScript) code
20
21#### Deprecation
22
23- Next version will drop the addons option as they are not supported with React 16
24- TheRubyRacer's newest version (0.12.3 at time of writing) only supports libV8 (3.16.14.15) which is too old for some new JS features, future versions of this gem will need more modern ExecJS runtimes such as mini_racer (currently on libV8 5.9.x)
25
26#### Bug Fixes
27
28## 2.3.0
29
30#### New Features
31
32- Webpacker and Webpack 3 support #777
33- Update to React 15.6.2 #789
34
35#### Deprecation
36
37#### Bug Fixes
38
39## 2.2.1
40
41#### New Features
42
43- Support `config.react.server_renderer_directories` in initializers #729
44
45#### Bug Fixes
46
47- Fix Railtie watcher to update its timestamp when files change #722
48- Don't use `yarn` binstub because webpacker doesn't provide it anymore #717
49
50## 2.2.0
51
52#### New Features
53
54- Improve error handling when components aren't found #704
55
56#### Bug Fixes
57
58- Camelize filename when generating for webpack #703
59- Include node module boilerplate when generating for webpack #710
60- Don't look for non-existent `Turbolinks.EVENTS` #708
61
62## 2.1.0 (April 18, 2017)
63
64#### New Features
65
66- Support Rails 5.1 #697
67
68#### Bug Fixes
69
70- Fix UJS unmounting by selector #696
71
72## 2.0.2 (April 13, 2017)
73
74#### New Features
75
76- Rerun events detection at any time with `ReactRailsUJS.detectEvents()` #693
77- Make the NPM version of `react_ujs` match the Rubygem version
78
79`2.0.1` was skipped because a bad version of `react_ujs` was published to NPM.
80
81## 2.0.0 (April 13, 2017)
82
83#### Breaking Changes
84
85- Server rendering loads `server_rendering.js` by default #471 . Upgrade by adding a new file which requires the previous defaults:
86
87 ```js
88 // app/assets/javascripts/server_rendering.js
89 // = require react-server
90 // = require components
91 ```
92
93
94#### New Features
95
96- Webpacker support:
97 - `react_component` can find components via `require.context` + `ReactRailsUJS.useContext` #678
98 - Server rendering detects Webpacker and uses packs #683, #687
99 - `ReactRailsUJS` is available from `npm` with `yarn add react_ujs` or `npm install react_ujs` #678
100- `per_request_react_rails_prerenderer` Allows you to check out a renderer for the _whole request_ instead of once-per-`react_component` #559
101
102#### Bug Fixes
103
104- Improved watching of server-rendering JS files #687
105- Fix console replay:
106 - Put the `<script>` tag outside the React.js container to avoid React warnings #691
107 - Clear console history between renders #692
108- Use better Turbolinks events #690
109
110## 1.11.0 (April 4, 2017)
111
112#### New Features
113
114- Support `prerender: false` when rendering in a controller #680
115- Update React to `15.4.2` #681
116
117#### Bug Fixes
118
119- Fix joining asset path in YamlManifestContainer #679
120- Remove `coffee-script-source` from dependencies. #667 If you have a version conflict, you should specify the proper version yourself.
121
122## 1.10.0 (October 6, 2016)
123
124#### Breaking Changes
125
126- Alias `window = this;` has been removed from the default server rendering JavaScript to improve detection of the server rendering environment. To get the old behavior, you can add the alias in your own server rendering code. #615
127
128#### New Features
129
130- Calling `setTimeout` or `clearTimeout` in server rendering will raise an informative error because they aren't supported #618
131- `prerender:` options will be passed to server renderer methods #641
132- `react_component(..., camelize_props:)` option will override the application default #642, #645
133- Ship with React.js 15.4.1 #646
134
135#### Deprecation
136
137#### Bug Fixes
138
139- use `['default']` accessor to support old JavaScript versions #619
140- `react_component` with a block will correctly render the content inside the `div`
141
142## 1.9.0 (October 6, 2016)
143
144#### Breaking Changes
145
146#### New Features
147
148- Accept extra JS code in `code:` option for SprocketsRenderer #604
149
150#### Bug Fixes
151
152- Use `asset_prefix` for YamlContainer #598
153- Fix requiring `.js` from `.es6.jsx` #591
154
155## 1.8.2 (August 9, 2016)
156
157#### New Features
158
159- Update to React 15.3.0 #583
160
161#### Bug Fixes
162
163- Fix `//= require` on Sprockets 3.7+ #582
164
165## 1.8.1 (July 29, 2016)
166
167#### New Features
168
169- Update to React 15.2.1 #569
170
171#### Bug Fixes
172
173- Fix deprecation warnings on Sprockets 3.7+ #574
174- Stop building broken addons files #576
175
176## 1.8.0 (June 29, 2016)
177
178#### New Features
179
180- Sprockets 4 Support 🎉 #560
181- Depend on Railties, not Rails #558
182- Don't depend on `sprockets/railtie` #558
183- Expose `React.camelize_props(props_hash)` #556
184- Add `rails generate react:ujs --output=...` for copying the UJS into your app #557
185- Support Babel 6 module exports & extension point `ReactRailsUJS.getConstructor` #503
186
187## 1.7.2 (June 19, 2016)
188
189#### New Features
190
191- Improved error messages for missing components #538
192
193#### Bug Fixes
194
195- Fix `view_helper_implementation` config #551
196- Fallback to `EnvironmentContainer` for server rendering when manifest isn't available #545
197
198## 1.7.1 (May 10, 2016)
199
200#### New Features
201
202- Update to React 15.0.2 #525
203
204#### Bug Fixes
205
206- Update `.to_prepare` for Rails 5 #526
207- Use `register_engine` with Sprockets 3 to avoid compiling _all_ files #522
208
209## 1.7.0 (April 29, 2016)
210
211#### New Features
212
213- Update to React 15.0.1 #512
214- Support PJAX #518
215- Static renders don't include `data-react-` attributes #497
216
217#### Bug Fixes
218
219- Better unmounting on Turbolinks 5 #521
220- Fix console replay #496
221
222## 1.6.2 (February 28, 2016)
223
224#### Bug Fixes
225
226- Fix Server Rendering for Rails 3.2 #487
227
228## 1.6.1 (February 28, 2016)
229
230#### New Features
231
232- UJS can mount and unmount a component by ID (not only the component's children) #466
233- Support Turbolinks 5 #475
234
235#### Bug Fixes
236
237- Support nested arrays with `camelize_props` #480
238- Improve Sprockets 3 compatibility #453
239- Fix install-generator `require` spacing #476
240
241## 1.6.0 (February 4, 2016)
242
243#### New Features
244
245- Individual add-ons can be included in a bundle with sprockets require directives. #457
246- Support `sprockets-rails` 3 #430
247- Update to React 0.14.6
248
249#### Bug Fixes
250
251- Fix install generator when `//= require`s are malformed #463
252- Use `before_action` if available #456
253- Add CHANGELOG to gem bundle #471
254- Use `window.attachEvent` to support IE8 without jQuery 😬#446
255
256## 1.5.0 (November 25, 2015)
257
258#### New Features
259
260- Update to React 0.14.3 #412
261- `config.react.camelize_props = true` will camelize `react_component` prop keys #409
262
263#### Bug Fixes
264
265- Fix chained `.es6` file names with JSX processor #411
266- Don't insert `// =require`s multiple times #398
267
268## 1.4.2 (November 5, 2015)
269
270#### New Features
271
272- Component generator `--coffee` option #387
273- Support Sprockets 4 with a JSX processor #385
274
275#### Bug Fixes
276
277- Support custom attributes when rendering from controller #384
278
279## 1.4.1 (October 23, 2015)
280
281#### Bug Fixes
282
283- Minify & optimize the production build of React.js #380
284
285## 1.4.0 (October 22, 2015)
286
287#### New Features
288
289- Include React.js 0.14
290
291## 1.3.3 (October 21, 2015)
292
293#### Bug Fixes
294
295- Also support React 0.14 in `unmountComponents` #372
296- Use a fallback view helper in case a Rails controller wasn't used #375
297
298## 1.3.2 (October 13, 2015)
299
300#### New Features
301
302- The UJS can mount and unmount components within a given DOM node #358
303- Support dropped-in React 0.14 in UJS #366
304
305## 1.3.1 (September 18, 2015)
306
307#### Bug Fixes
308
309- Use controller lifecycle hooks for view helper (tests don't run middlewares) #356
310
311## 1.3.0 (September 15, 2015)
312
313#### New Features
314
315- Render components directly from the controller with `render component: ...` #329
316- Provide a custom view helper with `config.react.view_helper_implementation` #346
317
318#### Bug Fixes
319
320- Allow `react-rails` configs to be set in initializers #347
321
322## 1.2.0 (August 19, 2015)
323
324#### New Features
325
326- Support `--es6` option in component generator #332
327- Support Sprockets 3 #322
328
329#### Bug Fixes
330
331- Don't bother unmounting components `onBeforeUnload` #318
332- Include `React::Rails::VERSION` in the gem #335
333
334## 1.1.0 (July 9, 2015)
335
336#### Breaking Changes
337
338- Changed server rendering configuration names #253
339
340 | Old | New |
341 | ---- | ---- |
342 | `config.react.timeout` | `config.react.server_renderer_timeout` |
343 | `config.react.max_renderers` | `config.react.server_renderer_pool_size` |
344 | `config.react.react_js` | `config.react.server_renderer_options[:files]` |
345 | `config.react.component_filenames` | `config.react.server_renderer_options[:files]` |
346 | `config.react.replay_console` | `config.react.server_renderer_options[:replay_console]` |
347 | (none) | `config.react.server_renderer` |
348
349- JSX is transformed by Babel, not JSTransform #295
350
351#### New Features
352
353- Allow custom renderers for server rendering #253
354- Server render with `renderToStaticMarkup` via `prerender: :static` #253
355- Accept `config.react.jsx_transform_options = {asset_path: "path/to/JSXTransformer.js"}` #273
356- Added `BabelTransformer` for transforming JSX #295
357- Added `ExecJSRenderer` to server rendering tools
358- Accept `config.react.jsx_transformer_class` #302
359
360#### Deprecations
361
362- `JSXTransformer` won't be updated
363
364#### Bug Fixes
365
366- Fix gem versions in tests #270
367- Expire the Sprockets cache if you change React.js builds #257
368- Instead of copying builds into local directires, add different React.js builds to the asset pipeline #254
369- Camelize attribute names in the component generator #262
370- Add `tilt` dependency #248
371- Default prerender pool size to 1 #302
372
373
374## 1.0.0 (April 7, 2015)
375
376#### New Features
377
378- Vendor versions of React.js with `config.variant`, `config.addons` and `//= require react`
379- Component generator
380- View helper and UJS for mounting components
381- Server rendering with `prerender: true`
382- Transform `.jsx` in the asset pipeline
383
\No newline at end of file