Skip to content

Commit e3f0279

Browse files
committed
fix tests; update CHANGELOG
1 parent 54a9286 commit e3f0279

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Please follow the recommendations outlined at [keepachangelog.com](http://keepac
1919
Changes since the last non-beta release.
2020

2121
#### Fixed
22+
- Reduced bundle size [PR 1697](https://github.com/shakacode/react_on_rails/pull/1697) by [Romex91](https://github.com/Romex91)
23+
- Migrated from CJS to ESM for more compact modules (~1KB improvement)
24+
- Split exports to 'react-on-rails/server' and 'react-on-rails/client' to avoid shipping React server-rendering to browsers (~14KB improvement).
2225
- Fix obscure errors by introducing FULL_TEXT_ERRORS [PR 1695](https://github.com/shakacode/react_on_rails/pull/1695) by [Romex91](https://github.com/Romex91).
2326

2427
### [14.1.1] - 2025-01-15

lib/generators/react_on_rails/templates/base/base/app/javascript/packs/server-bundle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ReactOnRails from 'react-on-rails';
1+
import ReactOnRails from 'react-on-rails/server';
22

33
import HelloWorld from '../bundles/HelloWorld/components/HelloWorldServer';
44

node_package/tests/Authenticity.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ReactOnRails from '../src/ReactOnRails';
1+
import ReactOnRails from '../src/ReactOnRails.client';
22

33
const testToken = 'TEST_CSRF_TOKEN';
44

node_package/tests/ReactOnRails.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import { createStore } from 'redux';
77
import React from 'react';
88
import createReactClass from 'create-react-class';
9-
import ReactOnRails from '../src/ReactOnRails';
9+
import ReactOnRails from '../src/ReactOnRails.client';
1010

1111
describe('ReactOnRails', () => {
1212
expect.assertions(14);

0 commit comments

Comments
 (0)