@thi.ng/hdom 9.4.54 → 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**: 2024-12-27T14:11:37Z
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/README.md CHANGED
@@ -1270,4 +1270,4 @@ If this project contributes to an academic publication, please cite it as:
1270
1270
 
1271
1271
  ## License
1272
1272
 
1273
- © 2015 - 2024 Karsten Schmidt // Apache License 2.0
1273
+ © 2015 - 2025 Karsten Schmidt // Apache License 2.0
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.54",
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",
@@ -43,18 +43,18 @@
43
43
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
44
44
  },
45
45
  "dependencies": {
46
- "@thi.ng/api": "^8.11.15",
47
- "@thi.ng/checks": "^3.6.17",
48
- "@thi.ng/diff": "^5.1.82",
49
- "@thi.ng/equiv": "^2.1.71",
50
- "@thi.ng/errors": "^2.5.21",
51
- "@thi.ng/hiccup": "^5.2.21",
52
- "@thi.ng/logger": "^3.0.25",
53
- "@thi.ng/prefixes": "^2.3.32"
46
+ "@thi.ng/api": "^8.11.16",
47
+ "@thi.ng/checks": "^3.6.19",
48
+ "@thi.ng/diff": "^5.1.83",
49
+ "@thi.ng/equiv": "^2.1.72",
50
+ "@thi.ng/errors": "^2.5.22",
51
+ "@thi.ng/hiccup": "^5.2.23",
52
+ "@thi.ng/logger": "^3.0.27",
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.15",
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": "48bf4c22bf23f88ac99f435106af2214f79a0be1\n"
138
+ "gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
139
139
  }