@thi.ng/hdom 9.4.96 → 9.4.98

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/README.md +1 -1
  2. package/dom.js +5 -5
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  > [!NOTE]
10
- > This is one of 210 standalone projects, maintained as part
10
+ > This is one of 212 standalone projects, maintained as part
11
11
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
12
12
  > and anti-framework.
13
13
  >
package/dom.js CHANGED
@@ -42,7 +42,7 @@ const createTree = (opts, impl, parent, tree, insert, init = true) => {
42
42
  }
43
43
  if (isNotStringAndIterable(tree)) {
44
44
  const res = [];
45
- for (let t of tree) {
45
+ for (const t of tree) {
46
46
  res.push(createTree(opts, impl, parent, t, insert, init));
47
47
  }
48
48
  return res;
@@ -74,14 +74,14 @@ const hydrateTree = (opts, impl, parent, tree, index = 0) => {
74
74
  );
75
75
  }
76
76
  __maybeInitElement(el, tree);
77
- for (let a in attribs) {
77
+ for (const a in attribs) {
78
78
  a[0] === "o" && a[1] === "n" && impl.setAttrib(el, a, attribs[a]);
79
79
  }
80
80
  for (let n = tree.length, i = 2; i < n; i++) {
81
81
  hydrateTree(opts, impl, el, tree[i], i - 2);
82
82
  }
83
83
  } else if (isNotStringAndIterable(tree)) {
84
- for (let t of tree) {
84
+ for (const t of tree) {
85
85
  hydrateTree(opts, impl, parent, t, index);
86
86
  index++;
87
87
  }
@@ -104,7 +104,7 @@ const cloneWithNewAttribs = (el, attribs) => {
104
104
  };
105
105
  const setContent = (el, body) => el.textContent = body;
106
106
  const setAttribs = (el, attribs) => {
107
- for (let k in attribs) {
107
+ for (const k in attribs) {
108
108
  setAttrib(el, k, attribs[k], attribs);
109
109
  }
110
110
  return el;
@@ -208,7 +208,7 @@ const removeAttribs = (el, attribs, prev) => {
208
208
  };
209
209
  const setStyle = (el, rules) => {
210
210
  let v;
211
- for (let r in rules) {
211
+ for (const r in rules) {
212
212
  v = deref(rules[r]);
213
213
  if (isFunction(v)) v = v(rules);
214
214
  if (v != null) el.style.setProperty(r, v);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom",
3
- "version": "9.4.96",
3
+ "version": "9.4.98",
4
4
  "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -42,17 +42,17 @@
42
42
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
43
43
  },
44
44
  "dependencies": {
45
- "@thi.ng/api": "^8.12.9",
46
- "@thi.ng/checks": "^3.7.25",
47
- "@thi.ng/diff": "^5.1.110",
48
- "@thi.ng/equiv": "^2.1.99",
49
- "@thi.ng/errors": "^2.5.49",
50
- "@thi.ng/hiccup": "^5.3.32",
51
- "@thi.ng/logger": "^3.2.8",
52
- "@thi.ng/prefixes": "^2.3.60"
45
+ "@thi.ng/api": "^8.12.11",
46
+ "@thi.ng/checks": "^3.8.1",
47
+ "@thi.ng/diff": "^5.1.112",
48
+ "@thi.ng/equiv": "^2.1.101",
49
+ "@thi.ng/errors": "^2.6.0",
50
+ "@thi.ng/hiccup": "^5.3.34",
51
+ "@thi.ng/logger": "^3.2.10",
52
+ "@thi.ng/prefixes": "^2.3.62"
53
53
  },
54
54
  "devDependencies": {
55
- "@thi.ng/atom": "^5.3.50",
55
+ "@thi.ng/atom": "^5.3.52",
56
56
  "esbuild": "^0.27.0",
57
57
  "typedoc": "^0.28.14",
58
58
  "typescript": "^5.9.3"
@@ -133,5 +133,5 @@
133
133
  "status": "completed",
134
134
  "year": 2015
135
135
  },
136
- "gitHead": "fdca77cabf47dd23a9ab17a5ca13e3060075c12c\n"
136
+ "gitHead": "e7a21b9d2a188fa04d4c893d8531c40fbc0f4c06\n"
137
137
  }