@thi.ng/rdom 1.7.60 → 1.7.65

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.
Files changed (2) hide show
  1. package/package.json +151 -151
  2. package/CHANGELOG.md +0 -221
package/package.json CHANGED
@@ -1,152 +1,152 @@
1
1
  {
2
- "name": "@thi.ng/rdom",
3
- "version": "1.7.60",
4
- "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
12
- },
13
- "homepage": "https://thi.ng/rdom",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- },
23
- {
24
- "type": "liberapay",
25
- "url": "https://liberapay.com/thi.ng"
26
- }
27
- ],
28
- "author": "Karsten Schmidt (https://thi.ng)",
29
- "license": "Apache-2.0",
30
- "scripts": {
31
- "build": "yarn build:esbuild && yarn build:decl",
32
- "build:decl": "tsc --declaration --emitDeclarationOnly",
33
- "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
- "clean": "bun ../../tools/src/clean-package.ts",
35
- "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
- "pub": "yarn npm publish --access public",
38
- "pub:wip": "yarn npm publish --access public --no-git-tag-version",
39
- "test": "bun test",
40
- "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
- },
42
- "dependencies": {
43
- "@thi.ng/api": "^8.12.2",
44
- "@thi.ng/checks": "^3.7.18",
45
- "@thi.ng/errors": "^2.5.42",
46
- "@thi.ng/hiccup": "^5.3.24",
47
- "@thi.ng/paths": "^5.2.21",
48
- "@thi.ng/prefixes": "^2.3.53",
49
- "@thi.ng/rstream": "^9.2.43",
50
- "@thi.ng/strings": "^3.9.22"
51
- },
52
- "devDependencies": {
53
- "esbuild": "^0.25.9",
54
- "typedoc": "^0.28.12",
55
- "typescript": "^5.9.2"
56
- },
57
- "keywords": [
58
- "async",
59
- "browser",
60
- "compiler",
61
- "component",
62
- "css",
63
- "datastructure",
64
- "dom",
65
- "hiccup",
66
- "html",
67
- "lifecycle",
68
- "reactive",
69
- "rstream",
70
- "svg",
71
- "tree",
72
- "typescript",
73
- "ui"
74
- ],
75
- "publishConfig": {
76
- "access": "public"
77
- },
78
- "engines": {
79
- "node": ">=18"
80
- },
81
- "files": [
82
- "./*.js",
83
- "./*.d.ts"
84
- ],
85
- "exports": {
86
- ".": {
87
- "default": "./index.js"
88
- },
89
- "./api": {
90
- "default": "./api.js"
91
- },
92
- "./async": {
93
- "default": "./async.js"
94
- },
95
- "./checks": {
96
- "default": "./checks.js"
97
- },
98
- "./compile": {
99
- "default": "./compile.js"
100
- },
101
- "./component": {
102
- "default": "./component.js"
103
- },
104
- "./dom": {
105
- "default": "./dom.js"
106
- },
107
- "./event": {
108
- "default": "./event.js"
109
- },
110
- "./idgen": {
111
- "default": "./idgen.js"
112
- },
113
- "./klist": {
114
- "default": "./klist.js"
115
- },
116
- "./lazy": {
117
- "default": "./lazy.js"
118
- },
119
- "./list": {
120
- "default": "./list.js"
121
- },
122
- "./object": {
123
- "default": "./object.js"
124
- },
125
- "./promise": {
126
- "default": "./promise.js"
127
- },
128
- "./replace": {
129
- "default": "./replace.js"
130
- },
131
- "./sub": {
132
- "default": "./sub.js"
133
- },
134
- "./switch": {
135
- "default": "./switch.js"
136
- },
137
- "./wrap": {
138
- "default": "./wrap.js"
139
- }
140
- },
141
- "thi.ng": {
142
- "related": [
143
- "hdom",
144
- "hiccup",
145
- "hiccup-html",
146
- "hiccup-svg",
147
- "transducers"
148
- ],
149
- "year": 2020
150
- },
151
- "gitHead": "fbf4b46ba8a5ecff8c5423f4c2d158d208d20fc8\n"
152
- }
2
+ "name": "@thi.ng/rdom",
3
+ "version": "1.7.65",
4
+ "description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://thi.ng/rdom",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
18
+ },
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ },
23
+ {
24
+ "type": "liberapay",
25
+ "url": "https://liberapay.com/thi.ng"
26
+ }
27
+ ],
28
+ "author": "Karsten Schmidt (https://thi.ng)",
29
+ "license": "Apache-2.0",
30
+ "scripts": {
31
+ "build": "yarn build:esbuild && yarn build:decl",
32
+ "build:decl": "tsc --declaration --emitDeclarationOnly",
33
+ "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
+ "clean": "bun ../../tools/src/clean-package.ts",
35
+ "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
37
+ "pub": "npm publish --access public",
38
+ "pub:wip": "npm publish --access public --no-git-tag-version",
39
+ "test": "bun test",
40
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
+ },
42
+ "dependencies": {
43
+ "@thi.ng/api": "^8.12.7",
44
+ "@thi.ng/checks": "^3.7.23",
45
+ "@thi.ng/errors": "^2.5.47",
46
+ "@thi.ng/hiccup": "^5.3.29",
47
+ "@thi.ng/paths": "^5.2.26",
48
+ "@thi.ng/prefixes": "^2.3.58",
49
+ "@thi.ng/rstream": "^9.3.4",
50
+ "@thi.ng/strings": "^3.9.27"
51
+ },
52
+ "devDependencies": {
53
+ "esbuild": "^0.25.11",
54
+ "typedoc": "^0.28.14",
55
+ "typescript": "^5.9.3"
56
+ },
57
+ "keywords": [
58
+ "async",
59
+ "browser",
60
+ "compiler",
61
+ "component",
62
+ "css",
63
+ "datastructure",
64
+ "dom",
65
+ "hiccup",
66
+ "html",
67
+ "lifecycle",
68
+ "reactive",
69
+ "rstream",
70
+ "svg",
71
+ "tree",
72
+ "typescript",
73
+ "ui"
74
+ ],
75
+ "publishConfig": {
76
+ "access": "public"
77
+ },
78
+ "engines": {
79
+ "node": ">=18"
80
+ },
81
+ "files": [
82
+ "./*.js",
83
+ "./*.d.ts"
84
+ ],
85
+ "exports": {
86
+ ".": {
87
+ "default": "./index.js"
88
+ },
89
+ "./api": {
90
+ "default": "./api.js"
91
+ },
92
+ "./async": {
93
+ "default": "./async.js"
94
+ },
95
+ "./checks": {
96
+ "default": "./checks.js"
97
+ },
98
+ "./compile": {
99
+ "default": "./compile.js"
100
+ },
101
+ "./component": {
102
+ "default": "./component.js"
103
+ },
104
+ "./dom": {
105
+ "default": "./dom.js"
106
+ },
107
+ "./event": {
108
+ "default": "./event.js"
109
+ },
110
+ "./idgen": {
111
+ "default": "./idgen.js"
112
+ },
113
+ "./klist": {
114
+ "default": "./klist.js"
115
+ },
116
+ "./lazy": {
117
+ "default": "./lazy.js"
118
+ },
119
+ "./list": {
120
+ "default": "./list.js"
121
+ },
122
+ "./object": {
123
+ "default": "./object.js"
124
+ },
125
+ "./promise": {
126
+ "default": "./promise.js"
127
+ },
128
+ "./replace": {
129
+ "default": "./replace.js"
130
+ },
131
+ "./sub": {
132
+ "default": "./sub.js"
133
+ },
134
+ "./switch": {
135
+ "default": "./switch.js"
136
+ },
137
+ "./wrap": {
138
+ "default": "./wrap.js"
139
+ }
140
+ },
141
+ "thi.ng": {
142
+ "related": [
143
+ "hdom",
144
+ "hiccup",
145
+ "hiccup-html",
146
+ "hiccup-svg",
147
+ "transducers"
148
+ ],
149
+ "year": 2020
150
+ },
151
+ "gitHead": "d977f819bcafdcb2b24c45f8d01a167fe29fc85a\n"
152
+ }
package/CHANGELOG.md DELETED
@@ -1,221 +0,0 @@
1
- # Change Log
2
-
3
- - **Last updated**: 2025-09-01T16:38:35Z
4
- - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
-
6
- All notable changes to this project will be documented in this file.
7
- Only versions published since **2022-01-01** are listed here.
8
- Please consult the Git history for older version information.
9
- See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
10
-
11
- **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
- and/or version bumps of transitive dependencies.
13
-
14
- ### [1.7.19](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.19) (2025-01-14)
15
-
16
- #### ♻️ Refactoring
17
-
18
- - use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
19
-
20
- ### [1.7.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.13) (2024-11-24)
21
-
22
- #### ⏱ Performance improvements
23
-
24
- - minor update `$el()`, avoid object spread for null attribs ([a970b79](https://github.com/thi-ng/umbrella/commit/a970b79))
25
-
26
- ### [1.7.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.5) (2024-10-03)
27
-
28
- #### ⏱ Performance improvements
29
-
30
- - internal update __setAttrib() ([15ed31d](https://github.com/thi-ng/umbrella/commit/15ed31d))
31
- - only lookup property setters if value non-nullish
32
-
33
- ### [1.7.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.4) (2024-09-22)
34
-
35
- #### 🩹 Bug fixes
36
-
37
- - further fix __updateValueAttrib() ([378441c](https://github.com/thi-ng/umbrella/commit/378441c))
38
- - also skip cursor pos update for readonly elements
39
- - fix textarea handling
40
-
41
- ### [1.7.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.3) (2024-09-19)
42
-
43
- #### 🩹 Bug fixes
44
-
45
- - fix selection update in __updateValueAttrib() ([dada2de](https://github.com/thi-ng/umbrella/commit/dada2de))
46
- - don't update selection (cursor pos) when updating disabled elements
47
- - workaround for Safari focus issue
48
-
49
- ## [1.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.7.0) (2024-08-28)
50
-
51
- #### 🚀 Features
52
-
53
- - support setting CSS vars via $style() ([81169ee](https://github.com/thi-ng/umbrella/commit/81169ee))
54
-
55
- ## [1.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.6.0) (2024-08-10)
56
-
57
- #### 🚀 Features
58
-
59
- - add `$inputToggle()` HOF event handler ([50e0c29](https://github.com/thi-ng/umbrella/commit/50e0c29))
60
-
61
- ### [1.5.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.5.1) (2024-07-06)
62
-
63
- #### 🩹 Bug fixes
64
-
65
- - update $compile() handling of embedded functions ([#477](https://github.com/thi-ng/umbrella/issues/477)) ([5ac2831](https://github.com/thi-ng/umbrella/commit/5ac2831))
66
- - add fn checks & branches to call embedded fn and compile its result
67
- - update docs
68
-
69
- ## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.5.0) (2024-07-03)
70
-
71
- #### 🚀 Features
72
-
73
- - add support for no-arg fns in child positions ([6327fd3](https://github.com/thi-ng/umbrella/commit/6327fd3))
74
- - update `$tree()` to support no-arg functions in child positions
75
-
76
- ### [1.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.4.1) (2024-06-21)
77
-
78
- #### 🩹 Bug fixes
79
-
80
- - fix [#469](https://github.com/thi-ng/umbrella/issues/469), update setAttrib() `class` handling ([6cf8c56](https://github.com/thi-ng/umbrella/commit/6cf8c56))
81
- - use `el.setAttribute()` to be compatible w/ SVG elements
82
- - https://developer.mozilla.org/en-US/docs/Web/API/Element/className#notes
83
-
84
- #### ♻️ Refactoring
85
-
86
- - rename various rest args to be more semantically meaningful ([8088a56](https://github.com/thi-ng/umbrella/commit/8088a56))
87
- - enforce uniform naming convention of internal functions ([56992b2](https://github.com/thi-ng/umbrella/commit/56992b2))
88
-
89
- ## [1.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.4.0) (2024-05-08)
90
-
91
- #### 🚀 Features
92
-
93
- - add rdom-klist example project, update readmes ([cd458ac](https://github.com/thi-ng/umbrella/commit/cd458ac))
94
- - add rdom-klist example project, update readmes ([531437f](https://github.com/thi-ng/umbrella/commit/531437f))
95
-
96
- ### [1.3.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.3.3) (2024-04-26)
97
-
98
- #### 🩹 Bug fixes
99
-
100
- - update $compile() async-iterable attrib handling ([f977556](https://github.com/thi-ng/umbrella/commit/f977556))
101
-
102
- ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.3.0) (2024-04-20)
103
-
104
- #### 🚀 Features
105
-
106
- - add support for async iterables ([742e0db](https://github.com/thi-ng/umbrella/commit/742e0db))
107
- - add $async() component wrapper
108
- - add $asyncA() attribute wrapper
109
- - update $compile() to support embedded `AsyncIterable` values
110
- - update wrapper() to support reactive/async attribs ([96ea779](https://github.com/thi-ng/umbrella/commit/96ea779))
111
- - internally switch from `$el()` => `$compile()`
112
-
113
- #### ♻️ Refactoring
114
-
115
- - update type usage ([56d5747](https://github.com/thi-ng/umbrella/commit/56d5747))
116
-
117
- ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.2.0) (2024-04-11)
118
-
119
- #### 🚀 Features
120
-
121
- - update setAttrib() property vs. attrib handling ([52cfe72](https://github.com/thi-ng/umbrella/commit/52cfe72))
122
- - add/build cache of property setters
123
- - update setAttrib() to prioritize setters and only fallback to attributes
124
-
125
- ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.1.0) (2024-02-10)
126
-
127
- #### 🚀 Features
128
-
129
- - add $toggleClasses() DOM util ([31d19b1](https://github.com/thi-ng/umbrella/commit/31d19b1))
130
-
131
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.0.0) (2024-01-23)
132
-
133
- #### 🛑 Breaking changes
134
-
135
- - remove scheduler, update IComponent signatures ([3728c9b](https://github.com/thi-ng/umbrella/commit/3728c9b))
136
- - BREAKING CHANGE: remove scheduler, update IComponent and
137
- various DOM update fn signatures
138
- - remove scheduler support since never used (other than
139
- default/dummy `NullScheduler`) and `RAFScheduler` logic is
140
- better handled via `synRAF()` or similar (also see [#402](https://github.com/thi-ng/umbrella/issues/402))
141
- - update IComponent.mount() signature to use `ParentNode
142
- as type for `parent` arg, e.g. to support use w/ `ShadowRoot`
143
- - update various DOM update fns with same parent arg type
144
- - update all utility components/wrappers
145
-
146
- ## [0.14.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.14.0) (2023-12-28)
147
-
148
- #### 🚀 Features
149
-
150
- - add $lazy() component wrapper ([5ad3856](https://github.com/thi-ng/umbrella/commit/5ad3856))
151
-
152
- ### [0.13.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.13.4) (2023-12-11)
153
-
154
- #### ♻️ Refactoring
155
-
156
- - update boolean attrib handling in setAttrib() ([96a21ab](https://github.com/thi-ng/umbrella/commit/96a21ab))
157
-
158
- ### [0.13.3](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.13.3) (2023-12-09)
159
-
160
- #### 🩹 Bug fixes
161
-
162
- - fix updateValueAttrib() for some input types ([81facee](https://github.com/thi-ng/umbrella/commit/81facee))
163
-
164
- ## [0.13.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.13.0) (2023-11-12)
165
-
166
- #### 🚀 Features
167
-
168
- - add $wrapEl() DOM element component wrapper ([298e9a1](https://github.com/thi-ng/umbrella/commit/298e9a1))
169
- - update $compile() to support existing DOM elements ([859521a](https://github.com/thi-ng/umbrella/commit/859521a))
170
- - update $attribs() to return element ([1f82021](https://github.com/thi-ng/umbrella/commit/1f82021))
171
-
172
- ### [0.12.21](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.12.21) (2023-11-09)
173
-
174
- #### ♻️ Refactoring
175
-
176
- - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
177
-
178
- ### [0.12.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.12.13) (2023-10-18)
179
-
180
- #### 🩹 Bug fixes
181
-
182
- - update $text() to set el.textContent, simplify ([7cd6cc0](https://github.com/thi-ng/umbrella/commit/7cd6cc0))
183
-
184
- ## [0.12.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.12.0) (2023-08-22)
185
-
186
- #### 🚀 Features
187
-
188
- - update $text() handling of undefined values ([55faa71](https://github.com/thi-ng/umbrella/commit/55faa71))
189
-
190
- ## [0.11.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.11.0) (2023-04-08)
191
-
192
- #### 🚀 Features
193
-
194
- - add null check for $remove() ([db9d2a1](https://github.com/thi-ng/umbrella/commit/db9d2a1))
195
- - add stream IDs for $list/$klist/$Sub/$SubA ([bfd4058](https://github.com/thi-ng/umbrella/commit/bfd4058))
196
- - add $subWithID(), add IDs for various constructs ([404eacb](https://github.com/thi-ng/umbrella/commit/404eacb))
197
-
198
- ## [0.10.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.10.0) (2022-11-30)
199
-
200
- #### 🚀 Features
201
-
202
- - add DOM comment support ([#367](https://github.com/thi-ng/umbrella/issues/367)), other refactorings ([3fd5f8e](https://github.com/thi-ng/umbrella/commit/3fd5f8e))
203
- - add $comment(), isComment()
204
- - add Component.$comment() syntax sugar
205
- - add comment check/branch in $tree()
206
- - update args for $addChild(), $remove(), $moveTo()
207
- - update $text(), $html() to support SVG elements
208
- - add doc strings
209
-
210
- ## [0.9.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.9.0) (2022-07-12)
211
-
212
- #### 🚀 Features
213
-
214
- - update $input() generics ([6be320a](https://github.com/thi-ng/umbrella/commit/6be320a))
215
- - allow any string-derived stream types
216
-
217
- ### [0.8.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@0.8.7) (2022-04-07)
218
-
219
- #### ♻️ Refactoring
220
-
221
- - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))