@thi.ng/hiccup 4.1.4 → 4.2.3

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 (2) hide show
  1. package/CHANGELOG.md +194 -100
  2. package/package.json +115 -110
package/CHANGELOG.md CHANGED
@@ -1,205 +1,299 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
+
3
6
  All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
5
8
 
6
- ## [4.1.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@4.1.3...@thi.ng/hiccup@4.1.4) (2021-11-10)
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
7
11
 
8
- **Note:** Version bump only for package @thi.ng/hiccup
12
+ ## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.2.0) (2021-11-17)
9
13
 
14
+ #### 🚀 Features
10
15
 
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
11
21
 
22
+ #### ♻️ Refactoring
12
23
 
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
13
30
 
14
- ## [4.1.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@4.1.2...@thi.ng/hiccup@4.1.3) (2021-11-03)
31
+ ## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.1.0) (2021-10-25)
15
32
 
16
- **Note:** Version bump only for package @thi.ng/hiccup
33
+ #### 🚀 Features
17
34
 
35
+ - 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))
18
36
 
37
+ ### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.0.1) (2021-10-13)
19
38
 
39
+ #### ♻️ Refactoring
20
40
 
41
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
42
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
43
+ - add .js suffix for all relative imports
21
44
 
22
- # [4.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@4.0.3...@thi.ng/hiccup@4.1.0) (2021-10-25)
45
+ # [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.0.0) (2021-10-12)
23
46
 
47
+ #### 🛑 Breaking changes
24
48
 
25
- ### Features
49
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
50
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
51
+ - only ESM modules will be published from now on
52
+ - CJS obsolete due to ESM support in recent versions of node:
53
+ - i.e. launch NodeJS via:
54
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
55
+ - in the node REPL use `await import(...)` instead of `require()`
56
+ - UMD obsolete due to widespread browser support for ESM
57
+ Also:
58
+ - normalize/restructure/reorg all package.json files
59
+ - cleanup all build scripts, remove obsolete
60
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
26
61
 
