kt.js 0.10.3 → 0.11.0
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/dist/jsx-runtime.mjs +6 -2
- package/package.json +2 -2
package/dist/jsx-runtime.mjs
CHANGED
|
@@ -150,6 +150,10 @@ function applyAttr(element, attr) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
function apdSingle(element, c) {
|
|
153
|
+
// & JSX should ignore false, undefined, and null
|
|
154
|
+
if (c === false || c === undefined || c === null) {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
153
157
|
if (typeof c === 'object' && c !== null && 'isKT' in c) {
|
|
154
158
|
$append.call(element, c.value);
|
|
155
159
|
}
|
|
@@ -201,12 +205,12 @@ function applyContent(element, content) {
|
|
|
201
205
|
* ## About
|
|
202
206
|
* @package @ktjs/core
|
|
203
207
|
* @author Kasukabe Tsumugi <futami16237@gmail.com>
|
|
204
|
-
* @version 0.
|
|
208
|
+
* @version 0.11.0 (Last Update: 2026.01.14 15:06:22.073)
|
|
205
209
|
* @license MIT
|
|
206
210
|
* @link https://github.com/baendlorel/kt.js
|
|
207
211
|
* @link https://baendlorel.github.io/ Welcome to my site!
|
|
208
212
|
* @description Core functionality for kt.js - DOM manipulation utilities with JSX/TSX support
|
|
209
|
-
* @copyright Copyright (c)
|
|
213
|
+
* @copyright Copyright (c) 2026 Kasukabe Tsumugi. All rights reserved.
|
|
210
214
|
*/
|
|
211
215
|
const h = ((tag, attr = '', content = '') => {
|
|
212
216
|
if (typeof tag !== 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kt.js",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Kasukabe Tsumugi",
|
|
6
6
|
"email": "futami16237@gmail.com"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@ktjs/core": "0.
|
|
44
|
+
"@ktjs/core": "0.11.0",
|
|
45
45
|
"@ktjs/shortcuts": "0.7.3"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|