Threads.js Versions Save

๐Ÿงต Make web workers & worker threads as simple as a function call.

v1.7.0

2 years ago

Maintenance release shipping small bug fixes mostly and some minor dependency version bumps.

Bug fixes

  • Export BlobWorker from mjs endpoint (#379)
  • Fix relative worker paths on Windows (#390)
  • Fix type compatibility with node 10+ (#392)

v1.6.5

2 years ago

Small patch release, fixing some TypeScript issues.

Bug fixes

  • Update observable-fns to fix issues with TypeScript 4.3 (#374)

v1.6.4

3 years ago

Small patch release fixing the type resolution around Transfer(). Also updated dependencies.

Bug fixes

  • Resolve transferable object types on call (#352)
  • Allow passing workerData for node worker_threads (#318, by @haggholm)

Chores

  • Updated dependency versions
  • Updated the CI / build setup (#351, by @aminya)

v1.6.3

3 years ago

A small patch that fixes pool task promises not resolving as expected.

Bug fixes

  • Pool task promises pending forever if task completed too quickly (#270)

v1.6.2

3 years ago

A small patch release that makes worker observables actually being unsubscribed from when the proxied observable in the master thread is being unsubscribed.

Bug fixes

  • Proxy unsubscribing from observables (#262)

v1.6.1

3 years ago

A small patch release that fixes the ES modules, so they work with node.js. 1.5.0 should have fixed them already, but it turned out there was another issue.

Bug fixes

  • Add conditional exports to package.json (#261)

v1.6.0

3 years ago

This minor release introduces an exciting new feature: The BlobWorker ๐Ÿ‘ทโ€โ™€๏ธ๐Ÿ‘ทโ€โ™‚๏ธ

Use the BlobWorker to spawn workers from in-memory code. You can create stand-alone bundles that ship the master and the worker code in one file, without the need to reference a separate worker file at runtime.

Read its documentation for more details.

Features

  • Spawn worker from blob / inlined bundle (#211)

v1.5.0

3 years ago

This is a minor release, exposing the isWorkerRuntime() function to you and fixing compatibility with node.js v13+ ES modules โœจ

Features

  • Expose isWorkerRuntime() (#225)

Bug fixes

  • Make the package consumable by node.js native ES modules (#220)

v1.4.1

4 years ago

A small patch fixing two issues. One of them being a fix for another fix that turned out to not yet have solved the underlying issue with ASAR packaging in Electron apps.

Bug fixes

  • Fix the last release's ASAR path resolution fix (#236)
  • Report original error, too, on recursive worker errors (#235)

v1.4.0

4 years ago

Another minor release, yay!

This release introduces support for setups that were not supported before and fixes a bug.

Features

  • Allow spawning workers from ASAR-packed Electron app (#226 โ€“ thanks, @dinataranis & @raz-sinay)
  • Support webpack node externals (#224, by @chingyawhao)

Bug fixes

  • Pass native worker options to ts-node workers (#230, by @rysi3k)