Skip to content

Commit 1ed4f4f

Browse files
chore: update version (#175)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent e1f811c commit 1ed4f4f

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

.changeset/calm-dingos-flow.md

-7
This file was deleted.

.changeset/shiny-lies-tap.md

-8
This file was deleted.

packages/useWorker/CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# @koale/useworker
22

3+
## 4.1.2
4+
5+
### Patch Changes
6+
7+
- 89b3d50: - fix: reject promises for workers that are about to be killed ([#170](https://github.com/alewin/useWorker/pull/170))
8+
9+
Reject promises for killed workers with AbortError to prevent memory leaks from dangling promises
10+
11+
- 89b3d50: - fix: mark worker as not running immediately after being killed ([#171](https://github.com/alewin/useWorker/pull/171))
12+
13+
Allows immediate worker restart after killing by updating running status synchronously instead of waiting for next render cycle.
14+
315
## 4.1.1
416

517
### Patch Changes

packages/useWorker/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@koale/useworker",
3-
"version": "4.1.1",
3+
"version": "4.1.2",
44
"description": "useWorker() - Web worker using React hook",
55
"author": "alewin",
66
"license": "MIT",

0 commit comments

Comments
 (0)