All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Breaking: The worker's
paymentAddress
is no longer saved inwindow.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.
- This lets apps to have more control over how it's persisted. A similar
change will happen for the
- Clear the
error
state when the worker fetches successfully.
- 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.
- Breaking: Switch
useDCPWorker
from a default export to a named export. - Update
README.md
andCHANGELOG.md
formats.
- Re-render on the
end
event for sandboxes to prevent lingering UI elements that aren't aware of terminated sandboxes that are no longer receivingpayment
orprogress
events. - Mark
bignumber.js
as a peer dependency to prevent issues with bundling different versions of the library in application code.
- 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
andmaxWorkingSandbox
props to local storage and trigger component update/re-render
- Needed reflect changes to
- 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 editingworkerOptions
should be done by directly mutatingworker.workerOptions
- Improved error handling
- Quality of life improvements
- Compatibility update for new Worker events from dcp-client
- Local storage will only save
paymentAddress
andmaxWorkingSandbox
props - Worker options source always coming from dcpConfig
- Added delay between quick worker fetching states
- Quality of life + maintainability improvements
- Added src/ directory to published files to support source map
- Initial Release