Skip to content

Commit 45ffc73

Browse files
committed
✨ feat(core): implement React email template building and dev server
- add `react-email:build` command to compile React templates to Blade - introduce `react-email:dev` command for live preview of email templates - refactor `ReactMailable` to be an abstract class without build logic - update configuration keys for template paths - enhance TypeScript support in template stubs
1 parent 1702478 commit 45ffc73

25 files changed

Lines changed: 3055 additions & 286 deletions

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# CHANGELOG
2+
3+
All notable changes to `laravel-react-email` will be documented in this file.
4+
5+
## [2.0.0] - 2025-12-07
6+
7+
### Breaking Changes
8+
9+
- **Prebuild workflow**: Templates must now be compiled with `php artisan react-email:build` before sending emails
10+
- **Configuration changes**: Renamed config keys from `email_templates_path`/`blade_output_path` to `path`/`build_path`
11+
- **Removed hot reload**: The `enable_hot_reload` config option has been removed
12+
- **View references**: Changed from `react-email::template` to `react-email.template` notation
13+
- **Content method**: Now requires both `html` and `text` parameters instead of just `view`
14+
15+
### Added
16+
17+
- `php artisan react-email:dev` command to start the React Email preview server
18+
- `php artisan make:react-email` command to generate both Mailable and React template
19+
- Better TypeScript support in template stubs
20+
- Improved example templates with proper styling
21+
- `UPGRADE.md` guide for migrating from v1.x
22+
- `EXAMPLES.md` with practical usage examples
23+
- Support for `$$variable$$` syntax in React templates that compiles to Blade `{{ $variable }}`
24+
25+
### Changed
26+
27+
- `ReactMailable` is now a simple abstract class without build logic
28+
- Templates are stored in `resources/react-email` (instead of `resources/views/react-email`)
29+
- Compiled templates go to `resources/views/react-email` (instead of `resources/views/vendor/react-email`)
30+
- Improved error handling in build command
31+
- Better progress reporting during template compilation
32+
33+
### Fixed
34+
35+
- Constructor errors in ReactMailable
36+
- Service provider configuration issues
37+
- Incorrect view namespacing
38+
39+
### Performance
40+
41+
- Much faster email sending (no Node.js process during send)
42+
- Build-time validation catches errors before production
43+
- Pre-compiled templates reduce server load
44+
45+
## [1.0.0] - Initial Release
46+
47+
### Added
48+
49+
- Basic React Email integration with Laravel
50+
- Hot reload support for development
51+
- Automatic template rendering on email send
52+
- Support for React Email components
53+

0 commit comments

Comments
 (0)