Releases: kaisalmen/wtd
Releases · kaisalmen/wtd
3.0.0 - 2024-01-05
npm packages:
Changes:
- Sent message with or without awaiting them.
WorkerTask
keeps track of messages that need to be awaited.
- API clean-up and code improvements:
WorkerTask
contains async code improvements and it keeps track of outstanding messages (new)- Use configuration objects instead of long number of arguments
- Move static functions of classes to independent funtions
- Better function and class names
- Added helper functions for creating an OffscreenCanvas and delegating events to the worker.
- Extracted
Payload
fromDataPayload
and createdRawPayload
for supporting plain messages. - Added offscreen canvas related funcitonality and utilities:
- Provide framework independent worker and message payload extensions (
OffscreenWorker
andOffscreenPayload
) (wtd-core) MainEventProxy
allows configurable event delegation to a Worker (wtd-core)ElementProxyReceiver
can be used to simulate a canvas in a Worker (wtd-three-ext)
- Provide framework independent worker and message payload extensions (
- Added new example Inter-Worker Communication that demonstrates communication between workers utilizing message channels.
2.3.0 - 2023-10-21
npm packages:
Changes:
- Added the possiblity to sent intermediate message from main to the worker if the worker is still executing.
- Usage of
await
everwhere instead ofPromise.then()
- Moved
WorkerTaskWorker
to its own file - Code Cleanup
- Updated dependencies
2.2.0
2.1.0
2.0.0
V1.0.1
three.js
is no longer a peerDependency. It is just a dependency.- Updated devDependencies to resolve potential security issues.
npm package: https://www.npmjs.com/package/three-wtm/v/1.0.1