Repository navigation
Releases: b1411/parallel.js
Releases · b1411/parallel.js
Release list
v3.1.0
v3.0.1
v3.0.0
3.0.0 (2026-01-16)
Bug Fixes
- increase Queue performance test timeout to handle CI variability [skip ci] (afe4e7b)
BREAKING CHANGES
- Removed old Thread class constructor API. Users must
migrate from 'new Thread(fn, args)' to 'Thread.execute(fn, args)'.
- Removed Thread class constructor (src/primitives/Thread.ts)
- Removed ThreadV2 alias, now Thread is the main API
- Removed ThreadFactory, functions inlined into Thread object
- Thread is now a namespace object with static methods: execute(),
persistent(), prewarm(), clearPool() - Updated all tests, examples, and benchmarks to use new API
- Fixed ThreadPool terminate() to reject queued tasks
- Added typecheck script to package.json
Migration guide:
Before: const thread = new Thread(() => 42); await thread.join(); After:
await Thread.execute(() => 42).join();
Co-authored-by: Rakhmat 232435084+Kemel-Army@users.noreply.github.com
v2.0.0
2.0.0 (2026-01-16)
- feat!: implement ThreadV2 with prewarming and TTL support (e9b5eb8)
Features
- add badge update step to CI after successful tests (3b4450b)
- enhance performance testing utilities and improve test stability (2712f2d)
BREAKING CHANGES
- ThreadV2 introduces a new API that replaces the legacy Thread interface. The new API provides prewarming capabilities and TTL support, which changes how threads are initialized and managed.