hookified 1.15.0 → 1.15.1
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 +6 -6
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1369,8 +1369,8 @@ We are doing very simple benchmarking to see how this compares to other librarie
|
|
|
1369
1369
|
|
|
1370
1370
|
| name | summary | ops/sec | time/op | margin | samples |
|
|
1371
1371
|
|-----------------------|:---------:|----------:|----------:|:--------:|----------:|
|
|
1372
|
-
| Hookified (v1.
|
|
1373
|
-
| Hookable (v6.0.1) | -
|
|
1372
|
+
| Hookified (v1.15.1) | 🥇 | 5M | 199ns | ±0.01% | 5M |
|
|
1373
|
+
| Hookable (v6.0.1) | -62% | 2M | 578ns | ±0.01% | 2M |
|
|
1374
1374
|
|
|
1375
1375
|
## Emits
|
|
1376
1376
|
|
|
@@ -1378,10 +1378,10 @@ This shows how on par `hookified` is to the native `EventEmitter` and popular `e
|
|
|
1378
1378
|
|
|
1379
1379
|
| name | summary | ops/sec | time/op | margin | samples |
|
|
1380
1380
|
|---------------------------|:---------:|----------:|----------:|:--------:|----------:|
|
|
1381
|
-
|
|
|
1382
|
-
|
|
|
1383
|
-
| EventEmitter (
|
|
1384
|
-
| Emittery (v1.2.0) | -
|
|
1381
|
+
| EventEmitter3 (v5.0.4) | 🥇 | 14M | 85ns | ±0.02% | 12M |
|
|
1382
|
+
| Hookified (v1.15.1) | -6.9% | 13M | 88ns | ±0.02% | 11M |
|
|
1383
|
+
| EventEmitter (v24.11.1) | -9.5% | 13M | 89ns | ±0.02% | 11M |
|
|
1384
|
+
| Emittery (v1.2.0) | -92% | 1M | 993ns | ±0.01% | 1M |
|
|
1385
1385
|
|
|
1386
1386
|
_Note: the `EventEmitter` version is Nodejs versioning._
|
|
1387
1387
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hookified",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "Event Emitting and Middleware Hooks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/node/index.js",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"benchmark": "pnpm benchmark:hooks && pnpm benchmark:emit",
|
|
33
33
|
"benchmark:hooks": "pnpm tsx benchmark/hook.ts",
|
|
34
34
|
"benchmark:emit": "pnpm tsx benchmark/emit.ts",
|
|
35
|
+
"benchmark:readme": "pnpm tsx scripts/benchmark-readme.ts",
|
|
35
36
|
"website:build": "docula build",
|
|
36
37
|
"website:serve": "docula serve",
|
|
37
38
|
"prepare": "pnpm build"
|
|
@@ -68,21 +69,21 @@
|
|
|
68
69
|
},
|
|
69
70
|
"homepage": "https://github.com/jaredwray/hookified#readme",
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@biomejs/biome": "^2.3.
|
|
72
|
+
"@biomejs/biome": "^2.3.13",
|
|
72
73
|
"@monstermann/tinybench-pretty-printer": "^0.3.0",
|
|
73
74
|
"@types/node": "^25.0.3",
|
|
74
|
-
"@vitest/coverage-v8": "^4.0.
|
|
75
|
-
"docula": "^0.
|
|
75
|
+
"@vitest/coverage-v8": "^4.0.18",
|
|
76
|
+
"docula": "^0.40.0",
|
|
76
77
|
"emittery": "^1.2.0",
|
|
77
|
-
"eventemitter3": "^5.0.
|
|
78
|
+
"eventemitter3": "^5.0.4",
|
|
78
79
|
"hookable": "^6.0.1",
|
|
79
|
-
"pino": "^10.
|
|
80
|
+
"pino": "^10.3.0",
|
|
80
81
|
"rimraf": "^6.1.2",
|
|
81
82
|
"tinybench": "^6.0.0",
|
|
82
83
|
"tsup": "^8.5.1",
|
|
83
84
|
"tsx": "^4.21.0",
|
|
84
85
|
"typescript": "^5.9.3",
|
|
85
|
-
"vitest": "^4.0.
|
|
86
|
+
"vitest": "^4.0.18"
|
|
86
87
|
},
|
|
87
88
|
"files": [
|
|
88
89
|
"dist",
|