Releases: alewin/useWorker
Releases · alewin/useWorker
@koale/[email protected]
@koale/[email protected]
4.0.1
3.4.0
3.2.1
3.2.0
3.1.0
3.0.0
Thanks to @iljadaderko @Pigotz @gonzachr @JonatanSalas @z4o4z for the contribution.
🐛 Bugfix
- Avoid
useWorker
unnecessary re-render
🎁 Features
autoTerminate
option docs
⚡ Breacking changes #36
- The parameters returned by the hook change:
Before
const [sortWorker, status, kill] = useWorker(sortDates);
After
const [sortWorker, { status, kill }] = useWorker(sortDates);
- The name of the option
dependencies
changes toremoteDependencies
Before
const [sortWorker] = useWorker(sortDates, { dependencies: ["www.google.com/script.js"] );
After
const [sortWorker] = useWorker(sortDates, { remoteDependencies: ["www.google.com/script.js"] );
These changes allow the addition of new features ( Roadmap 3.0.0 )
3.0.0-beta.3
workerController
as second parameter
3.0.0-beta.2
Features
- add
autoTerminate
option param