27
- * **hiccup:** replace entity handling w/ thi.ng/strings ([04154b8](https://github.com/thi-ng/umbrella/commit/04154b89f3440052dfccfd6a633e73bc140cc615))
62
+ #### ♻️ Refactoring
28
63
 
64
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
65
+ - largely related to recent updates/restructuring of these packages:
66
+ - api
67
+ - defmulti
68
+ - errors
69
+ - logger
70
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
71
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
72
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
29
73
 
74
+ ### [3.6.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.6.4) (2020-12-07)
30
75
 
76
+ #### ♻️ Refactoring
31
77
 
78
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
32
79
 
33
- # [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.6.22...@thi.ng/hiccup@4.0.0) (2021-10-12)
80
+ ### [3.6.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.6.1) (2020-09-22)
34
81
 
82
+ #### ♻️ Refactoring
35
83
 
36
- ### Build System
84
+ - update/split serializeAttribs() ([cdf483b](https://github.com/thi-ng/umbrella/commit/cdf483b))
85
+ - update/split serialization fns ([32ac755](https://github.com/thi-ng/umbrella/commit/32ac755))
86
+ - extract serializeTag()
87
+ - extract mergeEmmetAttribs() ([0c965c9](https://github.com/thi-ng/umbrella/commit/0c965c9))
88
+ - simplify normalize() and improve external re-use in hdom/rdom
37
89
 
38
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
90
+ ## [3.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.6.0) (2020-09-13)
39
91
 
92
+ #### 🚀 Features
40
93
 
41
- ### BREAKING CHANGES
94
+ - add CDATA support, update void tag handling ([5989427](https://github.com/thi-ng/umbrella/commit/5989427))
95
+ - add CDATA tag constant
96
+ - add serializeCData()
97
+ - update VOID_TAGS, extract NO_CLOSE_EMPTY
42
98
 
43
- * discontinue CommonJS & UMD versions
99
+ ## [3.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.5.0) (2020-07-02)
44
100
 
45
- - only ESM modules will be published from now on
46
- - CJS obsolete due to ESM support in recent versions of node:
47
- - i.e. launch NodeJS via:
48
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
49
- - in the node REPL use `await import(...)` instead of `require()`
50
- - UMD obsolete due to widespread browser support for ESM
101
+ #### 🚀 Features
51
102
 
52
- Also:
53
- - normalize/restructure/reorg all package.json files
54
- - cleanup all build scripts, remove obsolete
55
- - switch from mocha to @thi.ng/testament for all tests
103
+ - add RDFa `prefix` attrib handling, add tests ([24a7748](https://github.com/thi-ng/umbrella/commit/24a7748))
104
+ - add `formatPrefixes()` helper
105
+ - update `serializeAttribs()`
106
+ - remove obsolete SVG/XLINK urls ([aa34be7](https://github.com/thi-ng/umbrella/commit/aa34be7))
107
+ - moved to [@thi.ng/prefixes](https://github.com/thi-ng/umbrella/tree/main/packages/prefixes) pkg for better re-use
56
108
 
109
+ ## [3.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.4.0) (2020-06-28)
57
110
 
111
+ #### 🚀 Features
58
112
 
113
+ - update deps & attrib handling ([09ba171](https://github.com/thi-ng/umbrella/commit/09ba171))
114
+ - add [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) dep
115
+ - add support for IDeref attrib vals
116
+ - add support for `class` attrib obj vals
117
+ - add `mergeClasses()` helper
118
+ - add IDeref support inside `class` & `style` attribs
119
+ - add support for nested data attribs
59
120
 
121
+ ## [3.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.3.0) (2020-06-24)
60
122
 
123
+ #### 🚀 Features
61
124
 
62
- # [3.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.5.8...@thi.ng/hiccup@3.6.0) (2020-09-13)
125
+ - update `accept` attrib handling ([fabf447](https://github.com/thi-ng/umbrella/commit/fabf447))
126
+ - support array attrib values, add tests ([1c4ef8a](https://github.com/thi-ng/umbrella/commit/1c4ef8a))
63
127
 
64
- ### Features
128
+ ### [3.2.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.2.4) (2019-08-21)
65
129
 
66
- - **hiccup:** add CDATA support, update void tag handling ([5989427](https://github.com/thi-ng/umbrella/commit/59894274cffff6c9776e0edc366005ff1da14139))
130
+ #### 🩹 Bug fixes
67
131
 
68
- # [3.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.4.0...@thi.ng/hiccup@3.5.0) (2020-07-02)
132
+ - update/rename regexes & tag maps ([6dba80d](https://github.com/thi-ng/umbrella/commit/6dba80d))
69
133
 
70
- ### Features
134
+ #### ♻️ Refactoring
71
135
 
72
- - **hiccup:** add RDFa `prefix` attrib handling, add tests ([24a7748](https://github.com/thi-ng/umbrella/commit/24a7748ddb35632567175d3055f90b41d353e219))
73
- - **hiccup:** remove obsolete SVG/XLINK urls ([aa34be7](https://github.com/thi-ng/umbrella/commit/aa34be7bedfeae5a4d203aaec0d8d94ed43c07f2))
136
+ - split serialize(), move normalize() to own file ([fa56951](https://github.com/thi-ng/umbrella/commit/fa56951))
74
137
 
75
- # [3.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.3.0...@thi.ng/hiccup@3.4.0) (2020-06-28)
138
+ ## [3.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.2.0) (2019-07-07)
76
139
 
77
- ### Features
140
+ #### 🚀 Features
78
141
 
79
- - **hiccup:** update deps & attrib handling ([09ba171](https://github.com/thi-ng/umbrella/commit/09ba17165e89202fdc48b095ee1e62f65adbcad4))
142
+ - enable TS strict compiler flags (refactor) ([d0fce75](https://github.com/thi-ng/umbrella/commit/d0fce75))
80
143
 
81
- # [3.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.26...@thi.ng/hiccup@3.3.0) (2020-06-24)
144
+ #### ♻️ Refactoring
82
145
 
83
- ### Features
146
+ - address TS strictNullChecks flag ([c73b207](https://github.com/thi-ng/umbrella/commit/c73b207))
84
147
 
85
- - **hiccup:** support array attrib values, add tests ([1c4ef8a](https://github.com/thi-ng/umbrella/commit/1c4ef8aa6464dee9e9fed39e8213e52ed67e2ac1))
86
- - **hiccup:** update `accept` attrib handling ([fabf447](https://github.com/thi-ng/umbrella/commit/fabf447d5ef7f666f16ee11d46188496121766d2))
148
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.1.0) (2019-02-18)
87
149
 
88
- ## [3.2.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.2.3...@thi.ng/hiccup@3.2.4) (2019-08-21)
150
+ #### 🚀 Features
89
151
 
90
- ### Bug Fixes
152
+ - add support for XML/DTD proc tags, update readme, tests ([ede2842](https://github.com/thi-ng/umbrella/commit/ede2842))
91
153
 
92
- - **hiccup:** update/rename regexes & tag maps ([6dba80d](https://github.com/thi-ng/umbrella/commit/6dba80d))
154
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@3.0.0) (2019-01-21)
93
155
 
94
- # [3.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.1.9...@thi.ng/hiccup@3.2.0) (2019-07-07)
156
+ #### 🛑 Breaking changes
95
157
 
96
- ### Features
158
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
159
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
160
+ - build scripts now first build ES6 modules in package root, then call
161
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
162
+ - all imports MUST be updated to only refer to package level
163
+ (not individual files anymore). tree shaking in user land will get rid of
164
+ all unused imported symbols.
97
165
 
98
- - **hiccup:** enable TS strict compiler flags (refactor) ([d0fce75](https://github.com/thi-ng/umbrella/commit/d0fce75))
166
+ ### [2.7.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.7.2) (2018-12-20)
99
167
 
100
- # [3.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@3.0.3...@thi.ng/hiccup@3.1.0) (2019-02-18)
168
+ #### ♻️ Refactoring
101
169
 
102
- ### Features
170
+ - export normalize() fn ([df38394](https://github.com/thi-ng/umbrella/commit/df38394))
103
171
 
104
- - **hiccup:** add support for XML/DTD proc tags, update readme, tests ([ede2842](https://github.com/thi-ng/umbrella/commit/ede2842))
172
+ ## [2.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.7.0) (2018-12-13)
105
173
 
106
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.7.2...@thi.ng/hiccup@3.0.0) (2019-01-21)
174
+ #### 🚀 Features
107
175
 
108
- ### Build System
176
+ - add __skip support, add test, update readme ([d3500df](https://github.com/thi-ng/umbrella/commit/d3500df))
109
177
 
110
- - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
178
+ ## [2.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.6.0) (2018-11-07)
179
+
180
+ #### 🚀 Features
181
+
182
+ - update derefContext() to only apply to selected keys ([749925f](https://github.com/thi-ng/umbrella/commit/749925f))
183
+
184
+ ## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.5.0) (2018-11-06)
185
+
186
+ #### 🚀 Features
187
+
188
+ - add support for dynamic user context values ([a947873](https://github.com/thi-ng/umbrella/commit/a947873))
189
+ - add derefContext() helper to auto-deref any IDeref vals
190
+ - update serialize()
191
+
192
+ ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.4.0) (2018-09-23)
111
193
 
112
- ### BREAKING CHANGES
194
+ #### 🚀 Features
113
195
 
114
- - enabled multi-outputs (ES6 modules, CJS, UMD)
115
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
116
- - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
196
+ - emmet class & class attrib merging in normalize() ([1d8eeb4](https://github.com/thi-ng/umbrella/commit/1d8eeb4))
197
+ - now same behavior as hdom's normalizeElement()
198
+ - update tests
117
199
 
118
- # [2.7.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.6.1...@thi.ng/hiccup@2.7.0) (2018-12-13)
200
+ ## [2.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.3.0) (2018-09-22)
119
201
 
120
- ### Features
202
+ #### 🚀 Features
121
203
 
122
- - **hiccup:** add __skip support, add test, update readme ([d3500df](https://github.com/thi-ng/umbrella/commit/d3500df))
204
+ - add control attrib handling, add comment support ([363c241](https://github.com/thi-ng/umbrella/commit/363c241))
205
+ - skip serialize() for elements w/ `__serialize: false` attrib
206
+ - omit output of any control attribs
207
+ - add COMMENT const and comment serialization
208
+ - update imports
209
+ - update docstring
123
210
 
124
- # [2.6.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.5.0...@thi.ng/hiccup@2.6.0) (2018-11-07)
211
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.1.0) (2018-08-31)
125
212
 
126
- ### Features
213
+ #### 🚀 Features
127
214
 
128
- - **hiccup:** update derefContext() to only apply to selected keys ([749925f](https://github.com/thi-ng/umbrella/commit/749925f))
215
+ - 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))
129
216
 
130
- # [2.5.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.4.3...@thi.ng/hiccup@2.5.0) (2018-11-06)
217
+ #### 🩹 Bug fixes
131
218
 
132
- ### Features
219
+ - serialize() args ([1e8b4ef](https://github.com/thi-ng/umbrella/commit/1e8b4ef))
220
+ - disable spans for certain element types ([1b97a25](https://github.com/thi-ng/umbrella/commit/1b97a25))
221
+ - re-add NO_SPANS (moved from hdom)
222
+ - update _serialize()
133
223
 
134
- - **hiccup:** add support for dynamic user context values ([a947873](https://github.com/thi-ng/umbrella/commit/a947873))
224
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@2.0.0) (2018-05-13)
135
225
 
136
- # [2.4.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.3.0...@thi.ng/hiccup@2.4.0) (2018-09-23)
226
+ #### 🛑 Breaking changes
137
227
 
138
- ### Features
228
+ - fix [#19](https://github.com/thi-ng/umbrella/issues/19), add support for context object ([feca566](https://github.com/thi-ng/umbrella/commit/feca566))
229
+ - BREAKING CHANGE: component functions now take a global context object as
230
+ first argument (like w/ [@thi.ng/hdom](https://github.com/thi-ng/umbrella/tree/main/packages/hdom))
231
+ - update serialize() to accept & pass optional context
232
+ - add support for component objects
233
+ - add/update tests
139
234
 
140
- - **hiccup:** emmet class & class attrib merging in normalize() ([1d8eeb4](https://github.com/thi-ng/umbrella/commit/1d8eeb4))
235
+ #### Performance improvements
141
236
 
142
- # [2.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.2.1-alpha.1...@thi.ng/hiccup@2.3.0) (2018-09-22)
237
+ - update css() ([b1cb7d9](https://github.com/thi-ng/umbrella/commit/b1cb7d9))
238
+ - use string concat (~2.5x faster)
239
+ - skip null values
143
240
 
144
- ### Features
241
+ ### [1.3.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.3.14) (2018-05-10)
145
242
 
146
- - **hiccup:** add control attrib handling, add comment support ([363c241](https://github.com/thi-ng/umbrella/commit/363c241))
243
+ #### ♻️ Refactoring
147
244
 
148
- # [2.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.0.11...@thi.ng/hiccup@2.1.0) (2018-08-31)
245
+ - 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))
149
246
 
150
- ### Bug Fixes
247
+ ### [1.3.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.3.4) (2018-04-08)
151
248
 
152
- - **hiccup:** disable spans for certain element types ([1b97a25](https://github.com/thi-ng/umbrella/commit/1b97a25))
153
- - **hiccup:** serialize() args ([1e8b4ef](https://github.com/thi-ng/umbrella/commit/1e8b4ef))
249
+ #### ♻️ Refactoring
154
250
 
155
- ### Features
251
+ - remove obsolete deref check ([fcf1404](https://github.com/thi-ng/umbrella/commit/fcf1404))
156
252
 
157
- - **hiccup:** 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))
253
+ ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.3.0) (2018-03-21)
158
254
 
159
- ## [2.0.11](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@2.0.10...@thi.ng/hiccup@2.0.11) (2018-08-27)
255
+ #### 🚀 Features
160
256
 
161
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.3.16...@thi.ng/hiccup@2.0.0) (2018-05-13)
257
+ - 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))
162
258
 
163
- ### Code Refactoring
259
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.2.0) (2018-03-14)
164
260
 
165
- - **hiccup:** fix [#19](https://github.com/thi-ng/umbrella/issues/19), add support for context object ([feca566](https://github.com/thi-ng/umbrella/commit/feca566))
261
+ #### 🚀 Features
166
262
 
167
- ### Performance Improvements
263
+ - support fn values in style objects ([93343d6](https://github.com/thi-ng/umbrella/commit/93343d6))
264
+ - add auto deref() support ([0d2c16f](https://github.com/thi-ng/umbrella/commit/0d2c16f))
168
265
 
169
- - **hiccup:** update css() ([b1cb7d9](https://github.com/thi-ng/umbrella/commit/b1cb7d9))
266
+ #### ♻️ Refactoring
170
267
 
171
- ### BREAKING CHANGES
268
+ - disable deref() for attrib objects ([de839e8](https://github.com/thi-ng/umbrella/commit/de839e8))
172
269
 
173
- - **hiccup:** component functions now take a global context object as first argument (like w/ @thi.ng/hdom)
174
- - update serialize() to accept & pass optional context
175
- - add support for component objects
176
- - add/update tests
270
+ ### [1.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.1.1) (2018-02-26)
177
271
 
178
- # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.2.5...@thi.ng/hiccup@1.3.0) (2018-03-21)
272
+ #### ♻️ Refactoring
179
273
 
180
- ### Features
274
+ - sort void tags ([45d6385](https://github.com/thi-ng/umbrella/commit/45d6385))
181
275
 
182
- - **hiccup:** update error handling, add [@thi](https://github.com/thi).ng/api dep ([a3238ab](https://github.com/thi-ng/umbrella/commit/a3238ab))
276
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.1.0) (2018-02-24)
183
277
 
184
- # [1.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.1.3...@thi.ng/hiccup@1.2.0) (2018-03-14)
278
+ #### 🚀 Features
185
279
 
186
- ### Features
280
+ - add support for more SVG tags (66 total) ([44f33df](https://github.com/thi-ng/umbrella/commit/44f33df))
187
281
 
188
- - **hiccup:** add auto deref() support ([0d2c16f](https://github.com/thi-ng/umbrella/commit/0d2c16f))
189
- - **hiccup:** support fn values in style objects ([93343d6](https://github.com/thi-ng/umbrella/commit/93343d6))
282
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@1.0.0) (2018-02-03)
190
283
 
191
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@1.0.2...@thi.ng/hiccup@1.1.0) (2018-02-24)
284
+ #### 🛑 Breaking changes
192
285
 
193
- ### Features
286
+ - skip fn exec for event attribs, update tests, readme ([7ae706e](https://github.com/thi-ng/umbrella/commit/7ae706e))
287
+ - BREAKING CHANGE: event attribs w/ function values will be omitted, see readme for details/examples
194
288
 
195
- - **hiccup:** add support for more SVG tags (66 total) ([44f33df](https://github.com/thi-ng/umbrella/commit/44f33df))
289
+ ### [0.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@0.1.6) (2018-02-01)
196
290
 
197
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup@0.1.7...@thi.ng/hiccup@1.0.0) (2018-02-03)
291
+ #### ♻️ Refactoring
198
292
 
199
- ### Features
293
+ - update/add deps, restructure/split into sub-modules ([0439d24](https://github.com/thi-ng/umbrella/commit/0439d24))
200
294
 
201
- - **hiccup:** skip fn exec for event attribs, update tests, readme ([7ae706e](https://github.com/thi-ng/umbrella/commit/7ae706e))
295
+ ### [0.1.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@0.1.2) (2018-01-24)
202
296
 
203
- ### BREAKING CHANGES
297
+ #### 🚀 Features
204
298
 
205
- - **hiccup:** event attribs w/ function values will be omitted, see readme for details/examples
299
+ - initial re-import as monorepo, update readme files, cleanup imports ([04ff6e9](https://github.com/thi-ng/umbrella/commit/04ff6e9))
package/package.json CHANGED
@@ -1,119 +1,124 @@
1
1
  {
2
- "name": "@thi.ng/hiccup",
3
- "version": "4.1.4",
4
- "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/hiccup",
3
+ "version": "4.2.3",
4
+ "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/hiccup#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.2",
38
+ "@thi.ng/checks": "^3.1.2",
39
+ "@thi.ng/errors": "^2.1.2",
40
+ "@thi.ng/strings": "^3.3.0"
41
+ },
42
+ "devDependencies": {
43
+ "@microsoft/api-extractor": "^7.18.19",
44
+ "@thi.ng/atom": "^5.1.2",
45
+ "@thi.ng/testament": "^0.2.2",
46
+ "rimraf": "^3.0.2",
47
+ "tools": "^0.0.1",
48
+ "typedoc": "^0.22.9",
49
+ "typescript": "^4.5.2"
50
+ },
51
+ "keywords": [
52
+ "array",
53
+ "clojure",
54
+ "component",
55
+ "export",
56
+ "fileformat",
57
+ "functional",
58
+ "hiccup",
59
+ "html",
60
+ "iterator",
61
+ "json",
62
+ "svg",
63
+ "template",
64
+ "tree",
65
+ "typescript",
66
+ "xml"
67
+ ],
68
+ "publishConfig": {
69
+ "access": "public"
70
+ },
71
+ "engines": {
72
+ "node": ">=12.7"
73
+ },
74
+ "files": [
75
+ "*.js",
76
+ "*.d.ts"
77
+ ],
78
+ "exports": {
79
+ ".": {
80
+ "import": "./index.js"
35
81
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.2.0",
38
- "@thi.ng/checks": "^3.0.7",
39
- "@thi.ng/errors": "^2.0.6",
40
- "@thi.ng/strings": "^3.1.4"
82
+ "./api": {
83
+ "import": "./api.js"
41
84
  },
42
- "devDependencies": {
43
- "@thi.ng/atom": "^5.0.8",
44
- "@thi.ng/testament": "^0.1.6"
85
+ "./attribs": {
86
+ "import": "./attribs.js"
45
87
  },
46
- "keywords": [
47
- "array",
48
- "clojure",
49
- "component",
50
- "export",
51
- "fileformat",
52
- "functional",
53
- "hiccup",
54
- "html",
55
- "iterator",
56
- "json",
57
- "svg",
58
- "template",
59
- "tree",
60
- "typescript",
61
- "xml"
62
- ],
63
- "publishConfig": {
64
- "access": "public"
88
+ "./css": {
89
+ "import": "./css.js"
65
90
  },
66
- "engines": {
67
- "node": ">=12.7"
91
+ "./deref": {
92
+ "import": "./deref.js"
68
93
  },
69
- "files": [
70
- "*.js",
71
- "*.d.ts"
72
- ],
73
- "exports": {
74
- ".": {
75
- "import": "./index.js"
76
- },
77
- "./api": {
78
- "import": "./api.js"
79
- },
80
- "./attribs": {
81
- "import": "./attribs.js"
82
- },
83
- "./css": {
84
- "import": "./css.js"
85
- },
86
- "./deref": {
87
- "import": "./deref.js"
88
- },
89
- "./normalize": {
90
- "import": "./normalize.js"
91
- },
92
- "./prefix": {
93
- "import": "./prefix.js"
94
- },
95
- "./serialize": {
96
- "import": "./serialize.js"
97
- }
94
+ "./normalize": {
95
+ "import": "./normalize.js"
98
96
  },
99
- "thi.ng": {
100
- "blog": [
101
- {
102
- "title": "How to UI in 2018",
103
- "url": "https://medium.com/@thi.ng/how-to-ui-in-2018-ac2ae02acdf3"
104
- },
105
- {
106
- "title": "Of umbrellas, transducers, reactive streams & mushrooms (Pt.1)",
107
- "url": "https://medium.com/@thi.ng/of-umbrellas-transducers-reactive-streams-mushrooms-pt-1-a8717ce3a170"
108
- }
109
- ],
110
- "related": [
111
- "hdom",
112
- "hdom-canvas",
113
- "rdom",
114
- "rdom-canvas"
115
- ],
116
- "year": 2016
97
+ "./prefix": {
98
+ "import": "./prefix.js"
117
99
  },
118
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
119
- }
100
+ "./serialize": {
101
+ "import": "./serialize.js"
102
+ }
103
+ },
104
+ "thi.ng": {
105
+ "blog": [
106
+ {
107
+ "title": "How to UI in 2018",
108
+ "url": "https://medium.com/@thi.ng/how-to-ui-in-2018-ac2ae02acdf3"
109
+ },
110
+ {
111
+ "title": "Of umbrellas, transducers, reactive streams & mushrooms (Pt.1)",
112
+ "url": "https://medium.com/@thi.ng/of-umbrellas-transducers-reactive-streams-mushrooms-pt-1-a8717ce3a170"
113
+ }
114
+ ],
115
+ "related": [
116
+ "hdom",
117
+ "hdom-canvas",
118
+ "rdom",
119
+ "rdom-canvas"
120
+ ],
121
+ "year": 2016
122
+ },
123
+ "gitHead": "32cf1a96854f9bb97aca65ffa05ca862ea377059\n"
124
+ }