@thi.ng/hiccup-canvas 2.5.32 → 2.5.34

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-03-27T09:53:45Z
3
+ - **Last updated**: 2024-04-08T14:59:29Z
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.
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 190 standalone projects, maintained as part
10
+ > This is one of 191 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
  >
@@ -86,7 +86,13 @@ implementations) and then translates these into canvas API draw calls.
86
86
  yarn add @thi.ng/hiccup-canvas
87
87
  ```
88
88
 
89
- ES module import:
89
+ ESM import:
90
+
91
+ ```ts
92
+ import * as hc from "@thi.ng/hiccup-canvas";
93
+ ```
94
+
95
+ Browser ESM import:
90
96
 
91
97
  ```html
92
98
  <script type="module" src="https://cdn.skypack.dev/@thi.ng/hiccup-canvas"></script>
@@ -97,7 +103,7 @@ ES module import:
97
103
  For Node.js REPL:
98
104
 
99
105
  ```js
100
- const hiccupCanvas = await import("@thi.ng/hiccup-canvas");
106
+ const hc = await import("@thi.ng/hiccup-canvas");
101
107
  ```
102
108
 
103
109
  Package sizes (brotli'd, pre-treeshake): ESM: 2.53 KB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-canvas",
3
- "version": "2.5.32",
3
+ "version": "2.5.34",
4
4
  "description": "Hiccup shape tree renderer for vanilla Canvas 2D contexts",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,12 +36,12 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.31",
40
- "@thi.ng/checks": "^3.5.5",
41
- "@thi.ng/color": "^5.6.38",
42
- "@thi.ng/math": "^5.10.8",
43
- "@thi.ng/pixel": "^6.1.25",
44
- "@thi.ng/vectors": "^7.10.24"
39
+ "@thi.ng/api": "^8.10.0",
40
+ "@thi.ng/checks": "^3.6.0",
41
+ "@thi.ng/color": "^5.6.40",
42
+ "@thi.ng/math": "^5.10.9",
43
+ "@thi.ng/pixel": "^6.1.27",
44
+ "@thi.ng/vectors": "^7.10.26"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@microsoft/api-extractor": "^7.43.0",
@@ -131,5 +131,5 @@
131
131
  ],
132
132
  "year": 2018
133
133
  },
134
- "gitHead": "db5f5a5d1b223a8e6b4999d67836678038fd3560\n"
134
+ "gitHead": "85ac4bd4d6d89f8e3689e2863d5bea0cecdb371c\n"
135
135
  }