You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✅ Checkpoint 3.1: Update ReactOnRails.client.ts
- Replaced pro registry imports with core registry imports
- Updated ComponentRegistry and StoreRegistry imports to use new core modules
- Replaced pro ClientSideRenderer with core ClientRenderer
- Updated reactOnRailsComponentLoaded to return Promise for API compatibility
- Added error stubs for pro-only methods (reactOnRailsStoreLoaded)
✅ Checkpoint 3.2: Update other core files
- Updated serverRenderReactComponent.ts to use globalThis.ReactOnRails.getComponent()
- Removed pro directory imports from ReactOnRails.node.ts
- Added error stubs for streamServerRenderedReactComponent pro functionality
- Ensured no remaining imports from ./pro/ directories in core files
✅ Checkpoint 3.3: Test core package independence
- Core package builds successfully with yarn build
- Tests run with expected failures for pro-only features (proving separation works)
- Pro methods throw appropriate error messages directing users to upgrade
- Core functionality works independently of pro features
The core package now uses its own simple registries and provides clear error
messages for pro-only functionality, successfully achieving architectural
separation between MIT and Pro licensed code.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments