@thi.ng/hdom 9.1.24 → 9.1.26
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 +29 -26
- package/README.md +1 -1
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2022-
|
|
3
|
+
- **Last updated**: 2022-11-23T22:46:54Z
|
|
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.
|
|
@@ -44,9 +44,9 @@ and/or version bumps of transitive dependencies.
|
|
|
44
44
|
|
|
45
45
|
#### ♻️ Refactoring
|
|
46
46
|
|
|
47
|
-
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
48
47
|
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
49
48
|
- add .js suffix for all relative imports
|
|
49
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
50
50
|
|
|
51
51
|
# [9.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@9.0.0) (2021-10-12)
|
|
52
52
|
|
|
@@ -67,16 +67,16 @@ and/or version bumps of transitive dependencies.
|
|
|
67
67
|
|
|
68
68
|
#### ♻️ Refactoring
|
|
69
69
|
|
|
70
|
-
-
|
|
70
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
71
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
72
|
+
- update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
|
|
71
73
|
- update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
|
|
72
74
|
- largely related to recent updates/restructuring of these packages:
|
|
73
75
|
- api
|
|
74
76
|
- defmulti
|
|
75
77
|
- errors
|
|
76
78
|
- logger
|
|
77
|
-
-
|
|
78
|
-
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
79
|
-
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
79
|
+
- minor pkg restructure ([61a6592](https://github.com/thi-ng/umbrella/commit/61a6592))
|
|
80
80
|
|
|
81
81
|
### [8.2.14](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@8.2.14) (2020-12-22)
|
|
82
82
|
|
|
@@ -94,9 +94,9 @@ and/or version bumps of transitive dependencies.
|
|
|
94
94
|
|
|
95
95
|
#### ♻️ Refactoring
|
|
96
96
|
|
|
97
|
+
- simplify normalizeElement() ([b310c61](https://github.com/thi-ng/umbrella/commit/b310c61))
|
|
97
98
|
- update normalizeTree() ([cda40f1](https://github.com/thi-ng/umbrella/commit/cda40f1))
|
|
98
99
|
- extract normalizeChildren()
|
|
99
|
-
- simplify normalizeElement() ([b310c61](https://github.com/thi-ng/umbrella/commit/b310c61))
|
|
100
100
|
|
|
101
101
|
### [8.2.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@8.2.9) (2020-09-13)
|
|
102
102
|
|
|
@@ -108,16 +108,16 @@ and/or version bumps of transitive dependencies.
|
|
|
108
108
|
|
|
109
109
|
#### 🚀 Features
|
|
110
110
|
|
|
111
|
-
- add RDFa `prefix` attrib support, update xmlns imports ([f0e7460](https://github.com/thi-ng/umbrella/commit/f0e7460))
|
|
112
111
|
- update deps, update xmlns import ([99fbae7](https://github.com/thi-ng/umbrella/commit/99fbae7))
|
|
112
|
+
- add RDFa `prefix` attrib support, update xmlns imports ([f0e7460](https://github.com/thi-ng/umbrella/commit/f0e7460))
|
|
113
113
|
|
|
114
114
|
## [8.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@8.1.0) (2020-06-28)
|
|
115
115
|
|
|
116
116
|
#### 🚀 Features
|
|
117
117
|
|
|
118
|
-
- add support for event listener strings ([db8d350](https://github.com/thi-ng/umbrella/commit/db8d350))
|
|
119
118
|
- add support `class` attrib object vals ([074985a](https://github.com/thi-ng/umbrella/commit/074985a))
|
|
120
119
|
- update normalizeElement() class merge logic
|
|
120
|
+
- add support for event listener strings ([db8d350](https://github.com/thi-ng/umbrella/commit/db8d350))
|
|
121
121
|
|
|
122
122
|
### [8.0.18](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@8.0.18) (2020-04-06)
|
|
123
123
|
|
|
@@ -154,7 +154,6 @@ and/or version bumps of transitive dependencies.
|
|
|
154
154
|
|
|
155
155
|
#### ♻️ Refactoring
|
|
156
156
|
|
|
157
|
-
- update to use new hiccup regex names ([0236ff6](https://github.com/thi-ng/umbrella/commit/0236ff6))
|
|
158
157
|
- refactor/simplify diff & dom impls ([20de716](https://github.com/thi-ng/umbrella/commit/20de716))
|
|
159
158
|
- extract diffDeleted()/diffAdded() from diffTree()
|
|
160
159
|
- extract incOffsets()/decOffsets() from diffTree()
|
|
@@ -162,6 +161,7 @@ and/or version bumps of transitive dependencies.
|
|
|
162
161
|
- extract maybeInitElement() from createTree()/hydrateTree()
|
|
163
162
|
- extract addChild(), update createElement/createTextElement()
|
|
164
163
|
- update various conditionals
|
|
164
|
+
- update to use new hiccup regex names ([0236ff6](https://github.com/thi-ng/umbrella/commit/0236ff6))
|
|
165
165
|
|
|
166
166
|
# [8.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@8.0.0) (2019-07-07)
|
|
167
167
|
|
|
@@ -278,8 +278,8 @@ and/or version bumps of transitive dependencies.
|
|
|
278
278
|
|
|
279
279
|
#### ♻️ Refactoring
|
|
280
280
|
|
|
281
|
-
- minor update diff call sites ([c3f6f98](https://github.com/thi-ng/umbrella/commit/c3f6f98))
|
|
282
281
|
- update diffTree & diffAttributes ([@thi.ng/diff](https://github.com/thi-ng/umbrella/tree/main/packages/diff) updates) ([e9b067b](https://github.com/thi-ng/umbrella/commit/e9b067b))
|
|
282
|
+
- minor update diff call sites ([c3f6f98](https://github.com/thi-ng/umbrella/commit/c3f6f98))
|
|
283
283
|
|
|
284
284
|
## [5.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@5.2.0) (2018-11-07)
|
|
285
285
|
|
|
@@ -330,11 +330,8 @@ and/or version bumps of transitive dependencies.
|
|
|
330
330
|
|
|
331
331
|
### [5.0.0-alpha](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@5.0.0-alpha) (2018-09-16)
|
|
332
332
|
|
|
333
|
-
####
|
|
333
|
+
#### 🛑 Breaking changes
|
|
334
334
|
|
|
335
|
-
- add `.toHiccup()` interface support ([54ba0ce](https://github.com/thi-ng/umbrella/commit/54ba0ce))
|
|
336
|
-
- add `.toHiccup()` type check in `normalizeTree()` and call w/
|
|
337
|
-
user context
|
|
338
335
|
- reorg & extend HDOMImplementation ([1ac245f](https://github.com/thi-ng/umbrella/commit/1ac245f))
|
|
339
336
|
- add normalizeTree, hydrateTree & diffTree to HDOMImplementation
|
|
340
337
|
- add HDOMBehaviorAttribs
|
|
@@ -346,25 +343,32 @@ and/or version bumps of transitive dependencies.
|
|
|
346
343
|
(inject user context)
|
|
347
344
|
- add `__impl` support in hydrateDOM()
|
|
348
345
|
- add opt `impl` arg for start()
|
|
349
|
-
|
|
346
|
+
- BREAKING CHANGES: new names & call signatures for:
|
|
350
347
|
- normalizeTree
|
|
351
348
|
- diffElement => diffTree
|
|
352
349
|
- createDOM
|
|
353
350
|
- hydrateDOM
|
|
354
351
|
- replaceChild
|
|
352
|
+
|
|
353
|
+
#### 🚀 Features
|
|
354
|
+
|
|
355
355
|
- update normalizeTree, add to HDOMImplementation ([59bb19c](https://github.com/thi-ng/umbrella/commit/59bb19c))
|
|
356
356
|
- update normalizeTree() to check for & use branch-local impl if present
|
|
357
357
|
- add existing normalizeTree to DEFAULT_IMPL
|
|
358
358
|
- update HDOMImplementation interface
|
|
359
|
+
- add `.toHiccup()` interface support ([54ba0ce](https://github.com/thi-ng/umbrella/commit/54ba0ce))
|
|
360
|
+
- add `.toHiccup()` type check in `normalizeTree()` and call w/
|
|
361
|
+
user context
|
|
359
362
|
|
|
360
363
|
#### 🩹 Bug fixes
|
|
361
364
|
|
|
362
|
-
- delegate diffTree() to branch impl ([6c33901](https://github.com/thi-ng/umbrella/commit/6c33901))
|
|
363
|
-
- exclude hdom control attribs in setAttrib() ([0592063](https://github.com/thi-ng/umbrella/commit/0592063))
|
|
364
365
|
- minor fix (hydrateDOM) ([e4f780c](https://github.com/thi-ng/umbrella/commit/e4f780c))
|
|
366
|
+
- exclude hdom control attribs in setAttrib() ([0592063](https://github.com/thi-ng/umbrella/commit/0592063))
|
|
367
|
+
- delegate diffTree() to branch impl ([6c33901](https://github.com/thi-ng/umbrella/commit/6c33901))
|
|
365
368
|
|
|
366
369
|
#### ⏱ Performance improvements
|
|
367
370
|
|
|
371
|
+
- add opt `__release` attrib to disable releaseDeep() ([2e3fb66](https://github.com/thi-ng/umbrella/commit/2e3fb66))
|
|
368
372
|
- update diffTree(), inline node type checks ([382c45c](https://github.com/thi-ng/umbrella/commit/382c45c))
|
|
369
373
|
- add child tracking index table template for diffTree()
|
|
370
374
|
- bail out early if edit distance = 2 and only attribs changed
|
|
@@ -372,19 +376,21 @@ and/or version bumps of transitive dependencies.
|
|
|
372
376
|
hydrateDOM(), setAttrib()
|
|
373
377
|
- rename releaseDeep() => releaseTree()
|
|
374
378
|
-
|
|
375
|
-
- add opt `__release` attrib to disable releaseDeep() ([2e3fb66](https://github.com/thi-ng/umbrella/commit/2e3fb66))
|
|
376
379
|
|
|
377
380
|
#### ♻️ Refactoring
|
|
378
381
|
|
|
379
|
-
- export diff related fns ([ebfcf15](https://github.com/thi-ng/umbrella/commit/ebfcf15))
|
|
380
|
-
- update custom equiv() ([d9af2e5](https://github.com/thi-ng/umbrella/commit/d9af2e5))
|
|
381
|
-
- use custom equiv also for diffAttributes() ([bde18d5](https://github.com/thi-ng/umbrella/commit/bde18d5))
|
|
382
382
|
- trial run of custom equiv() impl for diffTree() ([96beaf3](https://github.com/thi-ng/umbrella/commit/96beaf3))
|
|
383
|
+
- use custom equiv also for diffAttributes() ([bde18d5](https://github.com/thi-ng/umbrella/commit/bde18d5))
|
|
384
|
+
- update custom equiv() ([d9af2e5](https://github.com/thi-ng/umbrella/commit/d9af2e5))
|
|
385
|
+
- export diff related fns ([ebfcf15](https://github.com/thi-ng/umbrella/commit/ebfcf15))
|
|
383
386
|
|
|
384
387
|
### [4.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@4.0.5) (2018-09-10)
|
|
385
388
|
|
|
386
389
|
#### 🚀 Features
|
|
387
390
|
|
|
391
|
+
- add optional support for blocking normalize & diff ([5cb4350](https://github.com/thi-ng/umbrella/commit/5cb4350))
|
|
392
|
+
- add `__normalize` attrib to stop normalization of subtree
|
|
393
|
+
- add `__diff` attrib to stop diffing of subtree
|
|
388
394
|
- generalize diffElement() ([#4](https://github.com/thi-ng/umbrella/issues/4)) ([525d90d](https://github.com/thi-ng/umbrella/commit/525d90d))
|
|
389
395
|
- add HDOMOps interface
|
|
390
396
|
- add DEFAULT_OPS implementation
|
|
@@ -393,9 +399,6 @@ and/or version bumps of transitive dependencies.
|
|
|
393
399
|
- update createDOM(), add support for `__ops` node attrib
|
|
394
400
|
to use custom ops for subtrees
|
|
395
401
|
- add getChild(), replaceChild(), setContent()
|
|
396
|
-
- add optional support for blocking normalize & diff ([5cb4350](https://github.com/thi-ng/umbrella/commit/5cb4350))
|
|
397
|
-
- add `__normalize` attrib to stop normalization of subtree
|
|
398
|
-
- add `__diff` attrib to stop diffing of subtree
|
|
399
402
|
|
|
400
403
|
#### ♻️ Refactoring
|
|
401
404
|
|
|
@@ -435,8 +438,8 @@ and/or version bumps of transitive dependencies.
|
|
|
435
438
|
|
|
436
439
|
#### ♻️ Refactoring
|
|
437
440
|
|
|
438
|
-
- remove [@thi.ng/iterators](https://github.com/thi-ng/umbrella/tree/main/packages/iterators) dependency ([1434b0e](https://github.com/thi-ng/umbrella/commit/1434b0e))
|
|
439
441
|
- replace SEMAPHORE const w/ [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) def ([9b443cb](https://github.com/thi-ng/umbrella/commit/9b443cb))
|
|
442
|
+
- remove [@thi.ng/iterators](https://github.com/thi-ng/umbrella/tree/main/packages/iterators) dependency ([1434b0e](https://github.com/thi-ng/umbrella/commit/1434b0e))
|
|
440
443
|
|
|
441
444
|
### [3.0.32](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@3.0.32) (2018-08-01)
|
|
442
445
|
|
package/README.md
CHANGED
|
@@ -208,7 +208,7 @@ A selection:
|
|
|
208
208
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/soa-ecs-100k.png" width="240"/> | Entity Component System w/ 100k 3D particles | [Demo](https://demo.thi.ng/umbrella/soa-ecs/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/soa-ecs) |
|
|
209
209
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/svg-barchart.png" width="240"/> | Simplistic SVG bar chart component | [Demo](https://demo.thi.ng/umbrella/svg-barchart/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/svg-barchart) |
|
|
210
210
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/svg-waveform.jpg" width="240"/> | Additive waveform synthesis & SVG visualization with undo/redo | [Demo](https://demo.thi.ng/umbrella/svg-waveform/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/svg-waveform) |
|
|
211
|
-
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/talk-slides.png" width="240"/> | hdom based slide deck viewer & slides from my ClojureX 2018 keynote | [Demo](
|
|
211
|
+
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/talk-slides.png" width="240"/> | hdom based slide deck viewer & slides from my ClojureX 2018 keynote | [Demo](http://media.thi.ng/2018/talks/clojurex/index.html) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/talk-slides) |
|
|
212
212
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/todo-list.png" width="240"/> | Obligatory to-do list example with undo/redo | [Demo](https://demo.thi.ng/umbrella/todo-list/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/todo-list) |
|
|
213
213
|
| <img src="https://raw.githubusercontent.com/thi-ng/umbrella/develop/assets/examples/triple-query.png" width="240"/> | Triple store query results & sortable table | [Demo](https://demo.thi.ng/umbrella/triple-query/) | [Source](https://github.com/thi-ng/umbrella/tree/develop/examples/triple-query) |
|
|
214
214
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/hdom",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.26",
|
|
4
4
|
"description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/diff": "^5.1.
|
|
40
|
-
"@thi.ng/equiv": "^2.1.
|
|
41
|
-
"@thi.ng/errors": "^2.2.
|
|
42
|
-
"@thi.ng/hiccup": "^4.2.
|
|
43
|
-
"@thi.ng/logger": "^1.4.
|
|
44
|
-
"@thi.ng/prefixes": "^2.1.
|
|
37
|
+
"@thi.ng/api": "^8.5.0",
|
|
38
|
+
"@thi.ng/checks": "^3.3.3",
|
|
39
|
+
"@thi.ng/diff": "^5.1.17",
|
|
40
|
+
"@thi.ng/equiv": "^2.1.13",
|
|
41
|
+
"@thi.ng/errors": "^2.2.4",
|
|
42
|
+
"@thi.ng/hiccup": "^4.2.24",
|
|
43
|
+
"@thi.ng/logger": "^1.4.3",
|
|
44
|
+
"@thi.ng/prefixes": "^2.1.13"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@microsoft/api-extractor": "^7.33.5",
|
|
48
|
-
"@thi.ng/atom": "^5.1.
|
|
49
|
-
"@thi.ng/testament": "^0.3.
|
|
48
|
+
"@thi.ng/atom": "^5.1.23",
|
|
49
|
+
"@thi.ng/testament": "^0.3.5",
|
|
50
50
|
"rimraf": "^3.0.2",
|
|
51
51
|
"tools": "^0.0.1",
|
|
52
|
-
"typedoc": "^0.23.
|
|
52
|
+
"typedoc": "^0.23.20",
|
|
53
53
|
"typescript": "^4.8.4"
|
|
54
54
|
},
|
|
55
55
|
"keywords": [
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"node": ">=12.7"
|
|
77
77
|
},
|
|
78
78
|
"files": [
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"./*.js",
|
|
80
|
+
"./*.d.ts"
|
|
81
81
|
],
|
|
82
82
|
"exports": {
|
|
83
83
|
".": {
|
|
@@ -124,5 +124,5 @@
|
|
|
124
124
|
],
|
|
125
125
|
"year": 2015
|
|
126
126
|
},
|
|
127
|
-
"gitHead": "
|
|
127
|
+
"gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
|
|
128
128
|
}
|