@thi.ng/hiccup-svg 5.4.11 → 5.4.13

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
+ ### [5.4.13](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.4.13) (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.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@5.4.0) (2024-09-16)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -308,4 +308,4 @@ If this project contributes to an academic publication, please cite it as:
308
308
 
309
309
  ## License
310
310
 
311
- © 2016 - 2024 Karsten Schmidt // Apache License 2.0
311
+ © 2016 - 2025 Karsten Schmidt // Apache License 2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-svg",
3
- "version": "5.4.11",
3
+ "version": "5.4.13",
4
4
  "description": "SVG element functions for @thi.ng/hiccup & related tooling",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,10 +40,10 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.11.15",
44
- "@thi.ng/checks": "^3.6.17",
45
- "@thi.ng/color": "^5.7.15",
46
- "@thi.ng/prefixes": "^2.3.32"
43
+ "@thi.ng/api": "^8.11.16",
44
+ "@thi.ng/checks": "^3.6.19",
45
+ "@thi.ng/color": "^5.7.17",
46
+ "@thi.ng/prefixes": "^2.3.33"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.48.1",
@@ -144,5 +144,5 @@
144
144
  "parent": "@thi.ng/hiccup",
145
145
  "year": 2016
146
146
  },
147
- "gitHead": "48bf4c22bf23f88ac99f435106af2214f79a0be1\n"
147
+ "gitHead": "6542b842120bef47cc18d45a1b1db68307a7f04b\n"
148
148
  }
package/points.js CHANGED
@@ -19,7 +19,7 @@ const packedPoints = (pts, shape, size = 1, attribs, ...body) => {
19
19
  ...attribs
20
20
  };
21
21
  const { start, cstride, estride } = attribs;
22
- let num = attribs && attribs.num != null ? attribs.num : (pts.length - start) / estride | 0;
22
+ let num = attribs?.num ?? (pts.length - start) / estride | 0;
23
23
  const group = [
24
24
  "g",
25
25
  fattribs(