fix(classes.base): Use type-only import for DockerHost in classes.base to avoid runtime side-effects
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# 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)
|
## 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
|
Refactor public API to DockerHost facade; introduce DockerResource base; make resource static methods internal; support flexible descriptors and stream compatibility
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiclient.xyz/docker',
|
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.'
|
description: 'Provides easy communication with Docker remote API from Node.js, with TypeScript support.'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { DockerHost } from './classes.host.js';
|
import type { DockerHost } from './classes.host.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract base class for all Docker resources.
|
* Abstract base class for all Docker resources.
|
||||||
|
|||||||
Reference in New Issue
Block a user