Skip to content

Commit bcfa227

Browse files
Update react-on-rails dependency and adjust import paths
- Changed the version of "react-on-rails" in package.json from "16.1.0" to "*" to allow for more flexible versioning. - Removed the specific "react-on-rails" entry from yarn.lock to reflect the updated dependency. - Updated import path in client.tsx to use the local index.ts instead of the external package. These changes enhance compatibility and maintainability of the react-on-rails-pro package.
1 parent 21d0c0b commit bcfa227

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

packages/react-on-rails-pro/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"./ServerComponentFetchError": "./lib/ServerComponentFetchError.js"
4545
},
4646
"dependencies": {
47-
"react-on-rails": "16.1.0"
47+
"react-on-rails": "*"
4848
},
4949
"peerDependencies": {
5050
"react": ">= 16",

packages/react-on-rails-pro/src/registerServerComponent/client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
import * as React from 'react';
16-
import ReactOnRails from 'react-on-rails/ReactOnRails.client';
16+
import ReactOnRails from '../index.ts';
1717
import RSCRoute from '../RSCRoute.tsx';
1818
import { ReactComponentOrRenderFunction } from 'react-on-rails/types';
1919
import wrapServerComponentRenderer from '../wrapServerComponentRenderer/client.tsx';

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5271,11 +5271,6 @@ [email protected]:
52715271
neo-async "^2.6.1"
52725272
webpack-sources "^3.2.0"
52735273

5274-
5275-
version "16.1.0"
5276-
resolved "https://registry.yarnpkg.com/react-on-rails/-/react-on-rails-16.1.0.tgz#1d6a91edf6c5675f22f4449483b604690471a76e"
5277-
integrity sha512-EZbs868+V6gkxY52jeim64oETHSg6ztym5aL9FFBY5uEadb/FaAAoCNrutyObFR/XgzGqmeSKQdW1DvPl8BVyA==
5278-
52795274
react@^19.0.0:
52805275
version "19.0.0"
52815276
resolved "https://registry.npmjs.org/react/-/react-19.0.0.tgz"

0 commit comments

Comments
 (0)