defered-branch 2.2.4 β†’ 2.2.5

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,20 +4,20 @@ A lightweight library providing a if-else like branch, but with deferred executi
4
4
 
5
5
  For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github.io/?repoType=npm)
6
6
 
7
- - [πŸš€ Features](#features)
8
- - [⏲️ Change Log](#change-log)
9
- - [πŸ“¦ Installation](#installation)
10
- - [🌟 Overview](#overview)
11
- - [πŸ“š Usage Examples](#usage-examples)
12
- - [πŸ”§ API Reference](#api-reference)
13
- - [🧾 Type Annotation](#type-annotation)
14
- - [πŸ“„ License](#license)
15
- - [🀝 Contributing](#contributing)
16
- - [πŸ¦‹ Trivia](#trivia)
7
+ - [πŸš€ Features](#user-content-features)
8
+ - [⏲️ Change Log](#user-content-change-log)
9
+ - [πŸ“¦ Installation](#user-content-installation)
10
+ - [🌟 Overview](#user-content-overview)
11
+ - [πŸ“š Usage Examples](#user-content-usage-examples)
12
+ - [πŸ”§ API Reference](#user-content-api-reference)
13
+ - [🧾 Type Annotation](#user-content-type-annotation)
14
+ - [πŸ“„ License](#user-content-license)
15
+ - [🀝 Contributing](#user-content-contributing)
16
+ - [πŸ¦‹ Trivia](#user-content-trivia)
17
17
 
18
18
  ## Features
19
19
 
20
- <a id="features"></a>
20
+ <a id="user-content-features"></a>
21
21
 
22
22
  - 🎯 **Four Execution Patterns**: Single/all-match Γ— immediate/dynamic logic
23
23
  - πŸ”’ **Type Safe**: Full TypeScript support with type inference
@@ -27,11 +27,12 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
27
27
 
28
28
  ## Change Log
29
29
 
30
- <a id="change-log"></a>
30
+ <a id="user-content-change-log"></a>
31
31
 
32
- - 2.2.1-2.2.3
32
+ - 2.2.1-2.2.5
33
33
  - Fix: Clear matched branch after execution to prevent stale state issues.
34
34
  - Add index to this document.
35
+ - Fixing anchors for npm many times πŸ’’
35
36
 
36
37
  - 2.2.0
37
38
  - Add `deferedBranchAll` and `deferedBranchAllDynamic` for multi-match scenarios.
@@ -39,7 +40,7 @@ For more awesome packages, check out [my homepageπŸ’›](https://baendlorel.github
39
40
 
40
41
  ## Installation
41
42
 
42
- <a id="installation"></a>
43
+ <a id="user-content-installation"></a>
43
44
 
44
45
  ```bash
45
46
  npm install defered-branch
@@ -49,7 +50,7 @@ pnpm add defered-branch
49
50
 
50
51
  ## Overview
51
52
 
52
- <a id="overview"></a>
53
+ <a id="user-content-overview"></a>
53
54
 
54
55
  ### `deferedBranch` - Single-Match Immediate πŸƒβ€β™‚οΈ
55
56
 
@@ -77,7 +78,7 @@ Reusable branching logic, execute all matches dynamically.
77
78
 
78
79
  ## Usage Examples
79
80
 
80
- <a id="usage-examples"></a>
81
+ <a id="user-content-usage-examples"></a>
81
82
 
82
83
  ### Basic `deferedBranch`
83
84
 
@@ -216,7 +217,7 @@ function h<T extends HTMLTag>(
216
217
 
217
218
  ## API Reference
218
219
 
219
- <a id="api-reference"></a>
220
+ <a id="user-content-api-reference"></a>
220
221
 
221
222
  ### deferedBranch()
222
223
 
@@ -280,7 +281,7 @@ _Same as deferedBranchDynamic_
280
281
 
281
282
  ## Type Annotation
282
283
 
283
- <a id="type-annotation"></a>
284
+ <a id="user-content-type-annotation"></a>
284
285
 
285
286
  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.
286
287
 
@@ -339,19 +340,19 @@ const result = calc.run(2, 3); // typed as number | undefined
339
340
 
340
341
  ## License
341
342
 
342
- <a id="license"></a>
343
+ <a id="user-content-license"></a>
343
344
 
344
345
  MIT License - see [LICENSE](LICENSE) file for details.
345
346
 
346
347
  ## Contributing
347
348
 
348
- <a id="contributing"></a>
349
+ <a id="user-content-contributing"></a>
349
350
 
350
351
  Contributions are welcome! Please feel free to submit issues and pull requests.
351
352
 
352
353
  ## Trivia
353
354
 
354
- <a id="trivia"></a>
355
+ <a id="user-content-trivia"></a>
355
356
 
356
357
  [**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.
357
358
 
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.4 (Last Update: 2025.09.21 18:53:18.840)
141
+ * @version 2.2.5 (Last Update: 2025.09.21 19:14:47.820)
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.4 (Last Update: 2025.09.21 18:53:18.840)
182
+ * @version 2.2.5 (Last Update: 2025.09.21 19:14:47.820)
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.4 (Last Update: 2025.09.21 18:53:18.840)
216
+ * @version 2.2.5 (Last Update: 2025.09.21 19:14:47.820)
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.4 (Last Update: 2025.09.21 18:53:18.840)
257
+ * @version 2.2.5 (Last Update: 2025.09.21 19:14:47.820)
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.4",
3
+ "version": "2.2.5",
4
4
  "author": {
5
5
  "name": "Kasukabe Tsumugi",
6
6
  "email": "futami16237@gmail.com"