@thi.ng/hiccup-svg 5.4.16 → 5.4.18

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/CHANGELOG.md +3 -276
  2. package/README.md +1 -1
  3. package/package.json +7 -9
package/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-01-21T15:46:53Z
3
+ - **Last updated**: 2025-01-29T16:25:48Z
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.
7
+ Only versions published since **2022-01-01** are listed here.
8
+ Please consult the Git history for older version information.
7
9
  See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
10
 
9
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
@@ -104,278 +106,3 @@ and/or version bumps of transitive dependencies.
104
106
  #### ♻️ Refactoring
105
107
 
106
108
  - replace deprecated .substr() w/ .substring() ([0710509](https://github.com/thi-ng/umbrella/commit/0710509))
107
-
108
- ## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.2.0) (2021-11-17)
109
-
110
- #### 🚀 Features
111
-
112
- - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
113
- Improving the overall build ergonomics
114
- - introduced a tools workspaces
115
- - imported it in all needed packages/examples
116
- - inclusive project root
117
-
118
- #### ♻️ Refactoring
119
-
120
- - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
121
- this commit reverts (partly) changes made in:
122
- ef346d7a8753590dc9094108a3d861a8dbd5dd2c
123
- overall purpose is better testament ergonomics:
124
- instead of having to pass NODE_OPTIONS with every invocation
125
- having a binary to handle this for us.
126
-
127
- ### [4.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.1.6) (2021-11-10)
128
-
129
- #### ♻️ Refactoring
130
-
131
- - update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
132
-
133
- ### [4.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.1.1) (2021-10-27)
134
-
135
- #### 🩹 Bug fixes
136
-
137
- - re-enable `filter` attrib in conversion ([7c75fbe](https://github.com/thi-ng/umbrella/commit/7c75fbe))
138
- - update convertAttrib() to treat filter attrib as normal attrib
139
-
140
- ## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.1.0) (2021-10-25)
141
-
142
- #### 🚀 Features
143
-
144
- - update numericAttribs() ([bf06b65](https://github.com/thi-ng/umbrella/commit/bf06b65))
145
- - add `DEFAULT_NUMERIC_IDS` to always include in numericAttribs()
146
- - now called automatically by fattribs(), no more explicit calls needed
147
-
148
- ### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.0.1) (2021-10-13)
149
-
150
- #### ♻️ Refactoring
151
-
152
- - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
153
- - add .js suffix for all relative imports
154
- - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
155
-
156
- # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@4.0.0) (2021-10-12)
157
-
158
- #### 🛑 Breaking changes
159
-
160
- - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
161
- - BREAKING CHANGE: discontinue CommonJS & UMD versions
162
- - only ESM modules will be published from now on
163
- - CJS obsolete due to ESM support in recent versions of node:
164
- - i.e. launch NodeJS via:
165
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
166
- - in the node REPL use `await import(...)` instead of `require()`
167
- - UMD obsolete due to widespread browser support for ESM
168
- Also:
169
- - normalize/restructure/reorg all package.json files
170
- - cleanup all build scripts, remove obsolete
171
- - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
172
-
173
- #### 🩹 Bug fixes
174
-
175
- - check values passed to numericAttribs are actually numeric ([dbd51c3](https://github.com/thi-ng/umbrella/commit/dbd51c3))
176
-
177
- #### ♻️ Refactoring
178
-
179
- - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
180
- - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
181
- - update all test stubs ([f2d6d53](https://github.com/thi-ng/umbrella/commit/f2d6d53))
182
- - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
183
-
184
- ## [3.8.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.8.0) (2021-08-22)
185
-
186
- #### 🚀 Features
187
-
188
- - add numericAttribs(), fix svg() ([d6cb992](https://github.com/thi-ng/umbrella/commit/d6cb992))
189
- - update svg() to format some attribs using ff()
190
-
191
- ### [3.7.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.7.31) (2021-08-17)
192
-
193
- #### ♻️ Refactoring
194
-
195
- - single return in svg() ([a770847](https://github.com/thi-ng/umbrella/commit/a770847))
196
-
197
- ### [3.7.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.7.6) (2021-02-20)
198
-
199
- #### ♻️ Refactoring
200
-
201
- - update fcolor() (resolveAsCss()) ([f58ca90](https://github.com/thi-ng/umbrella/commit/f58ca90))
202
- - update color attrib resolution/conversion ([5415760](https://github.com/thi-ng/umbrella/commit/5415760))
203
-
204
- ## [3.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.7.0) (2021-01-02)
205
-
206
- #### 🚀 Features
207
-
208
- - update svg(), add convert attrib ([cd67a09](https://github.com/thi-ng/umbrella/commit/cd67a09))
209
- - update attrib handling and call convertTree() if requested
210
- - update docstrings
211
-
212
- ### [3.6.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.6.5) (2020-12-07)
213
-
214
- #### ♻️ Refactoring
215
-
216
- - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
217
-
218
- ## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.6.0) (2020-09-13)
219
-
220
- #### 🚀 Features
221
-
222
- - fix [#194](https://github.com/thi-ng/umbrella/issues/194), add `baseline` support ([f8d4a38](https://github.com/thi-ng/umbrella/commit/f8d4a38))
223
- - add BASE_LINE value mappings
224
- - update convertAttrib()
225
- - allow child elements in shapes ([7447ee1](https://github.com/thi-ng/umbrella/commit/7447ee1))
226
- - update all shape functions to allow optional child elements
227
- (e.g. required for adding <animate>, <title>, <desc> etc.)
228
- - fix/update convertTree() ([997dbf6](https://github.com/thi-ng/umbrella/commit/997dbf6))
229
- - add support for child elements within shapes (do not traverse!)
230
- - treat <a> as group-like element (do traverse children!)
231
- - add support for nullish elements in shape tree (skip)
232
- - update ff() formatter (int check) ([609d278](https://github.com/thi-ng/umbrella/commit/609d278))
233
- - add integer check and use as is if true (improves result filesize)
234
-
235
- ## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.5.0) (2020-07-02)
236
-
237
- #### 🚀 Features
238
-
239
- - update deps, update xmlns import ([aab66bb](https://github.com/thi-ng/umbrella/commit/aab66bb))
240
-
241
- #### 🩹 Bug fixes
242
-
243
- - update XML ns imports ([32bd8d7](https://github.com/thi-ng/umbrella/commit/32bd8d7))
244
-
245
- ### [3.4.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.4.2) (2020-02-25)
246
-
247
- #### ♻️ Refactoring
248
-
249
- - fix [#197](https://github.com/thi-ng/umbrella/issues/197), update points() ([89f6c36](https://github.com/thi-ng/umbrella/commit/89f6c36))
250
- - update imports ([eda42ed](https://github.com/thi-ng/umbrella/commit/eda42ed))
251
-
252
- ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.4.0) (2020-01-24)
253
-
254
- #### 🚀 Features
255
-
256
- - add packedPoints(), update convertTree() ([67be25e](https://github.com/thi-ng/umbrella/commit/67be25e))
257
-
258
- ### [3.3.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.3.2) (2019-11-09)
259
-
260
- #### 🩹 Bug fixes
261
-
262
- - fix [#142](https://github.com/thi-ng/umbrella/issues/142), add missing exports (ellipse, image) ([1bd7f64](https://github.com/thi-ng/umbrella/commit/1bd7f64))
263
-
264
- ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.3.0) (2019-08-21)
265
-
266
- #### 🚀 Features
267
-
268
- - update polyline(), add fill: none default ([cff9e30](https://github.com/thi-ng/umbrella/commit/cff9e30))
269
-
270
- #### 🩹 Bug fixes
271
-
272
- - convertAttrib() arg order ([8b48a27](https://github.com/thi-ng/umbrella/commit/8b48a27))
273
-
274
- #### ♻️ Refactoring
275
-
276
- - update fcolor(), extract buildTransform() ([101bb94](https://github.com/thi-ng/umbrella/commit/101bb94))
277
- - re-use resolveAsCSS()
278
- - update convertAttribs ([9cc6849](https://github.com/thi-ng/umbrella/commit/9cc6849))
279
- - update points(), extract buildShape() ([e01fae3](https://github.com/thi-ng/umbrella/commit/e01fae3))
280
-
281
- ### [3.2.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.2.2) (2019-07-12)
282
-
283
- #### 🩹 Bug fixes
284
-
285
- - update points(), use centered rects ([c7d6aaa](https://github.com/thi-ng/umbrella/commit/c7d6aaa))
286
-
287
- ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.2.0) (2019-07-07)
288
-
289
- #### 🚀 Features
290
-
291
- - enable TS strict compiler flags (refactor) ([3143141](https://github.com/thi-ng/umbrella/commit/3143141))
292
-
293
- #### ♻️ Refactoring
294
-
295
- - address TS strictNullChecks flag ([9a1b92e](https://github.com/thi-ng/umbrella/commit/9a1b92e))
296
-
297
- ### [3.1.7](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.1.7) (2019-02-27)
298
-
299
- #### 🩹 Bug fixes
300
-
301
- - update convert() image (new arg order in hdom-canvas) ([b206cff](https://github.com/thi-ng/umbrella/commit/b206cff))
302
-
303
- ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.1.0) (2019-01-22)
304
-
305
- #### 🚀 Features
306
-
307
- - add color dep, add attrib conversion for all elements ([7f6011e](https://github.com/thi-ng/umbrella/commit/7f6011e))
308
- - fix "rect" size handling in convertTree(), revert back to individual
309
- width/height values
310
- - add [@thi.ng/color](https://github.com/thi-ng/umbrella/tree/main/packages/color) dependency
311
- - add fattrib() & fcolor() helpers
312
- - update & move convertTransforms => ftransforms()
313
- - update attrib handling for all elements
314
-
315
- # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@3.0.0) (2019-01-21)
316
-
317
- #### 🛑 Breaking changes
318
-
319
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
320
- - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
321
- - build scripts now first build ES6 modules in package root, then call
322
- `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
323
- - all imports MUST be updated to only refer to package level
324
- (not individual files anymore). tree shaking in user land will get rid of
325
- all unused imported symbols.
326
-
327
- #### 🚀 Features
328
-
329
- - add ellipse shape type, update convert() ([a39811c](https://github.com/thi-ng/umbrella/commit/a39811c))
330
-
331
- #### 🩹 Bug fixes
332
-
333
- - convert path arc segment axis theta to degrees ([370f928](https://github.com/thi-ng/umbrella/commit/370f928))
334
-
335
- ### [2.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@2.0.5) (2018-11-06)
336
-
337
- #### 🚀 Features
338
-
339
- - add toHiccup() support in convertTree() ([e197f90](https://github.com/thi-ng/umbrella/commit/e197f90))
340
-
341
- #### ♻️ Refactoring
342
-
343
- - update convertTransforms(), update formatting ([3713c02](https://github.com/thi-ng/umbrella/commit/3713c02))
344
-
345
- ### [2.0.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@2.0.4) (2018-10-21)
346
-
347
- #### 🩹 Bug fixes
348
-
349
- - fix arc segment handling ([85426d9](https://github.com/thi-ng/umbrella/commit/85426d9))
350
-
351
- # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@1.0.0) (2018-05-13)
352
-
353
- #### 🛑 Breaking changes
354
-
355
- - rename svgdoc => svg ([396faec](https://github.com/thi-ng/umbrella/commit/396faec))
356
- - BREAKING CHANGE: rename svgdoc => svg
357
- - resolve [#19](https://github.com/thi-ng/umbrella/issues/19), update readme, add invocation notes ([dc77540](https://github.com/thi-ng/umbrella/commit/dc77540))
358
- - BREAKING CHANGE: technically identical to previous version, however
359
- due to breaking changes and new context support in [@thi.ng/hiccup](https://github.com/thi-ng/umbrella/tree/main/packages/hiccup),
360
- SVG functions MUST be invoked directly now and do not support lazy
361
- evaluation anymore. see notice in readme.
362
-
363
- ### [0.2.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@0.2.11) (2018-05-10)
364
-
365
- #### ♻️ Refactoring
366
-
367
- - update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
368
-
369
- ### [0.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@0.2.1) (2018-04-09)
370
-
371
- #### 🩹 Bug fixes
372
-
373
- - path(), update add null check for points() ([b9d9a49](https://github.com/thi-ng/umbrella/commit/b9d9a49))
374
-
375
- ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-svg@0.2.0) (2018-04-08)
376
-
377
- #### 🚀 Features
378
-
379
- - re-add svg fns as new [@thi.ng/hiccup-svg](https://github.com/thi-ng/umbrella/tree/main/packages/hiccup-svg) package ([afccabd](https://github.com/thi-ng/umbrella/commit/afccabd))
380
- - split existing source file into (mostly) single-fn modules
381
- - minor refactoring
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 200 standalone projects, maintained as part
10
+ > This is one of 201 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-svg",
3
- "version": "5.4.16",
3
+ "version": "5.4.18",
4
4
  "description": "SVG element functions for @thi.ng/hiccup & related tooling",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -33,23 +33,21 @@
33
33
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
34
34
  "clean": "bun ../../tools/src/clean-package.ts",
35
35
  "doc": "typedoc --options ../../typedoc.json --out doc src/index.ts",
36
- "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
37
36
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
38
37
  "pub": "yarn npm publish --access public",
39
38
  "test": "bun test",
40
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
40
  },
42
41
  "dependencies": {
43
- "@thi.ng/api": "^8.11.17",
44
- "@thi.ng/checks": "^3.6.20",
45
- "@thi.ng/color": "^5.7.20",
46
- "@thi.ng/prefixes": "^2.3.34"
42
+ "@thi.ng/api": "^8.11.19",
43
+ "@thi.ng/checks": "^3.6.22",
44
+ "@thi.ng/color": "^5.7.22",
45
+ "@thi.ng/prefixes": "^2.3.36"
47
46
  },
48
47
  "devDependencies": {
49
- "@microsoft/api-extractor": "^7.48.1",
50
48
  "esbuild": "^0.24.2",
51
49
  "typedoc": "^0.27.6",
52
- "typescript": "^5.7.2"
50
+ "typescript": "^5.7.3"
53
51
  },
54
52
  "keywords": [
55
53
  "arc",
@@ -144,5 +142,5 @@
144
142
  "parent": "@thi.ng/hiccup",
145
143
  "year": 2016
146
144
  },
147
- "gitHead": "22f6d518aed5951bb37b406c8ae85a6c3e6be517\n"
145
+ "gitHead": "fc1d498e8d4b690db873c30cc594352a804e7a65\n"
148
146
  }