diff --git a/fichero_printer/CHANGELOG.md b/fichero_printer/CHANGELOG.md index 9d204a5..f9fbd2b 100644 --- a/fichero_printer/CHANGELOG.md +++ b/fichero_printer/CHANGELOG.md @@ -5,6 +5,28 @@ All notable changes to this project are documented in this file. The format is based on Keep a Changelog and this project uses Semantic Versioning. +## [0.1.42] - 2026-03-18 + +### Fixed +- **Circular Import**: Resolved circular import between printer.py and imaging.py +- **Module Structure**: Cleaned up module dependencies +- **Simplified Connection Logic**: Maintained from v0.1.41 + +### Added +- **PRINTHEAD_PX Constant**: Moved to imaging.py to avoid circular imports +- **Clearer Architecture**: Better separation of concerns between modules +- **Stable BLE Connections**: Direct BLE connections without intermediate cache operations + +### Changed +- **Module Organization**: imaging.py now contains printer constants +- **Import Structure**: Removed problematic cross-imports +- **Code Structure**: Simplified architecture focusing on reliability + +### Improved +- **Reliability**: More stable module loading +- **Debuggability**: Cleaner module structure +- **Maintainability**: Easier to understand dependencies + ## [0.1.41] - 2026-03-18 ### Fixed diff --git a/fichero_printer/config.yaml b/fichero_printer/config.yaml index d5d0dd4..80ec29f 100644 --- a/fichero_printer/config.yaml +++ b/fichero_printer/config.yaml @@ -1,5 +1,5 @@ name: "Fichero Printer" -version: "0.1.41" +version: "0.1.42" description: "REST API for the Fichero D11s (AiYin) thermal label printer over Bluetooth" url: "https://git.leuschner.dev/Tobias/Fichero" slug: "fichero_printer" diff --git a/fichero_printer/fichero/api.py b/fichero_printer/fichero/api.py index 782b7c6..72f53e4 100644 --- a/fichero_printer/fichero/api.py +++ b/fichero_printer/fichero/api.py @@ -82,7 +82,7 @@ async def lifespan(app: FastAPI): # noqa: ARG001 app = FastAPI( title="Fichero Printer API", description="REST API for the Fichero D11s (AiYin) thermal label printer.", - version = "0.1.41", + version = "0.1.42", lifespan=lifespan, docs_url=None, redoc_url=None,