Socket
Socket
Sign inDemoInstall

nanolith

Package Overview
Dependencies
1
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
10Next

0.4.7-beta1

Diff

mstephen19
published 0.4.6 •

Changelog

Source

[0.4.6] - 2023-30-4

Changed

  • Updated concurrency multipliers to exclude ConcurrencyOption.Default.
  • Refactored SharedMap.#isNull().
  • The taskHandler used within Service to avoid unnecessary looping. Minor performance improvement.
  • ServiceCluster.use() implementation to be more logical and performant.
  • Minor refactors for define().
  • Minor refactors for Pool.

Added

  • Extra test for autoRenew option on ServiceCluster.
  • Tests for __beforeTask and __afterTask hooks with services & task workers.

Fixed

  • Incorrect timeout error for creating writable streams.
  • ParentThread in-editor docs.

Removed

  • Unnecessary threadID getter on Service. Can just do Service.worker.threadId.
mstephen19
published 0.4.5 •

Changelog

Source

[0.4.5] - 2023-09-4

Fixed

  • Not calling getDefaultPoolConcurrency in README example.
  • Improved performance for ServiceCluster methods closeAll(), closeAllIdle(), use(), and activeServiceCalls().
  • Service.close() not doing early cleanup for callbacks.
  • Messenger.close() not doing early cleanup for stream event callbacks.
  • define() waiting to run the worker before resolving with the Nanolith API object.
  • Missing workerData.identifier property in PoolItemOptions type.
  • Service.call() not cleaning up callbacks.
  • Service.call() not decreasing active count upon promise rejection.
  • Minor performance improvement for Messenger with streams.

Added

  • New tests for ServiceCluster.use().

Removed

  • ParentThreadTerminateMessageBody type eliminated.
mstephen19
published 0.4.4 •

Changelog

Source

[0.4.4] - 2023-30-3

Changed

  • createStream() method on Service, Messenger, and ParentThread to accept Record<string | number, any> metadata instead of Record<any, any>.

Added

  • More info about metaData to Streaming data between threads section of README.
  • Messenger.closed getter.
  • Service.setRef() method.
  • shareEnv option for task & service workers, defaulting to true + docs.

Fixed

  • entries() generator method on SharedMap to be more performant.
  • Messenger.closeAll() not closing the current messenger instance.
  • Improved general performance for services.
  • Improved general performance for task workers & services.
  • Incorrect docs for reffed config option. Defaults to true, not false.
mstephen19
published 0.4.4-beta1 •

mstephen19
published 0.4.3 •

Changelog

Source

[0.4.3] 2023-2-3

Changed

  • Some minor refactors.

Added

  • SharedMap.entries() method for asynchronously iterating over map keys and values + docs.
  • More keywords to package.json.

Fixed

  • Task/service calls throwing an error when the worker exits early with exit code 0.
  • Some JSDoc typos & unnecessary spaces.
  • SharedMap keys containing unnecessary commas that take up extra space.

Removed

  • Empty Examples section in README.
  • Replaced content in README License section with a link to the license in the GitHub repository.
mstephen19
published 0.4.3-beta4 •

mstephen19
published 0.4.3-beta3 •

mstephen19
published 0.4.3-beta2 •

mstephen19
published 0.4.3-beta1 •

2345
10Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc