@thi.ng/hiccup-html 2.0.7 → 2.1.2

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 +79 -45
  2. package/README.md +1 -1
  3. package/package.json +105 -100
package/CHANGELOG.md CHANGED
@@ -1,84 +1,118 @@
1
1
  # Change Log
2
2
 
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@2.0.6...@thi.ng/hiccup-html@2.0.7) (2021-11-03)
6
+ All notable changes to this project will be documented in this file.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
7
8
 
8
- **Note:** Version bump only for package @thi.ng/hiccup-html
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
9
11
 
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.1.0) (2021-11-17)
10
13
 
14
+ #### 🚀 Features
11
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
12
21
 
22
+ #### ♻️ Refactoring
13
23
 
14
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.1.1...@thi.ng/hiccup-html@2.0.0) (2021-10-12)
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.
15
30
 
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.0.1) (2021-10-13)
16
32
 
17
- ### Build System
33
+ #### ♻️ Refactoring
18
34
 
19
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
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
20
38
 
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.0.0) (2021-10-12)
21
40
 
22
- ### BREAKING CHANGES
41
+ #### 🛑 Breaking changes
23
42
 
24
- * discontinue CommonJS & UMD versions
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
25
55
 
26
- - only ESM modules will be published from now on
27
- - CJS obsolete due to ESM support in recent versions of node:
28
- - i.e. launch NodeJS via:
29
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
- - in the node REPL use `await import(...)` instead of `require()`
31
- - UMD obsolete due to widespread browser support for ESM
56
+ #### ♻️ Refactoring
32
57
 
33
- Also:
34
- - normalize/restructure/reorg all package.json files
35
- - cleanup all build scripts, remove obsolete
36
- - 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)
37
60
 
61
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@1.1.0) (2021-08-17)
38
62
 
63
+ #### 🚀 Features
39
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
40
69
 
70
+ ### [0.3.9](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.3.9) (2020-12-07)
41
71
 
72
+ #### ♻️ Refactoring
42
73
 
