Skip to content

Commit f0dec35

Browse files
committed
Version 0.4.0
1 parent dc989d5 commit f0dec35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yieldmachine",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Declarative state machines using generator functions",
55
"source": "src/index.ts",
66
"main": "dist/yieldmachine.js",

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<p>Define State Machines using Generator Functions</p>
44
<div>
55
<a href="https://bundlephobia.com/result?p=yieldmachine">
6-
<img src="https://badgen.net/bundlephobia/minzip/yieldmachine@0.3.0" alt="minified and gzipped size">
7-
<img src="https://badgen.net/bundlephobia/min/yieldmachine@0.3.0" alt="minified size">
8-
<img src="https://badgen.net/bundlephobia/dependency-count/yieldmachine@0.3.0" alt="zero dependencies">
6+
<img src="https://badgen.net/bundlephobia/minzip/yieldmachine@0.4.0" alt="minified and gzipped size">
7+
<img src="https://badgen.net/bundlephobia/min/yieldmachine@0.4.0" alt="minified size">
8+
<img src="https://badgen.net/bundlephobia/dependency-count/yieldmachine@0.4.0" alt="zero dependencies">
99
</a>
1010
</div>
1111
</div>

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ class InternalInstance {
312312
}
313313

314314
for (const [event, target] of this.globalHandlers.eventsToListenTo) {
315-
target.addEventListener(event, this, { signal: this.eventAborter.signal });
315+
target.addEventListener(event, this, { signal: this.eventAborter.signal } as AddEventListenerOptions);
316316
}
317317

318318
} else if (typeof initialReturn === 'function') {

0 commit comments

Comments
 (0)