Skip to content

Latest commit

 

History

History
360 lines (186 loc) · 18.1 KB

CHANGELOG.md

File metadata and controls

360 lines (186 loc) · 18.1 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.2.2 (2024-04-10)

Bug Fixes

  • don't reply with an error if the child is not available anymore (981b255)
  • handle throws in replyError (c1c9183)

1.2.1 (2022-12-07)

Bug Fixes

  • linting errors (c3fedd5)
  • only apply custom loader for electron < 17.3 (1e063a1)

1.2.0 (2022-11-23)

Features

  • add autoRestart retry options (52e4591)
  • add strict mode (75c4d4d)
  • allow disabling timeouts and add error types (5616a1a)

Bug Fixes

  • promise returned from restartChild (7b025f7)
  • refactor and fix an issue with autoRestartFailCount (e32dd03)
  • test failing inconsistently, and lint (5760962)

1.1.2 (2022-11-02)

Bug Fixes

  • bug fix: it wasn't possible to call ThreadedClassManager.restart multiple times for the same instance (e93e5c5)

1.1.1 (2022-09-23)

Bug Fixes

  • fatal error in stripSack (e9c568e)

1.1.0 (2022-08-11)

Features

  • add custom killTimeout option (ff9847c)
  • add event to allow listening to side-effect errors (4ce09c9)
  • allow changing restart timeout (73057ac)

Bug Fixes

  • crash/failed test after restarted child (cbb37a1)
  • forward errors from WorkerThreads to consumers (9a36299)
  • forward errors upwards so that they can be caught (75685ae)
  • improve logging for when rejecting all methods (34a5fd2)
  • kill children if they crash during init (16c0427)
  • move restartTimeout to class options (dd5703e)
  • verify that restarted event is emitted correctly (64dac40)
  • when emitting or throwing errors, only do additional writes to console when the debug is enabled (4df8586)

1.0.2 (2022-04-08)

Bug Fixes

  • check argument types in threadedClass() (68ee9ce)
  • improve error handling, by appending the original stack traces to the errors thrown. (14116da)
  • update types to handle a special case of eventEmitters. (7ebc71f)

1.0.1 (2022-01-13)

Bug Fixes

  • only resolve error stack when needed. (5afb47b)

1.0.0 (2021-09-14)

Bug Fixes

  • fix error in setter (25b87cf)
  • reuse callbacks where possible (ba8e5b1)

0.9.0 (2021-04-22)

