@thi.ng/rdom 1.3.0 → 1.3.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/README.md +9 -6
  3. package/package.json +11 -12
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-04-20T14:42:45Z
3
+ - **Last updated**: 2024-04-25T19:44:55Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -119,8 +119,8 @@ please consult the docs for these packages to learn more about the available
119
119
  constructs and patterns. Most of _rdom_ only deals with either subscribing to
120
120
  reactive values, async iterables and/or wrapping/transforming existing
121
121
  subscriptions, either explicitly using the provided control components (e.g.
122
- [`$async()`](https://docs.thi.ng/umbrella/rdom/functions/_async.html)),
123
- [`$sub()`](https://docs.thi.ng/umbrella/rdom/functions/_sub.html), or using
122
+ [`$async()`](https://docs.thi.ng/umbrella/rdom/functions/_async-1.html)),
123
+ [`$sub()`](https://docs.thi.ng/umbrella/rdom/functions/_sub-1.html), or using
124
124
  [`$compile()`](https://docs.thi.ng/umbrella/rdom/functions/_compile.html) to
125
125
  auto-wrap such values embedded in an hiccup tree.
126
126
 
@@ -171,10 +171,10 @@ for the implementation of common UI structures (e.g. item lists of any kind).
171
171
  The following links lead to the documentation of these wrappers, incl. small
172
172
  code examples:
173
173
 
174
- - [$async](https://docs.thi.ng/umbrella/rdom/functions/_async.html)
174
+ - [$async](https://docs.thi.ng/umbrella/rdom/functions/_async-1.html)
175
175
  - [$klist](https://docs.thi.ng/umbrella/rdom/functions/_klist.html)
176
176
  - [$list](https://docs.thi.ng/umbrella/rdom/functions/_list.html)
177
- - [$lazy](https://docs.thi.ng/umbrella/rdom/functions/_lazy.html)
177
+ - [$lazy](https://docs.thi.ng/umbrella/rdom/functions/_lazy-1.html)
178
178
  - [$object](https://docs.thi.ng/umbrella/rdom/functions/_object-1.html)
179
179
  - [$promise](https://docs.thi.ng/umbrella/rdom/functions/_promise-1.html)
180
180
  - [$refresh](https://docs.thi.ng/umbrella/rdom/functions/_refresh.html)
@@ -248,7 +248,9 @@ $compile([
248
248
 
249
249
  Work is underway to better support [built-in
250
250
  AsyncIterables](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_async_iterator_and_async_iterable_protocols)
251
- (possibly entirely in-lieu of rstream constructs). Currently, they can only be directly used for simple text or attribute values (also see the [rdom-async example](https://github.com/thi-ng/umbrella/blob/develop/examples/rdom-async)):
251
+ (possibly entirely in-lieu of rstream constructs). Currently, they can only be
252
+ directly used for simple text or attribute values (also see the [rdom-async
253
+ example](https://github.com/thi-ng/umbrella/blob/develop/examples/rdom-async)):
252
254
 
253
255
  ```ts
254
256
  import { $compile } from "@thi.ng/rdom";
@@ -257,7 +259,8 @@ import { range, source } from "@thi.ng/transducers-async";
257
259
  // infinite 1Hz counter
258
260
  const counter = range(1000);
259
261
 
260
- // manually updated click counter (also an async iterable)
262
+ // manually updated click counter (an async iterable with extended API)
263
+ // see: https://docs.thi.ng/umbrella/transducers-async/functions/source-1.html
261
264
  const clicks = source(0);
262
265
 
263
266
  // event handler to update click count
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom",
3
- "version": "1.3.0",
3
+ "version": "1.3.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",
@@ -27,7 +27,7 @@
27
27
  "build": "yarn build:esbuild && yarn build:decl",
28
28
  "build:decl": "tsc --declaration --emitDeclarationOnly",
29
29
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
30
- "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
30
+ "clean": "bun ../../tools/src/clean-package.ts",
31
31
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
32
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
33
33
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
@@ -37,19 +37,18 @@
37
37
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@thi.ng/api": "^8.11.0",
41
- "@thi.ng/checks": "^3.6.2",
42
- "@thi.ng/errors": "^2.5.5",
43
- "@thi.ng/hiccup": "^5.1.29",
44
- "@thi.ng/paths": "^5.1.79",
45
- "@thi.ng/prefixes": "^2.3.17",
46
- "@thi.ng/rstream": "^8.4.1",
47
- "@thi.ng/strings": "^3.7.31"
40
+ "@thi.ng/api": "^8.11.1",
41
+ "@thi.ng/checks": "^3.6.3",
42
+ "@thi.ng/errors": "^2.5.6",
43
+ "@thi.ng/hiccup": "^5.2.0",
44
+ "@thi.ng/paths": "^5.1.80",
45
+ "@thi.ng/prefixes": "^2.3.18",
46
+ "@thi.ng/rstream": "^8.4.3",
47
+ "@thi.ng/strings": "^3.7.32"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@microsoft/api-extractor": "^7.43.0",
51
51
  "esbuild": "^0.20.2",
52
- "rimraf": "^5.0.5",
53
52
  "typedoc": "^0.25.12",
54
53
  "typescript": "^5.4.3"
55
54
  },
@@ -146,5 +145,5 @@
146
145
  ],
147
146
  "year": 2020
148
147
  },
149
- "gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n"
148
+ "gitHead": "aed3421c21044c005fbcb7cc37965ccf85a870d2\n"
150
149
  }