diff --git a/changelog.md b/changelog.md index 80e11f8..98c972b 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index d99f4bb..d3fa571 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiclient.xyz/docker', - version: '3.0.0', + version: '3.0.1', description: 'Provides easy communication with Docker remote API from Node.js, with TypeScript support.' } diff --git a/ts/classes.base.ts b/ts/classes.base.ts index cb27671..76af7ed 100644 --- a/ts/classes.base.ts +++ b/ts/classes.base.ts @@ -1,4 +1,4 @@ -import { DockerHost } from './classes.host.js'; +import type { DockerHost } from './classes.host.js'; /** * Abstract base class for all Docker resources.