Features

  • add environemnt variable to use a worker_thread loader script (#42) (e931372)
  • make exit handlers opt-in #45 (#47) (5c4bb34)

0.8.3 (2020-12-09)

Bug Fixes

  • debug logging to troubleshoot restart issues (7ed20e2)
  • expose dontHandleExit property (eca698f)

0.8.2 (2020-11-16)

Features

  • add getMemUsage function (e19d3a0)
  • add support for sending messages directly to the Child process (b8517a3)

Bug Fixes

  • add .description to MemUsageReport (0bbe357)
  • refactor internal type definitions in sharedApi.ts, to clarify message directions, senders & receivers by grouping types in namespaces (1e1c460)

0.8.1 (2020-10-27)

Bug Fixes

  • be more verbose when describing child processes. Default instanceName to the name of the Export. (830cfbd)
  • on exit handlers: made the on exit/signal handlers be more verbose (a050c3b)

0.8.0 (2020-08-17)

⚠ BREAKING CHANGES

  • drop node 8 support
  • remove class constructor from main function. When single-threaded it gets loaded the same way as multithreaded would
  • drop node 8 support
  • remove class constructor from main function. When single-threaded it gets loaded the same way as multithreaded would

Features

  • add support for exports not named the same as the class (1cce227)
  • add support for exports not named the same as the class (1cce227)
  • drop node 8 support (a4e3c49)
  • drop node 8 support (a4e3c49)
  • monitor parent pid for orphan check (#33) (597bdf9)
  • monitor parent pid for orphan check (#33) (597bdf9)
  • refactor workers for better types (c6aabb0)
  • refactor workers for better types (c6aabb0)
  • remove class constructor from main function. When single-threaded it gets loaded the same way as multithreaded would (f0c0e3f)
  • ci: prerelease flow & optionally skip audit [skip ci] (adf1927)
  • remove class constructor from main function. When single-threaded it gets loaded the same way as multithreaded would (f0c0e3f)
  • ci: prerelease flow & optionally skip audit [skip ci] (adf1927)

Bug Fixes

  • indentation (5355f3e)
  • indentation (5355f3e)
  • use worker_threads typings from @types/node, and don't pass callback to worker.terminate (34a1614)
  • use worker_threads typings from @types/node, and don't pass callback to worker.terminate (34a1614)

0.7.0 (2019-12-12)

Features

  • stricter typings for constructor (708f9e4)
  • update ci to run for node 8,10,12 (e65d0e0)

Bug Fixes

  • build before running tests (d88d28f)
  • build before test during release script (33df104)
  • disable broken tests (9102550)
  • encode/decode constructor arguments (29eadf8)
  • functions often undefined (#23) (312f08c)
  • tweak coverage thresholds (61273a6)

0.6.8 (2019-10-03)

Bug Fixes

  • allow infinite number of listeners (aedc713)

0.6.7 (2019-10-03)

Bug Fixes

  • include original stack trace in error messages (c76a866)

0.6.6 (2019-09-04)

Bug Fixes

  • make error messages clearer (c5505f9)

0.6.5 (2019-09-03)

Bug Fixes

  • add note to stack trace on error replies (0322313)
  • be more descriptive in error messages (ea37bef)
  • make logging output log instance id (5e4190c)
  • make onEvent return a method for removing the listener (d877d24)

Features

  • be able to name instances (77e72c1)

0.6.4 (2019-08-24)

Bug Fixes

  • don't monitor orphaned child in single-threaded mode (this kills the parent process) (1432f16)
  • update dependencies (ce99482)

0.6.3 (2019-07-16)

Bug Fixes

  • upgrade dependencies (after security audit) (f093cff)

0.6.2 (2019-06-07)

0.6.1 (2019-04-14)

0.6.0 (2019-04-14)

Bug Fixes

  • proper termination of worker thread (2850a70)

Features

  • remove JSON.stringify, to increase performance (message is still stringified at send, no need to do it twice) (28b53c9)
  • Support for worker_threads (c6ee116)

0.5.0 (2019-03-07)

Features

  • direct import of class, when in single thread mode (a14c162)

0.4.0 (2019-02-05)

Features

  • child detect if it's been orphaned (7b9895c)
  • implement ping & freeze detection of child proces, and autoRestart (d6ebd53)

0.3.4 (2019-02-01)

0.3.3 (2019-02-01)

0.3.2 (2019-02-01)

0.3.1 (2019-02-01)

0.3.0 (2019-02-01)

Features

  • add browser example (ccd2ff7)
  • implement browser support, using web-workers (61e5028)

0.2.1 (2019-01-04)

Bug Fixes

0.2.0 (2018-12-26)

Bug Fixes

  • cleanup unused functionality (01aaf6e)
  • handle thrown errors & renaming of some methods (b819d50)
  • handle undefined parameter (70f34b1)
  • renamed more references of "process" to "thread", for consistency (51d97ad)

Features

  • added ThreadedClassManager.onEvent, for listening to process-closed-events. Added restart function, to restart crashed devices. (3ed3986)
  • disableMultithreading option starts a special non threaded class (5e24f55)
  • proper support for functions as arguments & proper handling of value types (c66bf9c)
  • rename options.processId to threadId (58be1cb)
  • rename options.processUsage to threadUsage (177e264)
  • restart process now returns promise (0899424)
  • reworked the whole thing. Added support for multiple instances of classes running in the same process. Added ThreadedClassManager singleton to use for cleaning up instances (f2b96e9)

0.1.0 (2018-12-11)

Bug Fixes

Features

  • added better support for getters & setters (94d7d53)
  • non-ideal-but-reasonable support for getters (422b466)
  • support setting properties (b042426)