@thi.ng/hdom 9.4.55 → 9.4.56

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
+ ### [9.4.56](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@9.4.56) (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
  ### [9.4.35](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@9.4.35) (2024-06-21)
13
19
 
14
20
  #### ♻️ Refactoring
package/diff.js CHANGED
@@ -41,7 +41,7 @@ const diffTree = (opts, impl, parent, prev, curr, child = 0) => {
41
41
  return;
42
42
  }
43
43
  const pattribs = prev[1];
44
- if (pattribs && pattribs.__skip) {
44
+ if (pattribs?.__skip) {
45
45
  impl.replaceChild(opts, parent, child, curr, false);
46
46
  return;
47
47
  }
package/dom.js CHANGED
@@ -6,7 +6,7 @@ import { ATTRIB_JOIN_DELIMS, SVG_TAGS } from "@thi.ng/hiccup/api";
6
6
  import { css } from "@thi.ng/hiccup/css";
7
7
  import { formatPrefixes } from "@thi.ng/hiccup/prefix";
8
8
  import { XML_SVG } from "@thi.ng/prefixes/xml";
9
- const __maybeInitElement = (el, tree) => tree.__init && tree.__init.apply(tree.__this, [el, ...tree.__args]);
9
+ const __maybeInitElement = (el, tree) => tree.__init?.apply(tree.__this, [el, ...tree.__args]);
10
10
  const createTree = (opts, impl, parent, tree, insert, init = true) => {
11
11
  if (isArray(tree)) {
12
12
  const tag = tree[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom",
3
- "version": "9.4.55",
3
+ "version": "9.4.56",
4
4
  "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -44,17 +44,17 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@thi.ng/api": "^8.11.16",
47
- "@thi.ng/checks": "^3.6.18",
47
+ "@thi.ng/checks": "^3.6.19",
48
48
  "@thi.ng/diff": "^5.1.83",
49
49
  "@thi.ng/equiv": "^2.1.72",
50
50
  "@thi.ng/errors": "^2.5.22",
51
- "@thi.ng/hiccup": "^5.2.22",
52
- "@thi.ng/logger": "^3.0.26",
51
+ "@thi.ng/hiccup": "^5.2.23",
52
+ "@thi.ng/logger": "^3.0.27",
53
53
  "@thi.ng/prefixes": "^2.3.33"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@microsoft/api-extractor": "^7.48.1",
57
- "@thi.ng/atom": "^5.3.16",
57
+ "@thi.ng/atom": "^5.3.17",
58
58
  "esbuild": "^0.24.2",
59
59
  "typedoc": "^0.27.6",
60
60
  "typescript": "^5.7.2"
@@ -135,5 +135,5 @@
135
135
  "status": "completed",
136
136
  "year": 2015
137
137
  },
138
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
138
+ "gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
139
139
  }