utopia_hotreload 2.0.0 copy "utopia_hotreload: ^2.0.0" to clipboard
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, and auto
  • 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
1
likes
160
points
251
downloads

Publisher

verified publisherappwriters.dev

Weekly Downloads

Advanced hot reload and hot restart functionality for Dart applications with true VM-based hot reload capabilities, similar to Flutter's development experience.

Repository (GitHub)
View/report issues
Contributing

Topics

#hot-reload #development #dart-vm #file-watching #developer-tools

Documentation

Documentation
API reference

Funding

Consider supporting this project:

github.com

License

MIT (license)

Dependencies

meta, path, vm_service, watcher

More

Packages that depend on utopia_hotreload