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
refactor!: rename Phoenix.React to Phoenix.ReactServer for consistency
BREAKING CHANGE: Main module file renamed from lib/phoenix/react.ex to lib/phoenix/react_server.ex
This is a breaking change that aligns the file structure with the module naming convention.
All Phoenix.React references have been updated to Phoenix.ReactServer throughout the codebase.
Changes:
- Rename lib/phoenix/react.ex to lib/phoenix/react_server.ex
- Rename lib/phoenix/react/ directory to lib/phoenix/react_server/
- Update all module documentation examples
- Fix Phoenix.React.stop_runtime() reference in react_demo application
- Rename all test files from test/phoenix/react/ to test/phoenix/react_server/
- Update configuration references across all config files
Migration guide:
No code changes required for users as the module was already named Phoenix.ReactServer.
Only internal file structure has changed.
Copy file name to clipboardExpand all lines: CLAUDE.md
+34-34Lines changed: 34 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
4
4
5
5
## Project Overview
6
6
7
-
**Phoenix.React** is a Phoenix framework package that enables server-side rendering of React components within Phoenix HTML templates. It provides a rendering server that can render React components to static markup, strings, or readable streams, with support for client-side hydration.
7
+
**Phoenix.ReactServer** is a Phoenix framework package that enables server-side rendering of React components within Phoenix HTML templates. It provides a rendering server that can render React components to static markup, strings, or readable streams, with support for client-side hydration.
8
8
9
9
## Architecture
10
10
@@ -16,36 +16,36 @@ The system consists of three main layers:
16
16
17
17
### Core Components
18
18
19
-
-`Phoenix.React` - Main supervisor and public API
20
-
-`Phoenix.React.Server` - GenServer that manages rendering requests and caching
21
-
-`Phoenix.React.Runtime` - Dynamic supervisor for runtime processes
22
-
-`Phoenix.React.Runtime.Bun` - Bun-based runtime implementation with hot reloading
23
-
-`Phoenix.React.Runtime.Deno` - Deno-based runtime implementation with enhanced security
24
-
-`Phoenix.React.Cache` - ETS-based caching layer with TTL support
25
-
-`Phoenix.React.Helper` - Phoenix.Component integration with multiple rendering modes
Phoenix.React is a powerful library that enables server-side rendering of React components within Phoenix applications. It provides seamless integration between React and Phoenix, supporting multiple rendering methods and runtime environments.
9
+
Phoenix.ReactServer is a powerful library that enables server-side rendering of React components within Phoenix applications. It provides seamless integration between React and Phoenix, supporting multiple rendering methods and runtime environments.
10
10
11
11
## ✨ Features
12
12
@@ -36,14 +36,14 @@ end
36
36
37
37
## ⚙️ Configuration
38
38
39
-
Configure Phoenix.React in your application config:
39
+
Configure Phoenix.ReactServer in your application config:
0 commit comments