release 0.2.4

Please see the release notes for additional information regarding this superqemu release.
This commit is contained in:
Lily Tsuru 2024-08-23 09:58:08 -04:00
parent 608b7255c9
commit e3123252a4
3 changed files with 23 additions and 4 deletions

12
RELEASE_NOTES.md Normal file
View file

@ -0,0 +1,12 @@
# Superqemu Release Notes
## `v0.2.4`
This release contans breaking changes:
- Superqemu no longer depends on nodejs-rfb, or provides its own VNC client support. Instead, it still sets up VNC in QEMU, and it provides the required information to connect, but allows you the control to connect to the VNC server QEMU has setup yourself.
## `v0.2.3`
- TCP support

View file

@ -1,13 +1,15 @@
{ {
"name": "@computernewb/superqemu", "name": "@computernewb/superqemu",
"version": "0.2.4-alpha0", "version": "0.2.4",
"description": "A simple and easy to use QEMU supervision runtime for Node.js", "description": "A simple and easy to use QEMU supervision runtime for Node.js",
"exports": "./dist/index.js", "exports": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"type": "module", "type": "module",
"files": [ "files": [
"./dist", "./dist",
"LICENSE" "LICENSE",
"README.md",
"RELEASE_NOTES.md"
], ],
"scripts": { "scripts": {
"build": "parcel build src/index.ts --target node --target types" "build": "parcel build src/index.ts --target node --target types"
@ -34,5 +36,9 @@
"pino-pretty": "^11.2.1", "pino-pretty": "^11.2.1",
"typescript": ">=3.0.0" "typescript": ">=3.0.0"
}, },
"packageManager": "yarn@4.1.1" "packageManager": "yarn@4.4.0",
"repository": {
"type": "git",
"url": "git+https://git.computernewb.com/computernewb/superqemu.git"
}
} }

View file

@ -13,6 +13,7 @@ export enum VMState {
Stopping Stopping
} }
/// VM definition.
export type QemuVmDefinition = { export type QemuVmDefinition = {
id: string; id: string;
command: string; command: string;
@ -22,6 +23,7 @@ export type QemuVmDefinition = {
vncPort: number | undefined; vncPort: number | undefined;
}; };
/// Display information.
export interface QemuVMDisplayInfo { export interface QemuVMDisplayInfo {
type: 'vnc-uds' | 'vnc-tcp'; type: 'vnc-uds' | 'vnc-tcp';
// 'vnc-uds' // 'vnc-uds'
@ -94,7 +96,6 @@ export class QemuVM extends EventEmitter {
this.qmpInstance.on('connected', async () => { this.qmpInstance.on('connected', async () => {
self.logger.info('QMP ready'); self.logger.info('QMP ready');
self.SetState(VMState.Started); self.SetState(VMState.Started);
}); });
} }