@ktjs/core 0.18.0 → 0.18.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 CHANGED
@@ -12,7 +12,7 @@ Core DOM manipulation utilities for KT.js framework with built-in JSX/TSX suppor
12
12
 
13
13
  `@ktjs/core` is the foundation of KT.js, providing the essential `h` function and DOM utilities for building web applications with direct DOM manipulation. It emphasizes performance, type safety, and minimal abstraction over native DOM APIs.
14
14
 
15
- **Current Version:** 0.16.0
15
+ **Current Version:** 0.18.1
16
16
 
17
17
  ## Features
18
18
 
@@ -42,6 +42,10 @@ Core DOM manipulation utilities for KT.js framework with built-in JSX/TSX suppor
42
42
  - Update props and children selectively
43
43
  - Efficient replacement strategy
44
44
  - Works with both native elements and function components
45
+ - **Ref Enhancement**: Change event binding support for `ref` (v0.18.1)
46
+ - New methods `addOnChange` and `removeOnChange` for listening to value changes
47
+ - Automatically calls registered callbacks when `ref.value` is updated
48
+ - When both old and new values are DOM nodes, automatically replaces old node with new one in the DOM
45
49
  - **DOM Utilities**: Helper functions for common DOM operations
46
50
  - Native method caching for performance
47
51
  - Symbol-based private properties for internal state
package/dist/index.d.ts CHANGED
@@ -178,7 +178,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
178
178
  * ## About
179
179
  * @package @ktjs/core
180
180
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
181
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
181
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
182
182
  * @license MIT
183
183
  * @link https://github.com/baendlorel/kt.js
184
184
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -215,7 +215,7 @@ var __ktjs_core__ = (function (exports) {
215
215
  * ## About
216
216
  * @package @ktjs/core
217
217
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
218
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
218
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
219
219
  * @license MIT
220
220
  * @link https://github.com/baendlorel/kt.js
221
221
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -240,7 +240,7 @@ var __ktjs_core__ = (function (exports) {
240
240
  * ## About
241
241
  * @package @ktjs/core
242
242
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
243
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
243
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
244
244
  * @license MIT
245
245
  * @link https://github.com/baendlorel/kt.js
246
246
  * @link https://baendlorel.github.io/ Welcome to my site!
package/dist/index.mjs CHANGED
@@ -212,7 +212,7 @@ const svgTempWrapper = document.createElement('div');
212
212
  * ## About
213
213
  * @package @ktjs/core
214
214
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
215
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
215
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
216
216
  * @license MIT
217
217
  * @link https://github.com/baendlorel/kt.js
218
218
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -164,7 +164,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
164
164
  * ## About
165
165
  * @package @ktjs/core
166
166
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
167
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
167
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
168
168
  * @license MIT
169
169
  * @link https://github.com/baendlorel/kt.js
170
170
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -212,7 +212,7 @@ const svgTempWrapper = document.createElement('div');
212
212
  * ## About
213
213
  * @package @ktjs/core
214
214
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
215
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
215
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
216
216
  * @license MIT
217
217
  * @link https://github.com/baendlorel/kt.js
218
218
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -158,7 +158,7 @@ type HTML<T extends (HTMLTag | SVGTag) & otherstring> = T extends SVGTag ? SVGEl
158
158
  * ## About
159
159
  * @package @ktjs/core
160
160
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
161
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
161
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
162
162
  * @license MIT
163
163
  * @link https://github.com/baendlorel/kt.js
164
164
  * @link https://baendlorel.github.io/ Welcome to my site!
@@ -212,7 +212,7 @@ const svgTempWrapper = document.createElement('div');
212
212
  * ## About
213
213
  * @package @ktjs/core
214
214
  * @author Kasukabe Tsumugi <futami16237@gmail.com>
215
- * @version 0.18.0 (Last Update: 2026.01.30 21:16:15.994)
215
+ * @version 0.18.1 (Last Update: 2026.01.30 21:24:36.481)
216
216
  * @license MIT
217
217
  * @link https://github.com/baendlorel/kt.js
218
218
  * @link https://baendlorel.github.io/ Welcome to my site!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/core",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "description": "Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",