@thi.ng/hdom-components 5.1.145 → 5.1.147
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 +7 -1
- package/README.md +2 -2
- package/canvas.js +4 -4
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**:
|
|
3
|
+
- **Last updated**: 2025-01-14T12:23:33Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [5.1.147](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-components@5.1.147) (2025-01-14)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- use optional chaining & nullish coalescing ([c5a0a13](https://github.com/thi-ng/umbrella/commit/c5a0a13))
|
|
17
|
+
|
|
12
18
|
### [5.1.120](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-components@5.1.120) (2024-06-21)
|
|
13
19
|
|
|
14
20
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ Browser ESM import:
|
|
|
68
68
|
|
|
69
69
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
70
70
|
|
|
71
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 2.
|
|
71
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 2.04 KB
|
|
72
72
|
|
|
73
73
|
## Dependencies
|
|
74
74
|
|
|
@@ -144,4 +144,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
144
144
|
|
|
145
145
|
## License
|
|
146
146
|
|
|
147
|
-
© 2018 -
|
|
147
|
+
© 2018 - 2025 Karsten Schmidt // Apache License 2.0
|
package/canvas.js
CHANGED
|
@@ -10,11 +10,11 @@ const _canvas = (type, handlers, opts) => {
|
|
|
10
10
|
adaptDPI(el, el.width, el.height);
|
|
11
11
|
ctx = el.getContext(type, opts);
|
|
12
12
|
time = Date.now();
|
|
13
|
-
handlers.init
|
|
14
|
-
handlers.update
|
|
13
|
+
handlers.init?.(el, ctx, hctx, ...args);
|
|
14
|
+
handlers.update?.(el, ctx, hctx, time, frame++, ...args);
|
|
15
15
|
},
|
|
16
16
|
render(hctx, ...args) {
|
|
17
|
-
ctx && handlers.update
|
|
17
|
+
ctx && handlers.update?.(
|
|
18
18
|
el,
|
|
19
19
|
ctx,
|
|
20
20
|
hctx,
|
|
@@ -25,7 +25,7 @@ const _canvas = (type, handlers, opts) => {
|
|
|
25
25
|
return ["canvas", args[0]];
|
|
26
26
|
},
|
|
27
27
|
release(hctx, ...args) {
|
|
28
|
-
handlers.release
|
|
28
|
+
handlers.release?.(el, ctx, hctx, ...args);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hdom-components",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.147",
|
|
4
4
|
"description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/canvas": "^0.
|
|
45
|
-
"@thi.ng/checks": "^3.6.
|
|
46
|
-
"@thi.ng/math": "^5.11.
|
|
47
|
-
"@thi.ng/transducers": "^9.2.
|
|
48
|
-
"@thi.ng/transducers-stats": "^2.2.
|
|
43
|
+
"@thi.ng/api": "^8.11.16",
|
|
44
|
+
"@thi.ng/canvas": "^1.0.2",
|
|
45
|
+
"@thi.ng/checks": "^3.6.19",
|
|
46
|
+
"@thi.ng/math": "^5.11.16",
|
|
47
|
+
"@thi.ng/transducers": "^9.2.13",
|
|
48
|
+
"@thi.ng/transducers-stats": "^2.2.7"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@microsoft/api-extractor": "^7.48.1",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"status": "beta",
|
|
115
115
|
"year": 2018
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
|
|
118
118
|
}
|