@thi.ng/hiccup 5.3.0 → 5.3.1
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 +3 -290
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-01-
|
|
3
|
+
- **Last updated**: 2025-01-23T13:39:11Z
|
|
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
|
|
@@ -96,292 +98,3 @@ and/or version bumps of transitive dependencies.
|
|
|
96
98
|
|
|
97
99
|
- add XML_PROC & DOCTYPE_HTML constants ([4ec98fd](https://github.com/thi-ng/umbrella/commit/4ec98fd))
|
|
98
100
|
- update tests
|
|
99
|
-
|
|
100
|
-
## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.2.0) (2021-11-17)
|
|
101
|
-
|
|
102
|
-
#### 🚀 Features
|
|
103
|
-
|
|
104
|
-
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
105
|
-
Improving the overall build ergonomics
|
|
106
|
-
- introduced a tools workspaces
|
|
107
|
-
- imported it in all needed packages/examples
|
|
108
|
-
- inclusive project root
|
|
109
|
-
|
|
110
|
-
#### ♻️ Refactoring
|
|
111
|
-
|
|
112
|
-
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
113
|
-
this commit reverts (partly) changes made in:
|
|
114
|
-
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
115
|
-
overall purpose is better testament ergonomics:
|
|
116
|
-
instead of having to pass NODE_OPTIONS with every invocation
|
|
117
|
-
having a binary to handle this for us.
|
|
118
|
-
|
|
119
|
-
## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.1.0) (2021-10-25)
|
|
120
|
-
|
|
121
|
-
#### 🚀 Features
|
|
122
|
-
|
|
123
|
-
- replace entity handling w/ [@thi.ng/strings](https://github.com/thi-ng/umbrella/tree/main/packages/strings) ([04154b8](https://github.com/thi-ng/umbrella/commit/04154b8))
|
|
124
|
-
|
|
125
|
-
### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.0.1) (2021-10-13)
|
|
126
|
-
|
|
127
|
-
#### ♻️ Refactoring
|
|
128
|
-
|
|
129
|
-
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
130
|
-
- add .js suffix for all relative imports
|
|
131
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
132
|
-
|
|
133
|
-
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.0.0) (2021-10-12)
|
|
134
|
-
|
|
135
|
-
#### 🛑 Breaking changes
|
|
136
|
-
|
|
137
|
-
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
138
|
-
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
139
|
-
- only ESM modules will be published from now on
|
|
140
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
141
|
-
- i.e. launch NodeJS via:
|
|
142
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
143
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
144
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
145
|
-
Also:
|
|
146
|
-
- normalize/restructure/reorg all package.json files
|
|
147
|
-
- cleanup all build scripts, remove obsolete
|
|
148
|
-
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
149
|
-
|
|
150
|
-
#### ♻️ Refactoring
|
|
151
|
-
|
|
152
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
153
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
154
|
-
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
155
|
-
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
156
|
-
- largely related to recent updates/restructuring of these packages:
|
|
157
|
-
- api
|
|
158
|
-
- defmulti
|
|
159
|
-
- errors
|
|
160
|
-
- logger
|
|
161
|
-
|
|
162
|
-
### [3.6.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.6.4) (2020-12-07)
|
|
163
|
-
|
|
164
|
-
#### ♻️ Refactoring
|
|
165
|
-
|
|
166
|
-
- update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
|
|
167
|
-
|
|
168
|
-
### [3.6.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.6.1) (2020-09-22)
|
|
169
|
-
|
|
170
|
-
#### ♻️ Refactoring
|
|
171
|
-
|
|
172
|
-
- extract mergeEmmetAttribs() ([0c965c9](https://github.com/thi-ng/umbrella/commit/0c965c9))
|
|
173
|
-
- simplify normalize() and improve external re-use in hdom/rdom
|
|
174
|
-
- update/split serialization fns ([32ac755](https://github.com/thi-ng/umbrella/commit/32ac755))
|
|
175
|
-
- extract serializeTag()
|
|
176
|
-
- update/split serializeAttribs() ([cdf483b](https://github.com/thi-ng/umbrella/commit/cdf483b))
|
|
177
|
-
|
|
178
|
-
## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.6.0) (2020-09-13)
|
|
179
|
-
|
|
180
|
-
#### 🚀 Features
|
|
181
|
-
|
|
182
|
-
- add CDATA support, update void tag handling ([5989427](https://github.com/thi-ng/umbrella/commit/5989427))
|
|
183
|
-
- add CDATA tag constant
|
|
184
|
-
- add serializeCData()
|
|
185
|
-
- update VOID_TAGS, extract NO_CLOSE_EMPTY
|
|
186
|
-
|
|
187
|
-
## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.5.0) (2020-07-02)
|
|
188
|
-
|
|
189
|
-
#### 🚀 Features
|
|
190
|
-
|
|
191
|
-
- remove obsolete SVG/XLINK urls ([aa34be7](https://github.com/thi-ng/umbrella/commit/aa34be7))
|
|
192
|
-
- moved to [@thi.ng/prefixes](https://github.com/thi-ng/umbrella/tree/main/packages/prefixes) pkg for better re-use
|
|
193
|
-
- add RDFa `prefix` attrib handling, add tests ([24a7748](https://github.com/thi-ng/umbrella/commit/24a7748))
|
|
194
|
-
- add `formatPrefixes()` helper
|
|
195
|
-
- update `serializeAttribs()`
|
|
196
|
-
|
|
197
|
-
## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.4.0) (2020-06-28)
|
|
198
|
-
|
|
199
|
-
#### 🚀 Features
|
|
200
|
-
|
|
201
|
-
- update deps & attrib handling ([09ba171](https://github.com/thi-ng/umbrella/commit/09ba171))
|
|
202
|
-
- add [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) dep
|
|
203
|
-
- add support for IDeref attrib vals
|
|
204
|
-
- add support for `class` attrib obj vals
|
|
205
|
-
- add `mergeClasses()` helper
|
|
206
|
-
- add IDeref support inside `class` & `style` attribs
|
|
207
|
-
- add support for nested data attribs
|
|
208
|
-
|
|
209
|
-
## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.3.0) (2020-06-24)
|
|
210
|
-
|
|
211
|
-
#### 🚀 Features
|
|
212
|
-
|
|
213
|
-
- support array attrib values, add tests ([1c4ef8a](https://github.com/thi-ng/umbrella/commit/1c4ef8a))
|
|
214
|
-
- update `accept` attrib handling ([fabf447](https://github.com/thi-ng/umbrella/commit/fabf447))
|
|
215
|
-
|
|
216
|
-
### [3.2.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.2.4) (2019-08-21)
|
|
217
|
-
|
|
218
|
-
#### 🩹 Bug fixes
|
|
219
|
-
|
|
220
|
-
- update/rename regexes & tag maps ([6dba80d](https://github.com/thi-ng/umbrella/commit/6dba80d))
|
|
221
|
-
|
|
222
|
-
#### ♻️ Refactoring
|
|
223
|
-
|
|
224
|
-
- split serialize(), move normalize() to own file ([fa56951](https://github.com/thi-ng/umbrella/commit/fa56951))
|
|
225
|
-
|
|
226
|
-
## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.2.0) (2019-07-07)
|
|
227
|
-
|
|
228
|
-
#### 🚀 Features
|
|
229
|
-
|
|
230
|
-
- enable TS strict compiler flags (refactor) ([d0fce75](https://github.com/thi-ng/umbrella/commit/d0fce75))
|
|
231
|
-
|
|
232
|
-
#### ♻️ Refactoring
|
|
233
|
-
|
|
234
|
-
- address TS strictNullChecks flag ([c73b207](https://github.com/thi-ng/umbrella/commit/c73b207))
|
|
235
|
-
|
|
236
|
-
## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.1.0) (2019-02-18)
|
|
237
|
-
|
|
238
|
-
#### 🚀 Features
|
|
239
|
-
|
|
240
|
-
- add support for XML/DTD proc tags, update readme, tests ([ede2842](https://github.com/thi-ng/umbrella/commit/ede2842))
|
|
241
|
-
|
|
242
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.0.0) (2019-01-21)
|
|
243
|
-
|
|
244
|
-
#### 🛑 Breaking changes
|
|
245
|
-
|
|
246
|
-
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
247
|
-
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
248
|
-
- build scripts now first build ES6 modules in package root, then call
|
|
249
|
-
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
250
|
-
- all imports MUST be updated to only refer to package level
|
|
251
|
-
(not individual files anymore). tree shaking in user land will get rid of
|
|
252
|
-
all unused imported symbols.
|
|
253
|
-
|
|
254
|
-
### [2.7.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.7.2) (2018-12-20)
|
|
255
|
-
|
|
256
|
-
#### ♻️ Refactoring
|
|
257
|
-
|
|
258
|
-
- export normalize() fn ([df38394](https://github.com/thi-ng/umbrella/commit/df38394))
|
|
259
|
-
|
|
260
|
-
## [2.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.7.0) (2018-12-13)
|
|
261
|
-
|
|
262
|
-
#### 🚀 Features
|
|
263
|
-
|
|
264
|
-
- add __skip support, add test, update readme ([d3500df](https://github.com/thi-ng/umbrella/commit/d3500df))
|
|
265
|
-
|
|
266
|
-
## [2.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.6.0) (2018-11-07)
|
|
267
|
-
|
|
268
|
-
#### 🚀 Features
|
|
269
|
-
|
|
270
|
-
- update derefContext() to only apply to selected keys ([749925f](https://github.com/thi-ng/umbrella/commit/749925f))
|
|
271
|
-
|
|
272
|
-
## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.5.0) (2018-11-06)
|
|
273
|
-
|
|
274
|
-
#### 🚀 Features
|
|
275
|
-
|
|
276
|
-
- add support for dynamic user context values ([a947873](https://github.com/thi-ng/umbrella/commit/a947873))
|
|
277
|
-
- add derefContext() helper to auto-deref any IDeref vals
|
|
278
|
-
- update serialize()
|
|
279
|
-
|
|
280
|
-
## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.4.0) (2018-09-23)
|
|
281
|
-
|
|
282
|
-
#### 🚀 Features
|
|
283
|
-
|
|
284
|
-
- emmet class & class attrib merging in normalize() ([1d8eeb4](https://github.com/thi-ng/umbrella/commit/1d8eeb4))
|
|
285
|
-
- now same behavior as hdom's normalizeElement()
|
|
286
|
-
- update tests
|
|
287
|
-
|
|
288
|
-
## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.3.0) (2018-09-22)
|
|
289
|
-
|
|
290
|
-
#### 🚀 Features
|
|
291
|
-
|
|
292
|
-
- add control attrib handling, add comment support ([363c241](https://github.com/thi-ng/umbrella/commit/363c241))
|
|
293
|
-
- skip serialize() for elements w/ `__serialize: false` attrib
|
|
294
|
-
- omit output of any control attribs
|
|
295
|
-
- add COMMENT const and comment serialization
|
|
296
|
-
- update imports
|
|
297
|
-
- update docstring
|
|
298
|
-
|
|
299
|
-
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.1.0) (2018-08-31)
|
|
300
|
-
|
|
301
|
-
#### 🚀 Features
|
|
302
|
-
|
|
303
|
-
- add optional support for spans & auto keying ([#39](https://github.com/thi-ng/umbrella/issues/39)) ([1b0deb2](https://github.com/thi-ng/umbrella/commit/1b0deb2))
|
|
304
|
-
|
|
305
|
-
#### 🩹 Bug fixes
|
|
306
|
-
|
|
307
|
-
- disable spans for certain element types ([1b97a25](https://github.com/thi-ng/umbrella/commit/1b97a25))
|
|
308
|
-
- re-add NO_SPANS (moved from hdom)
|
|
309
|
-
- update _serialize()
|
|
310
|
-
- serialize() args ([1e8b4ef](https://github.com/thi-ng/umbrella/commit/1e8b4ef))
|
|
311
|
-
|
|
312
|
-
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.0.0) (2018-05-13)
|
|
313
|
-
|
|
314
|
-
#### 🛑 Breaking changes
|
|
315
|
-
|
|
316
|
-
- fix [#19](https://github.com/thi-ng/umbrella/issues/19), add support for context object ([feca566](https://github.com/thi-ng/umbrella/commit/feca566))
|
|
317
|
-
- BREAKING CHANGE: component functions now take a global context object as
|
|
318
|
-
first argument (like w/ [@thi.ng/hdom](https://github.com/thi-ng/umbrella/tree/main/packages/hdom))
|
|
319
|
-
- update serialize() to accept & pass optional context
|
|
320
|
-
- add support for component objects
|
|
321
|
-
- add/update tests
|
|
322
|
-
|
|
323
|
-
#### ⏱ Performance improvements
|
|
324
|
-
|
|
325
|
-
- update css() ([b1cb7d9](https://github.com/thi-ng/umbrella/commit/b1cb7d9))
|
|
326
|
-
- use string concat (~2.5x faster)
|
|
327
|
-
- skip null values
|
|
328
|
-
|
|
329
|
-
### [1.3.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.3.14) (2018-05-10)
|
|
330
|
-
|
|
331
|
-
#### ♻️ Refactoring
|
|
332
|
-
|
|
333
|
-
- 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))
|
|
334
|
-
|
|
335
|
-
### [1.3.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.3.4) (2018-04-08)
|
|
336
|
-
|
|
337
|
-
#### ♻️ Refactoring
|
|
338
|
-
|
|
339
|
-
- remove obsolete deref check ([fcf1404](https://github.com/thi-ng/umbrella/commit/fcf1404))
|
|
340
|
-
|
|
341
|
-
## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.3.0) (2018-03-21)
|
|
342
|
-
|
|
343
|
-
#### 🚀 Features
|
|
344
|
-
|
|
345
|
-
- update error handling, add [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) dep ([a3238ab](https://github.com/thi-ng/umbrella/commit/a3238ab))
|
|
346
|
-
|
|
347
|
-
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.2.0) (2018-03-14)
|
|
348
|
-
|
|
349
|
-
#### 🚀 Features
|
|
350
|
-
|
|
351
|
-
- add auto deref() support ([0d2c16f](https://github.com/thi-ng/umbrella/commit/0d2c16f))
|
|
352
|
-
- support fn values in style objects ([93343d6](https://github.com/thi-ng/umbrella/commit/93343d6))
|
|
353
|
-
|
|
354
|
-
#### ♻️ Refactoring
|
|
355
|
-
|
|
356
|
-
- disable deref() for attrib objects ([de839e8](https://github.com/thi-ng/umbrella/commit/de839e8))
|
|
357
|
-
|
|
358
|
-
### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.1.1) (2018-02-26)
|
|
359
|
-
|
|
360
|
-
#### ♻️ Refactoring
|
|
361
|
-
|
|
362
|
-
- sort void tags ([45d6385](https://github.com/thi-ng/umbrella/commit/45d6385))
|
|
363
|
-
|
|
364
|
-
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.1.0) (2018-02-24)
|
|
365
|
-
|
|
366
|
-
#### 🚀 Features
|
|
367
|
-
|
|
368
|
-
- add support for more SVG tags (66 total) ([44f33df](https://github.com/thi-ng/umbrella/commit/44f33df))
|
|
369
|
-
|
|
370
|
-
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.0.0) (2018-02-03)
|
|
371
|
-
|
|
372
|
-
#### 🛑 Breaking changes
|
|
373
|
-
|
|
374
|
-
- skip fn exec for event attribs, update tests, readme ([7ae706e](https://github.com/thi-ng/umbrella/commit/7ae706e))
|
|
375
|
-
- BREAKING CHANGE: event attribs w/ function values will be omitted, see readme for details/examples
|
|
376
|
-
|
|
377
|
-
### [0.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@0.1.6) (2018-02-01)
|
|
378
|
-
|
|
379
|
-
#### ♻️ Refactoring
|
|
380
|
-
|
|
381
|
-
- update/add deps, restructure/split into sub-modules ([0439d24](https://github.com/thi-ng/umbrella/commit/0439d24))
|
|
382
|
-
|
|
383
|
-
### [0.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@0.1.2) (2018-01-24)
|
|
384
|
-
|
|
385
|
-
#### 🚀 Features
|
|
386
|
-
|
|
387
|
-
- initial re-import as monorepo, update readme files, cleanup imports ([04ff6e9](https://github.com/thi-ng/umbrella/commit/04ff6e9))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hiccup",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -40,17 +40,16 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.11.
|
|
44
|
-
"@thi.ng/checks": "^3.6.
|
|
45
|
-
"@thi.ng/errors": "^2.5.
|
|
46
|
-
"@thi.ng/strings": "^3.9.
|
|
43
|
+
"@thi.ng/api": "^8.11.18",
|
|
44
|
+
"@thi.ng/checks": "^3.6.21",
|
|
45
|
+
"@thi.ng/errors": "^2.5.24",
|
|
46
|
+
"@thi.ng/strings": "^3.9.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@
|
|
50
|
-
"@thi.ng/atom": "^5.3.18",
|
|
49
|
+
"@thi.ng/atom": "^5.3.19",
|
|
51
50
|
"esbuild": "^0.24.2",
|
|
52
51
|
"typedoc": "^0.27.6",
|
|
53
|
-
"typescript": "^5.7.
|
|
52
|
+
"typescript": "^5.7.3"
|
|
54
53
|
},
|
|
55
54
|
"keywords": [
|
|
56
55
|
"array",
|
|
@@ -132,5 +131,5 @@
|
|
|
132
131
|
],
|
|
133
132
|
"year": 2016
|
|
134
133
|
},
|
|
135
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "b92b48abda9941d608be8a2e1c83447e679a6f79\n"
|
|
136
135
|
}
|