Skip to content

rake react:update ujs:update #1172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@

#### Bug Fixes

## 2.6.2

#### New Features

- React 16.14
- Support for ShakaPacker
- Preparation for React 18 #1151

#### Bug Fixes

- URI.open instead of open #1099
- No longer unmount components on Turbolinks navigation #1135

## 2.6.1

#### Breaking Changes
Expand Down Expand Up @@ -112,6 +125,7 @@
- Call ReactDOM.render() when react_component :prerender option is falsy, instead of ReactDOM.hydrate() #844, #842

## 2.4.2

#### Bug Fixes

- ReactDOM.hydrate() may not be defined for everyone, it will now use hydrate if it is defined or fallback to render #832
Expand Down Expand Up @@ -224,7 +238,6 @@
// = require components
```


#### New Features

- Webpacker support:
Expand Down Expand Up @@ -471,14 +484,14 @@

- Changed server rendering configuration names #253

| Old | New |
| ---- | ---- |
| `config.react.timeout` | `config.react.server_renderer_timeout` |
| `config.react.max_renderers` | `config.react.server_renderer_pool_size` |
| `config.react.react_js` | `config.react.server_renderer_options[:files]` |
| `config.react.component_filenames` | `config.react.server_renderer_options[:files]` |
| `config.react.replay_console` | `config.react.server_renderer_options[:replay_console]` |
| (none) | `config.react.server_renderer` |
| Old | New |
| ---------------------------------- | ------------------------------------------------------- |
| `config.react.timeout` | `config.react.server_renderer_timeout` |
| `config.react.max_renderers` | `config.react.server_renderer_pool_size` |
| `config.react.react_js` | `config.react.server_renderer_options[:files]` |
| `config.react.component_filenames` | `config.react.server_renderer_options[:files]` |
| `config.react.replay_console` | `config.react.server_renderer_options[:replay_console]` |
| (none) | `config.react.server_renderer` |

- JSX is transformed by Babel, not JSTransform #295

Expand All @@ -504,7 +517,6 @@
- Add `tilt` dependency #248
- Default prerender pool size to 1 #302


## 1.0.0 (April 7, 2015)

#### New Features
Expand Down
9 changes: 5 additions & 4 deletions VERSIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ You can control what version of React.js (and JSXTransformer) is used by `react-
## Bundled Versions

| Gem | React.js |
|----------|----------|
| master | 16.9.0 |
| -------- | -------- | -------------- |
| master | 16.14.0 |
| 2.6.2 | 16.14.0 |
| 2.6.1 | 16.9.0 |
| 2.6.0 | 16.8.6 |
| 2.5.0 | 16.8.6 |
Expand All @@ -21,7 +22,7 @@ You can control what version of React.js (and JSXTransformer) is used by `react-
| 2.4.2 | 16.1.1 |
| 2.4.1 | 16.0.0 |
| 2.4.0 | 16.0.0 |
| 2.3.1 | 15.6.2 | Updated Addons
| 2.3.1 | 15.6.2 | Updated Addons |
| 2.3.0 | 15.6.2 |
| 2.2.1 | 15.4.2 |
| 2.2.0 | 15.4.2 |
Expand Down Expand Up @@ -58,4 +59,4 @@ You can control what version of React.js (and JSXTransformer) is used by `react-

## Drop-in Version

You can also provide your own copies of React.js and JSXTransformer. Just add a different version of `react.js` and `react-server.js` from this project or `JSXTransformer.js` (case-sensitive) files to the asset pipeline (eg, `app/assets/vendor/`).
You can also provide your own copies of React.js and JSXTransformer. Just add a different version of `react.js` and `react-server.js` from this project or `JSXTransformer.js` (case-sensitive) files to the asset pipeline (eg, `app/assets/vendor/`).
4,256 changes: 1,911 additions & 2,345 deletions lib/assets/react-source/development/react-server.js

Large diffs are not rendered by default.

42,612 changes: 20,900 additions & 21,712 deletions lib/assets/react-source/development/react.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions lib/assets/react-source/production/react-server.js

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions lib/assets/react-source/production/react.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/react/rails/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ module React
module Rails
# If you change this, make sure to update VERSIONS.md
# and republish the UJS by updating package.json and `bundle exec rake ujs:publish`
VERSION = '2.6.1'
VERSION = '2.6.2'
end
end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react_ujs",
"version": "2.6.1",
"version": "2.6.2",
"description": "Rails UJS for the react-rails gem",
"main": "react_ujs/index.js",
"files": [
Expand Down
Loading