@thi.ng/geom 8.1.21 → 8.1.23

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
+ ### [8.1.22](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@8.1.22) (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
  ### [8.1.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/geom@8.1.11) (2024-10-05)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -451,7 +451,7 @@ For Node.js REPL:
451
451
  const geom = await import("@thi.ng/geom");
452
452
  ```
453
453
 
454
- Package sizes (brotli'd, pre-treeshake): ESM: 17.47 KB
454
+ Package sizes (brotli'd, pre-treeshake): ESM: 17.42 KB
455
455
 
456
456
  ## Dependencies
457
457
 
package/api/bpatch.js CHANGED
@@ -62,7 +62,7 @@ class BPatch extends APC {
62
62
  toHiccup() {
63
63
  const attribs = this.attribs;
64
64
  const acc = ["g", { fill: "none", ...attribs }];
65
- if (attribs && attribs.res) {
65
+ if (attribs?.res) {
66
66
  const res = attribs.res - 1;
67
67
  const delta = 1 / res;
68
68
  for (let u = 0; u <= res; u++) {
package/clip-convex.js CHANGED
@@ -71,7 +71,7 @@ const clipConvex = defmulti(
71
71
  $.points[1],
72
72
  ensureVertices(boundary)
73
73
  );
74
- return segments && segments.length ? [new Line(segments[0], __copyAttribs($.attribs))] : void 0;
74
+ return segments?.length ? [new Line(segments[0], __copyAttribs($.attribs))] : void 0;
75
75
  },
76
76
  path: ($, boundary) => {
77
77
  boundary = ensureVertices(boundary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/geom",
3
- "version": "8.1.21",
3
+ "version": "8.1.23",
4
4
  "description": "Functional, polymorphic API for 2D geometry types & SVG generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,33 +41,33 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/adjacency": "^3.0.20",
44
+ "@thi.ng/adjacency": "^3.0.22",
45
45
  "@thi.ng/api": "^8.11.16",
46
- "@thi.ng/arrays": "^2.10.9",
47
- "@thi.ng/checks": "^3.6.18",
48
- "@thi.ng/defmulti": "^3.0.54",
46
+ "@thi.ng/arrays": "^2.10.11",
47
+ "@thi.ng/checks": "^3.6.19",
48
+ "@thi.ng/defmulti": "^3.0.55",
49
49
  "@thi.ng/equiv": "^2.1.72",
50
50
  "@thi.ng/errors": "^2.5.22",
51
- "@thi.ng/geom-arc": "^2.1.158",
52
- "@thi.ng/geom-clip-line": "^2.3.115",
53
- "@thi.ng/geom-clip-poly": "^2.1.157",
54
- "@thi.ng/geom-closest-point": "^2.1.153",
55
- "@thi.ng/geom-hull": "^2.1.153",
56
- "@thi.ng/geom-isec": "^4.0.25",
57
- "@thi.ng/geom-poly-utils": "^3.0.25",
58
- "@thi.ng/geom-resample": "^3.0.25",
59
- "@thi.ng/geom-splines": "^2.3.25",
60
- "@thi.ng/geom-subdiv-curve": "^3.0.25",
61
- "@thi.ng/geom-tessellate": "^3.0.25",
62
- "@thi.ng/hiccup": "^5.2.22",
63
- "@thi.ng/hiccup-svg": "^5.4.12",
51
+ "@thi.ng/geom-arc": "^2.1.160",
52
+ "@thi.ng/geom-clip-line": "^2.3.117",
53
+ "@thi.ng/geom-clip-poly": "^2.1.159",
54
+ "@thi.ng/geom-closest-point": "^2.1.155",
55
+ "@thi.ng/geom-hull": "^2.1.155",
56
+ "@thi.ng/geom-isec": "^4.0.27",
57
+ "@thi.ng/geom-poly-utils": "^3.0.27",
58
+ "@thi.ng/geom-resample": "^3.0.27",
59
+ "@thi.ng/geom-splines": "^2.3.27",
60
+ "@thi.ng/geom-subdiv-curve": "^3.0.27",
61
+ "@thi.ng/geom-tessellate": "^3.0.27",
62
+ "@thi.ng/hiccup": "^5.2.23",
63
+ "@thi.ng/hiccup-svg": "^5.4.14",
64
64
  "@thi.ng/math": "^5.11.16",
65
- "@thi.ng/matrices": "^2.4.25",
66
- "@thi.ng/object-utils": "^1.1.9",
65
+ "@thi.ng/matrices": "^2.4.27",
66
+ "@thi.ng/object-utils": "^1.1.10",
67
67
  "@thi.ng/random": "^4.1.7",
68
68
  "@thi.ng/strings": "^3.9.0",
69
- "@thi.ng/transducers": "^9.2.12",
70
- "@thi.ng/vectors": "^7.12.13"
69
+ "@thi.ng/transducers": "^9.2.14",
70
+ "@thi.ng/vectors": "^7.12.15"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@microsoft/api-extractor": "^7.48.1",
@@ -534,5 +534,5 @@
534
534
  ],
535
535
  "year": 2013
536
536
  },
537
- "gitHead": "56c1d57a96565bbcc8c06c73779a619bba0db368\n"
537
+ "gitHead": "d888087b36b086fd8c3e7dc98d35857266f78942\n"
538
538
  }