@thi.ng/hdom-components 5.1.146 → 5.1.148

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-04T21:07:38Z
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.06 KB
71
+ Package sizes (brotli'd, pre-treeshake): ESM: 2.04 KB
72
72
 
73
73
  ## Dependencies
74
74
 
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 && handlers.init(el, ctx, hctx, ...args);
14
- handlers.update && handlers.update(el, ctx, hctx, time, frame++, ...args);
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 && 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 && handlers.release(el, ctx, hctx, ...args);
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.146",
3
+ "version": "5.1.148",
4
4
  "description": "Raw, skinnable UI & SVG components for @thi.ng/hdom",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,11 +41,11 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@thi.ng/api": "^8.11.16",
44
- "@thi.ng/canvas": "^1.0.1",
45
- "@thi.ng/checks": "^3.6.18",
44
+ "@thi.ng/canvas": "^1.0.2",
45
+ "@thi.ng/checks": "^3.6.19",
46
46
  "@thi.ng/math": "^5.11.16",
47
- "@thi.ng/transducers": "^9.2.12",
48
- "@thi.ng/transducers-stats": "^2.2.6"
47
+ "@thi.ng/transducers": "^9.2.14",
48
+ "@thi.ng/transducers-stats": "^2.2.8"
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": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
117
+ "gitHead": "d888087b36b086fd8c3e7dc98d35857266f78942\n"
118
118
  }