43
- # [1.1.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@1.0.3...@thi.ng/hiccup-html@1.1.0) (2021-08-17)
74
+ - update type-only imports in remaining pkgs ([b22aa30](https://github.com/thi-ng/umbrella/commit/b22aa30))
44
75
 
45
- ### Features
76
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.3.0) (2020-07-09)
46
77
 
47
- - **hiccup-html:** update style/script element defs ([a1f9ac8](https://github.com/thi-ng/umbrella/commit/a1f9ac8b2f56376747af53a2f8e9911ed3704c27))
78
+ #### 🚀 Features
48
79
 
49
- # [0.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.2.0...@thi.ng/hiccup-html@0.3.0) (2020-07-09)
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
50
83
 
51
- ### Features
84
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.2.0) (2020-07-02)
52
85
 
53
- - **hiccup-html:** add 360+ CSS property names ([d06a4ae](https://github.com/thi-ng/umbrella/commit/d06a4ae0fa916d168bf54e0f003677bf726e8513))
54
- - **hiccup-html:** add CSS props for SVG elements ([efe61b8](https://github.com/thi-ng/umbrella/commit/efe61b8d0ddfd7f54b2689a792a092122ffe830a))
86
+ #### 🚀 Features
55
87
 
56
- # [0.2.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.1.1...@thi.ng/hiccup-html@0.2.0) (2020-07-02)
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))
57
93
 
58
- ### Features
94
+ #### ♻️ Refactoring
59
95
 
60
- - **hiccup-html:** add meta & link variations ([42fb113](https://github.com/thi-ng/umbrella/commit/42fb113141e400b64822daefa746ab236e57965a))
61
- - **hiccup-html:** add more elems (tables) ([f0616e6](https://github.com/thi-ng/umbrella/commit/f0616e626e187725b31716d6fec7f420288d071e))
62
- - **hiccup-html:** add new elems, add/update types ([9023724](https://github.com/thi-ng/umbrella/commit/9023724d536a013a896934f9b5db443787be31ce))
63
- - **hiccup-html:** add RDFa attrib support, update types ([0737a16](https://github.com/thi-ng/umbrella/commit/0737a169668184750e7fe0d09be5d51c61a47e17))
64
- - **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))
65
97
 
66
- ### Reverts
98
+ ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.1.1) (2020-06-28)
67
99
 
68
- - **hiccup-html:** undo accidental anchor rename ([64cc52c](https://github.com/thi-ng/umbrella/commit/64cc52c34ae689396f0729918455d78603ce890c))
100
+ #### 🩹 Bug fixes
69
101
 
70
- ## [0.1.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-html@0.1.0...@thi.ng/hiccup-html@0.1.1) (2020-06-28)
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
71
105
 
72
- ### Bug Fixes
106
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.1.0) (2020-06-24)
73
107
 
74
- - **hiccup-html:** update attrib types ([7af448f](https://github.com/thi-ng/umbrella/commit/7af448f59ac0210060a508a75be27f8667c7d118))
108
+ #### 🚀 Features
75
109
 
76
- # 0.1.0 (2020-06-24)
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))
77
115
 
78
- ### Features
116
+ #### ♻️ Refactoring
79
117
 
80
- - **hiccup-html:** add AttribVal & EventAttribVal ([469e297](https://github.com/thi-ng/umbrella/commit/469e29758d3801d8c5e56695246c438f4a6c9569))
81
- - **hiccup-html:** add more elements & helpers ([68a9bb8](https://github.com/thi-ng/umbrella/commit/68a9bb89f901612e69e0c4ae972a8de2c7ac76b6))
82
- - **hiccup-html:** add more elements, update readme ([5e3f8f1](https://github.com/thi-ng/umbrella/commit/5e3f8f1f70fd06aab5ab64683546d5febe16a0f4))
83
- - **hiccup-html:** import as new pkg ([5fffd6f](https://github.com/thi-ng/umbrella/commit/5fffd6fd641da4fad73802fb105a700620940ab3))
84
- - **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/README.md CHANGED
@@ -189,7 +189,7 @@ node --experimental-repl-await
189
189
  > const hiccupHtml = await import("@thi.ng/hiccup-html");
190
190
  ```
191
191
 
192
- Package sizes (gzipped, pre-treeshake): ESM: 1.47 KB
192
+ Package sizes (gzipped, pre-treeshake): ESM: 1.68 KB
193
193
 
194
194
  ## Dependencies
195
195
 
package/package.json CHANGED
@@ -1,109 +1,114 @@
1
1
  {
2
- "name": "@thi.ng/hiccup-html",
3
- "version": "2.0.7",
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"
2
+ "name": "@thi.ng/hiccup-html",
3
+ "version": "2.1.2",
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
- "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"
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
+ },
39
+ "devDependencies": {
40
+ "@microsoft/api-extractor": "^7.18.19",
41
+ "@thi.ng/testament": "^0.2.2",
42
+ "rimraf": "^3.0.2",
43
+ "tools": "^0.0.1",
44
+ "typedoc": "^0.22.9",
45
+ "typescript": "^4.5.2"
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
- "dependencies": {
37
- "@thi.ng/api": "^8.1.0"
73
+ "./api": {
74
+ "import": "./api.js"
38
75
  },
39
- "devDependencies": {
40
- "@thi.ng/testament": "^0.1.6"
76
+ "./blocks": {
77
+ "import": "./blocks.js"
41
78
  },
42
- "keywords": [
43
- "browser",
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
- "engines": {
58
- "node": ">=12.7"
82
+ "./forms": {
83
+ "import": "./forms.js"
59
84
  },
60
- "files": [
61
- "*.js",
62
- "*.d.ts"
63
- ],
64
- "exports": {
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
- "thi.ng": {
100
- "parent": "@thi.ng/hiccup",
101
- "related": [
102
- "hdom",
103
- "rdom",
104
- "hiccup-svg"
105
- ],
106
- "year": 2020
91
+ "./lists": {
92
+ "import": "./lists.js"
107
93
  },
108
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
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": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
114
+ }