chiisai-event-emitter 2.1.2 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,8 +4,6 @@ A minimal and performant event emitter library for Node.JS.
4
4
 
5
5
  ---
6
6
 
7
- # chiisai-event-emitter
8
-
9
7
  [![npm package][npm-img]][npm-url]
10
8
  [![Build Status][build-img]][build-url]
11
9
  [![Downloads][downloads-img]][downloads-url]
@@ -31,12 +31,11 @@ class EventEmitter {
31
31
  * @param {Array<any>} args
32
32
  * @returns void
33
33
  */
34
- // biome-ignore lint/suspicious/noExplicitAny: temp until safe event map is implemented
34
+ // biome-ignore lint/suspicious/noExplicitAny: intentional
35
35
  emit(eventName, ...args) {
36
- // biome-ignore lint/complexity/noForEach:
37
- this.subscriptions
38
- .get(eventName)
39
- .forEach(({ callback }) => callback(...args));
36
+ for (const { callback } of this.subscriptions.get(eventName)) {
37
+ callback(...args);
38
+ }
40
39
  }
41
40
  /**
42
41
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chiisai-event-emitter",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "A minimal event emitter.",
5
5
  "main": "./lib/index.js",
6
6
  "files": [
@@ -54,7 +54,7 @@
54
54
  "husky": "^9.1.7",
55
55
  "jest": "^29.7.0",
56
56
  "lint-staged": "^16.0.0",
57
- "semantic-release": "^24.2.3",
57
+ "semantic-release": "^25.0.2",
58
58
  "terser": "^5.34.1",
59
59
  "ts-jest": "^29.3.2",
60
60
  "ts-node": "^10.2.1",