defered-branch 2.2.2 β†’ 2.2.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
@@ -15,7 +15,9 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
15
15
  - [🀝 Contributing](#contributing)
16
16
  - [πŸ¦‹ Trivia](#trivia)
17
17
 
18
- <h2 id="features">πŸš€ Features</h2>
18
+ ## Features
19
+
20
+ <a id="features"></a>
19
21
 
20
22
  - 🎯 **Four Execution Patterns**: Single/all-match Γ— immediate/dynamic logic
21
23
  - πŸ”’ **Type Safe**: Full TypeScript support with type inference
@@ -23,9 +25,11 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
23
25
  - 🧩 **Flexible**: Works with any function signature
24
26
  - πŸ“¦ **Generic**: Customizable branch, condition, and nomatch handler types
25
27
 
26
- <h2 id="change-log">⏲️ Change Log</h2>
28
+ ## Change Log
29
+
30
+ <a id="change-log"></a>
27
31
 
28
- - 2.2.1-2.2.2
32
+ - 2.2.1-2.2.3
29
33
  - Fix: Clear matched branch after execution to prevent stale state issues.
30
34
  - Add index to this document.
31
35
 
@@ -33,7 +37,9 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
33
37
  - Add `deferedBranchAll` and `deferedBranchAllDynamic` for multi-match scenarios.
34
38
  - Fix documentation typos.
35
39
 
36
- <h2 id="installation">πŸ“¦ Installation</h2>
40
+ ## Installation
41
+
42
+ <a id="installation"></a>
37
43
 
38
44
  ```bash
39
45
  npm install defered-branch
@@ -41,7 +47,9 @@ npm install defered-branch
41
47
  pnpm add defered-branch
42
48
  ```
43
49
 
44
- <h2 id="overview">🌟 Overview</h2>
50
+ ## Overview
51
+
52
+ <a id="overview"></a>
45
53
 
46
54
  ### `deferedBranch` - Single-Match Immediate πŸƒβ€β™‚οΈ
47
55
 
@@ -67,7 +75,9 @@ Reusable branching logic, execute all matches dynamically.
67
75
 
68
76
  **Use cases:** Plugin systems, middleware chains, observer patterns
69
77
 
70
- <h2 id="usage-examples">Usage Examples</h2>
78
+ ## Usage Examples
79
+
80
+ <a id="usage-examples"></a>
71
81
 
72
82
  ### Basic `deferedBranch`
73
83
 
@@ -204,7 +214,9 @@ function h<T extends HTMLTag>(
204
214
  }
205
215
  ```
206
216
 
207
- <h2 id="api-reference">πŸ”§ API Reference</h2>
217
+ ## API Reference
218
+
219
+ <a id="api-reference"></a>
208
220
 
209
221
  ### deferedBranch()
210
222
 
@@ -266,7 +278,9 @@ _Same as deferedBranch_
266
278
 
267
279
  _Same as deferedBranchDynamic_
268
280
 
269
- <h2 id="type-annotation">🧾 Type Annotation</h2>
281
+ ## Type Annotation
282
+
283
+ <a id="type-annotation"></a>
270
284
 
271
285
  The factory functions `deferedBranch`, `deferedBranchDynamic`, `deferedBranchAll`, and `deferedBranchAllDynamic` are generic helpers. You can provide explicit type parameters to describe the branch function signature and the optional `nomatch` handler.
272
286
 
@@ -323,15 +337,21 @@ calc.predicate();
323
337
  const result = calc.run(2, 3); // typed as number | undefined
324
338
  ```
325
339
 
326
- <h2 id="license">πŸ“„ License</h2>
340
+ ## License
341
+
342
+ <a id="license"></a>
327
343
 
328
344
  MIT License - see [LICENSE](LICENSE) file for details.
329
345
 
330
- <h2 id="contributing">🀝 Contributing</h2>
346
+ ## Contributing
347
+
348
+ <a id="contributing"></a>
331
349
 
332
350
  Contributions are welcome! Please feel free to submit issues and pull requests.
333
351
 
334
- <h2 id="trivia">πŸ¦‹ Trivia</h2>
352
+ ## Trivia
353
+
354
+ <a id="trivia"></a>
335
355
 
336
356
  [**KT.js**](https://www.npmjs.com/package/kt.js) is the reason of this package's birth. It uses `deferedBranchDynamic` internally to handle attribute and content processing in a clean, reusable way.
337
357
 
package/dist/index.d.ts CHANGED
@@ -138,7 +138,7 @@ declare class DeferedBranchAll<BranchFn extends AnyFn, NoMatchFn extends AnyFn>
138
138
  * ## About
139
139
  * @package DeferedBranch
140
140
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
141
- * @version 2.2.2 (Last Update: 2025.09.21 17:25:17.771)
141
+ * @version 2.2.4 (Last Update: 2025.09.21 18:53:18.840)
142
142
  * @license MIT
143
143
  * @link https://github.com/baendlorel/defered-branch
144
144
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -179,7 +179,7 @@ declare const deferedBranch: <BranchFn extends AnyFn = AnyFn, NoMatchFn extends
179
179
  * ## About
180
180
  * @package DeferedBranch
181
181
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
182
- * @version 2.2.2 (Last Update: 2025.09.21 17:25:17.771)
182
+ * @version 2.2.4 (Last Update: 2025.09.21 18:53:18.840)
183
183
  * @license MIT
184
184
  * @link https://github.com/baendlorel/defered-branch
185
185
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -213,7 +213,7 @@ declare const deferedBranchDynamic: <BranchFn extends AnyFn = AnyFn, NoMatchFn e
213
213
  * ## About
214
214
  * @package DeferedBranch
215
215
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
216
- * @version 2.2.2 (Last Update: 2025.09.21 17:25:17.771)
216
+ * @version 2.2.4 (Last Update: 2025.09.21 18:53:18.840)
217
217
  * @license MIT
218
218
  * @link https://github.com/baendlorel/defered-branch
219
219
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -254,7 +254,7 @@ declare const deferedBranchAll: <BranchFn extends AnyFn = AnyFn, NoMatchFn exten
254
254
  * ## About
255
255
  * @package DeferedBranch
256
256
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
257
- * @version 2.2.2 (Last Update: 2025.09.21 17:25:17.771)
257
+ * @version 2.2.4 (Last Update: 2025.09.21 18:53:18.840)
258
258
  * @license MIT
259
259
  * @link https://github.com/baendlorel/defered-branch
260
260
  * @link https://baendlorel.github.io/ Welcome to my site!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "defered-branch",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"