# Changelog

All notable changes to this project will be documented in this file.

## [1.2.0] - 2026-05-03

### Added
- **Async/Promise API**: `printHtml` and `getPrinters` now return Promises, allowing for `await` and robust status tracking.
- **Request Correlation**: Implemented `requestId` system to map backend responses to specific JavaScript calls.
- **Advanced Layout Metadata**: Added support for margins, orientation, and copies in `PrinterInfo`.
- **Enhanced Debugging**: `enableDebug()` now provides more detailed logs of the WebSocket communication bridge.

### Fixed
- Fixed synchronous `localStorage` dependency in `getPrinters`; it now fetches real-time data from the extension.
- Improved error propagation from the Rust backend back to the calling JavaScript code.

## [1.0.0] - 2025-08-03

### Added
- Initial release of Lidta DRP Plugin
- Print HTML content to multiple printers
- UMD + ESM build support
- Basic API: `debug`, `printHtml`, `getPrinters`, etc.
