fix(classes.base): Use type-only import for DockerHost in classes.base to avoid runtime side-effects

This commit is contained in:
2025-11-24 13:06:44 +00:00
parent 8d043d20a8
commit 5691e5fb78
3 changed files with 9 additions and 2 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## 2025-11-24 - 3.0.1 - fix(classes.base)
Use type-only import for DockerHost in classes.base to avoid runtime side-effects
- Changed the import in ts/classes.base.ts to a type-only import: import type { DockerHost } from './classes.host.js';
- Prevents a runtime import of classes.host when only the type is needed, reducing risk of circular dependencies and unintended side-effects during module initialization.
- No behavior changes to the public API — TypeScript-only change; intended to improve bundling and runtime stability.
## 2025-11-24 - 3.0.0 - BREAKING CHANGE(DockerHost)
Refactor public API to DockerHost facade; introduce DockerResource base; make resource static methods internal; support flexible descriptors and stream compatibility