@thi.ng/rdom 0.10.0 → 0.10.2
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/CHANGELOG.md +1 -1
- package/README.md +9 -12
- package/api.d.ts +5 -5
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/rdom)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -27,7 +27,7 @@ This project is part of the
|
|
|
27
27
|
|
|
28
28
|
## About
|
|
29
29
|
|
|
30
|
-
Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and
|
|
30
|
+
Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible
|
|
31
31
|
|
|
32
32
|
### From hdom to rdom: Reactive UIs without virtual DOMs
|
|
33
33
|
|
|
@@ -147,7 +147,7 @@ constructs, which can be used as lightweight adapters, i.e.:
|
|
|
147
147
|
- [@thi.ng/hdom](https://github.com/thi-ng/umbrella/tree/develop/packages/hdom) - Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors
|
|
148
148
|
- [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) - HTML/SVG/XML serialization of nested data structures, iterables & closures
|
|
149
149
|
- [@thi.ng/hiccup-html](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-html) - 100+ type-checked HTML5 element functions for [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) related infrastructure
|
|
150
|
-
- [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-svg) - SVG element functions for [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) &
|
|
150
|
+
- [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup-svg) - SVG element functions for [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup) & related tooling
|
|
151
151
|
- [@thi.ng/transducers](https://github.com/thi-ng/umbrella/tree/develop/packages/transducers) - Lightweight transducer implementations for ES6 / TypeScript
|
|
152
152
|
|
|
153
153
|
## Installation
|
|
@@ -166,14 +166,11 @@ ES module import:
|
|
|
166
166
|
|
|
167
167
|
For Node.js REPL:
|
|
168
168
|
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
node --experimental-repl-await
|
|
172
|
-
|
|
173
|
-
> const rdom = await import("@thi.ng/rdom");
|
|
169
|
+
```js
|
|
170
|
+
const rdom = await import("@thi.ng/rdom");
|
|
174
171
|
```
|
|
175
172
|
|
|
176
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 3.
|
|
173
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 3.81 KB
|
|
177
174
|
|
|
178
175
|
## Dependencies
|
|
179
176
|
|
|
@@ -262,7 +259,7 @@ $compile([
|
|
|
262
259
|
|
|
263
260
|
## Authors
|
|
264
261
|
|
|
265
|
-
Karsten Schmidt
|
|
262
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
266
263
|
|
|
267
264
|
If this project contributes to an academic publication, please cite it as:
|
|
268
265
|
|
|
@@ -277,4 +274,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
277
274
|
|
|
278
275
|
## License
|
|
279
276
|
|
|
280
|
-
© 2020 - 2022 Karsten Schmidt // Apache
|
|
277
|
+
© 2020 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ export interface IMountWith<T, M> extends IComponent<T> {
|
|
|
77
77
|
/**
|
|
78
78
|
* Syntax sugar for {@link IMountWith}.
|
|
79
79
|
*/
|
|
80
|
-
export
|
|
80
|
+
export type IMountWithState<T> = IMountWith<T, T>;
|
|
81
81
|
/**
|
|
82
82
|
* Component type returned by {@link $compile}.
|
|
83
83
|
*/
|
|
@@ -88,10 +88,10 @@ export interface CompiledComponent extends IComponent {
|
|
|
88
88
|
/**
|
|
89
89
|
* Any value which is either an {@link IComponent} or hiccup-style array/tree
|
|
90
90
|
*/
|
|
91
|
-
export
|
|
92
|
-
export
|
|
93
|
-
export
|
|
94
|
-
export
|
|
91
|
+
export type ComponentLike = IComponent | [string, ...(any | null)[]];
|
|
92
|
+
export type Callback = Fn0<void>;
|
|
93
|
+
export type Task = Fn0<void>;
|
|
94
|
+
export type NumOrElement = number | Element;
|
|
95
95
|
/**
|
|
96
96
|
* Interface for task schedulers. See {@link NullScheduler} and
|
|
97
97
|
* {@link RAFScheduler}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/rdom",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/rdom#readme",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"test": "testament test"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@thi.ng/api": "^8.
|
|
39
|
-
"@thi.ng/checks": "^3.3.
|
|
40
|
-
"@thi.ng/errors": "^2.2.
|
|
41
|
-
"@thi.ng/hiccup": "^4.2.
|
|
42
|
-
"@thi.ng/paths": "^5.1.
|
|
43
|
-
"@thi.ng/prefixes": "^2.1.
|
|
44
|
-
"@thi.ng/rstream": "^7.2.
|
|
45
|
-
"@thi.ng/strings": "^3.3.
|
|
38
|
+
"@thi.ng/api": "^8.6.0",
|
|
39
|
+
"@thi.ng/checks": "^3.3.5",
|
|
40
|
+
"@thi.ng/errors": "^2.2.6",
|
|
41
|
+
"@thi.ng/hiccup": "^4.2.26",
|
|
42
|
+
"@thi.ng/paths": "^5.1.25",
|
|
43
|
+
"@thi.ng/prefixes": "^2.1.15",
|
|
44
|
+
"@thi.ng/rstream": "^7.2.31",
|
|
45
|
+
"@thi.ng/strings": "^3.3.20"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@microsoft/api-extractor": "^7.33.
|
|
49
|
-
"@thi.ng/testament": "^0.3.
|
|
48
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
49
|
+
"@thi.ng/testament": "^0.3.7",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
51
|
"tools": "^0.0.1",
|
|
52
|
-
"typedoc": "^0.23.
|
|
53
|
-
"typescript": "^4.
|
|
52
|
+
"typedoc": "^0.23.22",
|
|
53
|
+
"typescript": "^4.9.4"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
56
56
|
"async",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"status": "beta",
|
|
141
141
|
"year": 2020
|
|
142
142
|
},
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
144
144
|
}
|