utopia_hotreload 2.0.0
utopia_hotreload: ^2.0.0 copied to clipboard
Advanced hot reload and hot restart functionality for Dart applications with true VM-based hot reload capabilities, similar to Flutter's development experience.
2.0.0 #
- Improved reliability and performance of hot reload and hot restart
- Enhanced file watching with better ignore pattern support
- Improved logging and error handling mechanisms
- Dashboard feature to monitor reload status and logs
1.0.1 #
- Documentation updates
- Cleanup and remove unused libraries
1.0.0 #
Added #
- Initial release of utopia_hotreload package
- True hot reload functionality using Dart VM service
- Hot restart capability for when hot reload isn't possible
- Auto mode that intelligently chooses between hot reload and hot restart
- File watching system with configurable paths and extensions
- Debouncing support to prevent excessive reload triggers
- Ignore patterns for excluding files/directories from watching
- Comprehensive developer tools API with
DeveloperTools.start()
- Multiple reload modes:
hotReload
,hotRestart
, andauto
- VM service integration with automatic connection management
- Graceful fallback mechanisms when hot reload fails
- Support for custom script execution and server management
- Built-in error handling and logging for debugging
- State preservation during hot reload (similar to Flutter)
- Process isolation for hot restart functionality
Features #
- True Hot Reload: Uses Dart VM service to reload code without losing application state
- Hot Restart: Process-based restart for cases where hot reload isn't suitable
- Auto Mode: Tries hot reload first, automatically falls back to hot restart
- File Watching: Monitors specified directories and file extensions for changes
- Configurable Debouncing: Prevents rapid successive reloads from file save bursts
- Ignore Patterns: Exclude build directories, generated files, and other unwanted paths
- Developer-Friendly API: Simple
DeveloperTools.start()
method for easy integration
Technical Details #
- Requires Dart SDK 2.17.0 or higher
- Uses
vm_service
package for hot reload functionality - Uses
watcher
package for file system monitoring - Supports both isolate-based and process-based execution models
- Automatic VM service enablement and connection management
- Graceful error handling with detailed logging for troubleshooting