Releases: tfkhdyt/clustrex
Releases · tfkhdyt/clustrex
v0.0.4
Changelog
All notable changes to this project will be documented in this file.
[0.0.4] - 2025-04-19
Added
- Initial public release of Clustrex
- Core functionality for creating and managing worker processes in Node.js
- TypeScript support with full type definitions
- Support for graceful shutdown of worker processes
- Automatic worker process management based on CPU cores
- Configurable number of worker processes
- Support for both clustered and non-clustered modes
Features
- Simple API for creating worker processes
- Automatic process management
- Graceful shutdown handling
- TypeScript support
- ESM module support
- Source maps for debugging
- Minified production builds
Technical Details
- Built with TypeScript
- Uses Node.js cluster module
- Supports ESM modules
- Includes TypeScript type definitions
- Source maps for better debugging
- Minified production builds
- Zero dependencies (only dev dependencies)
Getting Started
import { createCluster } from "clustrex";
createCluster(
() => {
// Your worker process code here
console.log(`Worker ${process.pid} is running`);
},
{
enable: true, // Enable clustering (default: true)
numOfWorkers: 4, // Number of workers (default: number of CPU cores)
}
);
v0.0.3
Full Changelog: v0.0.2-rc1...v0.0.3
v0.0.2-rc1
Full Changelog: v0.0.1-rc2...v0.0.2-rc1
v0.0.1-rc2
Full Changelog: v0.0.1-rc1...v0.0.1-rc2
v0.0.1-rc1
Full Changelog: https://github.com/tfkhdyt/clustrex/commits/v0.0.1-rc1