@thi.ng/hiccup-html 2.0.8 → 2.1.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.
- package/CHANGELOG.md +79 -53
- package/package.json +105 -100
package/CHANGELOG.md
CHANGED
|
@@ -1,92 +1,118 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@2.0.7...@thi.ng/hiccup-html@2.0.8) (2021-11-10)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/hiccup-html
|
|
9
|
-
|
|
3
|
+
- **Last updated**: 2021-12-13T10:26:00Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
10
5
|
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
11
8
|
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
12
11
|
|
|
12
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.1.0) (2021-11-17)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @thi.ng/hiccup-html
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
#### 🚀 Features
|
|
19
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
|
|
20
21
|
|
|
22
|
+
#### ♻️ Refactoring
|
|
21
23
|
|
|
22
|
-
|
|
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.
|
|
23
30
|
|
|
31
|
+
### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.0.1) (2021-10-13)
|
|
24
32
|
|
|
25
|
-
|
|
33
|
+
#### ♻️ Refactoring
|
|
26
34
|
|
|
27
|
-
|
|
35
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
36
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
37
|
+
- add .js suffix for all relative imports
|
|
28
38
|
|
|
39
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.0.0) (2021-10-12)
|
|
29
40
|
|
|
30
|
-
|
|
41
|
+
#### 🛑 Breaking changes
|
|
31
42
|
|
|
32
|
-
|
|
43
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
44
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
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
|
|
51
|
+
Also:
|
|
52
|
+
- normalize/restructure/reorg all package.json files
|
|
53
|
+
- cleanup all build scripts, remove obsolete
|
|
54
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
33
55
|
|
|
34
|
-
|
|
35
|
-
- CJS obsolete due to ESM support in recent versions of node:
|
|
36
|
-
- i.e. launch NodeJS via:
|
|
37
|
-
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
38
|
-
- in the node REPL use `await import(...)` instead of `require()`
|
|
39
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
56
|
+
#### ♻️ Refactoring
|
|
40
57
|
|
|
41
|
-
|
|
42
|
-
-
|
|
43
|
-
- cleanup all build scripts, remove obsolete
|
|
44
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
58
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
59
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
45
60
|
|
|
61
|
+
## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@1.1.0) (2021-08-17)
|
|
46
62
|
|
|
63
|
+
#### 🚀 Features
|
|
47
64
|
|
|
65
|
+
- update style/script element defs ([a1f9ac8](https://github.com/thi-ng/umbrella/commit/a1f9ac8))
|
|
66
|
+
- add CDataContent type
|
|
67
|
+
- allow string or cdata as content
|
|
68
|
+
- update `style` default attribs
|
|
48
69
|
|
|
70
|
+
### [0.3.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.3.9) (2020-12-07)
|
|
49
71
|
|
|
72
|
+
#### ♻️ Refactoring
|
|
50
73
|
|
|
51
|
-
|
|
74
|
+
- update type-only imports in remaining pkgs ([b22aa30](https://github.com/thi-ng/umbrella/commit/b22aa30))
|
|
52
75
|
|
|
53
|
-
|
|
76
|
+
## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.3.0) (2020-07-09)
|
|
54
77
|
|
|
55
|
-
|
|
78
|
+
#### 🚀 Features
|
|
56
79
|
|
|
57
|
-
|
|
80
|
+
- add CSS props for SVG elements ([efe61b8](https://github.com/thi-ng/umbrella/commit/efe61b8))
|
|
81
|
+
- add 360+ CSS property names ([d06a4ae](https://github.com/thi-ng/umbrella/commit/d06a4ae))
|
|
82
|
+
- update `style` attrib type
|
|
58
83
|
|
|
59
|
-
|
|
84
|
+
## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.2.0) (2020-07-02)
|
|
60
85
|
|
|
61
|
-
|
|
62
|
-
- **hiccup-html:** add CSS props for SVG elements ([efe61b8](https://github.com/thi-ng/umbrella/commit/efe61b8d0ddfd7f54b2689a792a092122ffe830a))
|
|
86
|
+
#### 🚀 Features
|
|
63
87
|
|
|
64
|
-
|
|
88
|
+
- add RDFa attrib support, update types ([0737a16](https://github.com/thi-ng/umbrella/commit/0737a16))
|
|
89
|
+
- add more elems (tables) ([f0616e6](https://github.com/thi-ng/umbrella/commit/f0616e6))
|
|
90
|
+
- add new elems, add/update types ([9023724](https://github.com/thi-ng/umbrella/commit/9023724))
|
|
91
|
+
- add textArea() ([3fceb02](https://github.com/thi-ng/umbrella/commit/3fceb02))
|
|
92
|
+
- add meta & link variations ([42fb113](https://github.com/thi-ng/umbrella/commit/42fb113))
|
|
65
93
|
|
|
66
|
-
|
|
94
|
+
#### ♻️ Refactoring
|
|
67
95
|
|
|
68
|
-
-
|
|
69
|
-
- **hiccup-html:** add more elems (tables) ([f0616e6](https://github.com/thi-ng/umbrella/commit/f0616e626e187725b31716d6fec7f420288d071e))
|
|
70
|
-
- **hiccup-html:** add new elems, add/update types ([9023724](https://github.com/thi-ng/umbrella/commit/9023724d536a013a896934f9b5db443787be31ce))
|
|
71
|
-
- **hiccup-html:** add RDFa attrib support, update types ([0737a16](https://github.com/thi-ng/umbrella/commit/0737a169668184750e7fe0d09be5d51c61a47e17))
|
|
72
|
-
- **hiccup-html:** add textArea() ([3fceb02](https://github.com/thi-ng/umbrella/commit/3fceb02136de6d8b532c23659cad3f800b159534))
|
|
96
|
+
- update rdom refs/links etc. ([7dfbedb](https://github.com/thi-ng/umbrella/commit/7dfbedb))
|
|
73
97
|
|
|
74
|
-
###
|
|
98
|
+
### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.1.1) (2020-06-28)
|
|
75
99
|
|
|
76
|
-
|
|
100
|
+
#### 🩹 Bug fixes
|
|
77
101
|
|
|
78
|
-
|
|
102
|
+
- update attrib types ([7af448f](https://github.com/thi-ng/umbrella/commit/7af448f))
|
|
103
|
+
- allow strings for event attribs
|
|
104
|
+
- allow number | string | boolean for data attribs
|
|
79
105
|
|
|
80
|
-
|
|
106
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.1.0) (2020-06-24)
|
|
81
107
|
|
|
82
|
-
|
|
108
|
+
#### 🚀 Features
|
|
83
109
|
|
|
84
|
-
|
|
110
|
+
- add more elements, update readme ([5e3f8f1](https://github.com/thi-ng/umbrella/commit/5e3f8f1))
|
|
111
|
+
- add more elements & helpers ([68a9bb8](https://github.com/thi-ng/umbrella/commit/68a9bb8))
|
|
112
|
+
- re-add support for emmet style tags ([bb06dab](https://github.com/thi-ng/umbrella/commit/bb06dab))
|
|
113
|
+
- add AttribVal & EventAttribVal ([469e297](https://github.com/thi-ng/umbrella/commit/469e297))
|
|
114
|
+
- import as new pkg ([5fffd6f](https://github.com/thi-ng/umbrella/commit/5fffd6f))
|
|
85
115
|
|
|
86
|
-
|
|
116
|
+
#### ♻️ Refactoring
|
|
87
117
|
|
|
88
|
-
-
|
|
89
|
-
- **hiccup-html:** add more elements & helpers ([68a9bb8](https://github.com/thi-ng/umbrella/commit/68a9bb89f901612e69e0c4ae972a8de2c7ac76b6))
|
|
90
|
-
- **hiccup-html:** add more elements, update readme ([5e3f8f1](https://github.com/thi-ng/umbrella/commit/5e3f8f1f70fd06aab5ab64683546d5febe16a0f4))
|
|
91
|
-
- **hiccup-html:** import as new pkg ([5fffd6f](https://github.com/thi-ng/umbrella/commit/5fffd6fd641da4fad73802fb105a700620940ab3))
|
|
92
|
-
- **hiccup-html:** re-add support for emmet style tags ([bb06dab](https://github.com/thi-ng/umbrella/commit/bb06dabe0ea2214a1bbef56db1875bbe0ae392bd))
|
|
118
|
+
- update defElement() ([a56a10b](https://github.com/thi-ng/umbrella/commit/a56a10b))
|
package/package.json
CHANGED
|
@@ -1,109 +1,114 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
"name": "@thi.ng/hiccup-html",
|
|
3
|
+
"version": "2.1.3",
|
|
4
|
+
"description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
|
|
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-html#readme",
|
|
14
|
+
"funding": [
|
|
15
|
+
{
|
|
16
|
+
"type": "github",
|
|
17
|
+
"url": "https://github.com/sponsors/postspectacular"
|
|
12
18
|
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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.3"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@microsoft/api-extractor": "^7.19.2",
|
|
41
|
+
"@thi.ng/testament": "^0.2.3",
|
|
42
|
+
"rimraf": "^3.0.2",
|
|
43
|
+
"tools": "^0.0.1",
|
|
44
|
+
"typedoc": "^0.22.10",
|
|
45
|
+
"typescript": "^4.5.3"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [
|
|
48
|
+
"browser",
|
|
49
|
+
"component",
|
|
50
|
+
"dsl",
|
|
51
|
+
"fileformat",
|
|
52
|
+
"hiccup",
|
|
53
|
+
"html",
|
|
54
|
+
"typecheck",
|
|
55
|
+
"typescript",
|
|
56
|
+
"ui",
|
|
57
|
+
"wrapper"
|
|
58
|
+
],
|
|
59
|
+
"publishConfig": {
|
|
60
|
+
"access": "public"
|
|
61
|
+
},
|
|
62
|
+
"engines": {
|
|
63
|
+
"node": ">=12.7"
|
|
64
|
+
},
|
|
65
|
+
"files": [
|
|
66
|
+
"*.js",
|
|
67
|
+
"*.d.ts"
|
|
68
|
+
],
|
|
69
|
+
"exports": {
|
|
70
|
+
".": {
|
|
71
|
+
"import": "./index.js"
|
|
35
72
|
},
|
|
36
|
-
"
|
|
37
|
-
|
|
73
|
+
"./api": {
|
|
74
|
+
"import": "./api.js"
|
|
38
75
|
},
|
|
39
|
-
"
|
|
40
|
-
|
|
76
|
+
"./blocks": {
|
|
77
|
+
"import": "./blocks.js"
|
|
41
78
|
},
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
"component",
|
|
45
|
-
"dsl",
|
|
46
|
-
"fileformat",
|
|
47
|
-
"hiccup",
|
|
48
|
-
"html",
|
|
49
|
-
"typecheck",
|
|
50
|
-
"typescript",
|
|
51
|
-
"ui",
|
|
52
|
-
"wrapper"
|
|
53
|
-
],
|
|
54
|
-
"publishConfig": {
|
|
55
|
-
"access": "public"
|
|
79
|
+
"./def": {
|
|
80
|
+
"import": "./def.js"
|
|
56
81
|
},
|
|
57
|
-
"
|
|
58
|
-
|
|
82
|
+
"./forms": {
|
|
83
|
+
"import": "./forms.js"
|
|
59
84
|
},
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
".": {
|
|
66
|
-
"import": "./index.js"
|
|
67
|
-
},
|
|
68
|
-
"./api": {
|
|
69
|
-
"import": "./api.js"
|
|
70
|
-
},
|
|
71
|
-
"./blocks": {
|
|
72
|
-
"import": "./blocks.js"
|
|
73
|
-
},
|
|
74
|
-
"./def": {
|
|
75
|
-
"import": "./def.js"
|
|
76
|
-
},
|
|
77
|
-
"./forms": {
|
|
78
|
-
"import": "./forms.js"
|
|
79
|
-
},
|
|
80
|
-
"./head": {
|
|
81
|
-
"import": "./head.js"
|
|
82
|
-
},
|
|
83
|
-
"./inline": {
|
|
84
|
-
"import": "./inline.js"
|
|
85
|
-
},
|
|
86
|
-
"./lists": {
|
|
87
|
-
"import": "./lists.js"
|
|
88
|
-
},
|
|
89
|
-
"./media": {
|
|
90
|
-
"import": "./media.js"
|
|
91
|
-
},
|
|
92
|
-
"./sections": {
|
|
93
|
-
"import": "./sections.js"
|
|
94
|
-
},
|
|
95
|
-
"./table": {
|
|
96
|
-
"import": "./table.js"
|
|
97
|
-
}
|
|
85
|
+
"./head": {
|
|
86
|
+
"import": "./head.js"
|
|
87
|
+
},
|
|
88
|
+
"./inline": {
|
|
89
|
+
"import": "./inline.js"
|
|
98
90
|
},
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
"related": [
|
|
102
|
-
"hdom",
|
|
103
|
-
"rdom",
|
|
104
|
-
"hiccup-svg"
|
|
105
|
-
],
|
|
106
|
-
"year": 2020
|
|
91
|
+
"./lists": {
|
|
92
|
+
"import": "./lists.js"
|
|
107
93
|
},
|
|
108
|
-
"
|
|
109
|
-
|
|
94
|
+
"./media": {
|
|
95
|
+
"import": "./media.js"
|
|
96
|
+
},
|
|
97
|
+
"./sections": {
|
|
98
|
+
"import": "./sections.js"
|
|
99
|
+
},
|
|
100
|
+
"./table": {
|
|
101
|
+
"import": "./table.js"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"thi.ng": {
|
|
105
|
+
"parent": "@thi.ng/hiccup",
|
|
106
|
+
"related": [
|
|
107
|
+
"hdom",
|
|
108
|
+
"rdom",
|
|
109
|
+
"hiccup-svg"
|
|
110
|
+
],
|
|
111
|
+
"year": 2020
|
|
112
|
+
},
|
|
113
|
+
"gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
|
|
114
|
+
}
|