Threads.js Versions Save

🧵 Make web workers & worker threads as simple as a function call.

v1.0.0-beta.6

4 years ago

Minor update. Ships a new option to set a URL prefix which is an important feature to be able to create client-side libraries based on threads.js. This way you can load the worker file from unpkg.com or similar.

Features

  • Add _baseURL option to web workers (#156)

v1.0.0-beta.5

4 years ago

A small bug fix release.

Bug fixes

  • Fix main process exiting with delay in node (#153)

v1.0.0-beta.4

4 years ago

Small bug fix release.

Bug fixes

  • Fix process.on is not a function in browser worker (#148)
  • Fix worker threads not terminating on SIGINT/SIGTERM (#147)

v1.0.0-beta.3

4 years ago

Updated beta release shipping auto-transpiling support for TypeScript workers. See https://threads.js.org/usage#typescript.

New features

  • Auto-transpile TypeScript workers using ts-node in node.js (#113)
  • Added additional JSDoc documentation

Chores

  • Updated dependency versions

v1.0.0-beta.1

4 years ago

Fixed the threads/worker module (#127).

v1.0.0-beta

4 years ago

First public beta of v1.0 tagged as latest. v1.0 is a complete rewrite of the library.

Features

  • Implement spawn
  • Implement Worker
  • Implement Thread.* utils
  • Implement expose
  • Implement platform: node 12 worker_threads
  • Implement platform: node < 12 via tiny-worker
  • Implement platform: web (browsers)
  • Implement transferable object support
  • Implement Pool
  • Add tests for usage with webpack
  • Implement cancelling pool tasks
  • Provide a convenient way to stream results
  • Finish documentation