Skip to content

Releases: alewin/useWorker

@koale/useworker@4.0.2

15 May 09:07
0994b26
Compare
Choose a tag to compare

Patch Changes

4.0.1

21 Mar 10:28
Compare
Choose a tag to compare

removed local dependencies #98 feature
solves: #104, #105

3.4.0

23 Jan 15:19
Compare
Choose a tag to compare

3.2.1

12 Jul 17:28
Compare
Choose a tag to compare

🐛 Bugfix

  • Fix #63 Unhandled Rejection (ReferenceError): OffscreenCanvas is not defined

  • Fix Safari #59
    image

3.2.0

14 Jun 13:37
Compare
Choose a tag to compare

🎁 Features

  • transferable: 'auto' option docs now support OffscreenCanvas type ( thanks @ophirg )

3.1.0

28 May 18:45
Compare
Choose a tag to compare

🎁 Features

  • transferable option docs #46 #47 thanks to @gonzachr, and his proposal

3.0.0

01 May 14:32
Compare
Choose a tag to compare

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 to remoteDependencies

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

01 May 14:13
Compare
Choose a tag to compare
3.0.0-beta.3 Pre-release
Pre-release

workerController as second parameter

3.0.0-beta.2

15 Apr 19:09
Compare
Choose a tag to compare
3.0.0-beta.2 Pre-release
Pre-release

Features

  • add autoTerminate option param

3.0.0-beta

13 Apr 08:32
Compare
Choose a tag to compare
3.0.0-beta Pre-release
Pre-release

Bugfix

Why on each call to the worker the dependencies are re-fetched? #33

Breacking changes:

Before:
the reference to the function workerHook changes each time the workerStatus changes, furthermore, since "options" is not a primitive variable, it causes a rerender every time the component that integrated the hook was updated.

After:
the hook updates only when options and worker function changes