Skip to content

Releases: b1411/parallel.js

v3.1.0

Choose a tag to compare

@b1411 b1411 released this 21 Jan 10:20

3.1.0 (2026-01-21)

Features

  • and improve worker creation; update ThreadPool and BaseThread for better worker management (f8b9796)

v3.0.1

Choose a tag to compare

@b1411 b1411 released this 17 Jan 11:04

3.0.1 (2026-01-17)

Bug Fixes

  • improve code formatting and cleanup in ThreadPool and workerFactory; adjust test timeouts for CI stability (ba8aa02)

v3.0.0

Choose a tag to compare

@b1411 b1411 released this 16 Jan 14:51

3.0.0 (2026-01-16)

  • feat!: replace Thread class with Thread.execute() static API (#4) (9f5300e)

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

Choose a tag to compare

@b1411 b1411 released this 16 Jan 01:19

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.

v1.4.0

Choose a tag to compare

@b1411 b1411 released this 15 Jan 16:21

1.4.0 (2026-01-15)

Features

  • implement Queue class with O(1) operations and comprehensive tests (41c20c1)

v1.3.0

Choose a tag to compare

@b1411 b1411 released this 15 Jan 15:02

1.3.0 (2026-01-15)

Features

  • support async functions in Thread and ThreadPool classes with comprehensive tests (cb01d51)

v1.2.0

Choose a tag to compare

@b1411 b1411 released this 14 Jan 20:06

1.2.0 (2026-01-14)

Features

  • add Travis CI release automation (e58f35d)
  • add Travis CI with semantic-release automation (151238a)
  • add Travis CI with semantic-release automation (b675967)
  • mark support for transferable objects in roadmap as complete (c871ee8)