Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

use-dcp-worker

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-dcp-worker - npm Package Versions

2

4.0.0

Diff

Changelog

Source

[4.0.0] - 2024-08-28

  • Breaking: The worker's paymentAddress is no longer saved in window.localStorage.
    • This lets apps to have more control over how it's persisted. A similar change will happen for the cores option in a future version.
bryan-hoang
published 3.0.2 •

Changelog

Source

[3.0.2] - 2024-01-04

  • Clear the error state when the worker fetches successfully.
bryan-hoang
published 3.0.1 •

Changelog

Source

[3.0.1] - 2024-01-04

  • Add a default handler for the error event from the worker. This should help mitigate the vauge error that's logged when there's no event listener attached when the event fires.
bryan-hoang
published 3.0.0 •

Changelog

Source

[3.0.0] - 2024-01-04

Changed

  • Breaking: Switch useDCPWorker from a default export to a named export.
  • Update README.md and CHANGELOG.md formats.
bryan-hoang
published 2.0.1 •

Changelog

Source

[2.0.1] - 2023-10-20

Fixed

  • Re-render on the end event for sandboxes to prevent lingering UI elements that aren't aware of terminated sandboxes that are no longer receiving payment or progress events.
  • Mark bignumber.js as a peer dependency to prevent issues with bundling different versions of the library in application code.
eroosenmaallen
published 2.0.0 •

Changelog

Source

[2.0.0] - 2023-08-15

  • Now returns the worker
  • Proper handling of race-condition in constructing the worker when/if the hook is executed multiple times at once
  • workerOptions passed to worker constructor is a Proxy now
    • Needed reflect changes to paymentAddress and maxWorkingSandbox props to local storage and trigger component update/re-render
  • Removed workerState.isLoaded since now we're returning the worker
    • !isLoaded === !worker
  • Removed workerOptionsState, start/stop/toggleWorker, sandboxes, originManager
    • These are all accessible through the Worker API
  • Removed applyWorkerOptions since editing workerOptions should be done by directly mutating worker.workerOptions
  • Improved error handling
  • Quality of life improvements
eroosenmaallen
published 1.0.4 •

Changelog

Source

[1.0.4] - 2023-08-03

  • Compatibility update for new Worker events from dcp-client
eroosenmaallen
published 1.0.3 •

eroosenmaallen
published 1.0.2 •

Changelog

Source

[1.0.2] - 2023-03-23

  • Local storage will only save paymentAddress and maxWorkingSandbox props
  • Worker options source always coming from dcpConfig
  • Added delay between quick worker fetching states
  • Quality of life + maintainability improvements
eroosenmaallen
published 1.0.1 •

Changelog

Source

[1.0.1] - 2023-03-23

  • Added src/ directory to published files to support source map
2
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc