defered-branch 2.2.2 β†’ 2.2.3

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,7 @@ 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
19
 
20
20
  - 🎯 **Four Execution Patterns**: Single/all-match Γ— immediate/dynamic logic
21
21
  - πŸ”’ **Type Safe**: Full TypeScript support with type inference
@@ -23,9 +23,9 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
23
23
  - 🧩 **Flexible**: Works with any function signature
24
24
  - πŸ“¦ **Generic**: Customizable branch, condition, and nomatch handler types
25
25
 
26
- <h2 id="change-log">⏲️ Change Log</h2>
26
+ ## Change Log
27
27
 
28
- - 2.2.1-2.2.2
28
+ - 2.2.1-2.2.3
29
29
  - Fix: Clear matched branch after execution to prevent stale state issues.
30
30
  - Add index to this document.
31
31
 
@@ -33,7 +33,7 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
33
33
  - Add `deferedBranchAll` and `deferedBranchAllDynamic` for multi-match scenarios.
34
34
  - Fix documentation typos.
35
35
 
36
- <h2 id="installation">πŸ“¦ Installation</h2>
36
+ ## Installation
37
37
 
38
38
  ```bash
39
39
  npm install defered-branch
@@ -41,7 +41,7 @@ npm install defered-branch
41
41
  pnpm add defered-branch
42
42
  ```
43
43
 
44
- <h2 id="overview">🌟 Overview</h2>
44
+ ## Overview
45
45
 
46
46
  ### `deferedBranch` - Single-Match Immediate πŸƒβ€β™‚οΈ
47
47
 
@@ -67,7 +67,7 @@ Reusable branching logic, execute all matches dynamically.
67
67
 
68
68
  **Use cases:** Plugin systems, middleware chains, observer patterns
69
69
 
70
- <h2 id="usage-examples">Usage Examples</h2>
70
+ ## Usage Examples
71
71
 
72
72
  ### Basic `deferedBranch`
73
73
 
@@ -204,7 +204,7 @@ function h<T extends HTMLTag>(
204
204
  }
205
205
  ```
206
206
 
207
- <h2 id="api-reference">πŸ”§ API Reference</h2>
207
+ ## API Reference
208
208
 
209
209
  ### deferedBranch()
210
210
 
@@ -266,7 +266,7 @@ _Same as deferedBranch_
266
266
 
267
267
  _Same as deferedBranchDynamic_
268
268
 
269
- <h2 id="type-annotation">🧾 Type Annotation</h2>
269
+ ## Type Annotation
270
270
 
271
271
  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
272
 
@@ -323,15 +323,15 @@ calc.predicate();
323
323
  const result = calc.run(2, 3); // typed as number | undefined
324
324
  ```
325
325
 
326
- <h2 id="license">πŸ“„ License</h2>
326
+ ## License
327
327
 
328
328
  MIT License - see [LICENSE](LICENSE) file for details.
329
329
 
330
- <h2 id="contributing">🀝 Contributing</h2>
330
+ ## Contributing
331
331
 
332
332
  Contributions are welcome! Please feel free to submit issues and pull requests.
333
333
 
334
- <h2 id="trivia">πŸ¦‹ Trivia</h2>
334
+ ## Trivia
335
335
 
336
336
  [**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
337
 
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.3 (Last Update: 2025.09.21 18:48:42.785)
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.3 (Last Update: 2025.09.21 18:48:42.785)
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.3 (Last Update: 2025.09.21 18:48:42.785)
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.3 (Last Update: 2025.09.21 18:48:42.785)
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.3",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"