@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.
Files changed (2) hide show
  1. package/CHANGELOG.md +79 -53
  2. package/package.json +105 -100
package/CHANGELOG.md CHANGED
@@ -1,92 +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.
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
- ## [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)
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
- # [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.
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
- ### Build System
33
+ #### ♻️ Refactoring
26
34
 
27
- * 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
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
- ### BREAKING CHANGES
41
+ #### 🛑 Breaking changes
31
42
 
32
- * 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
33
55
 
34
- - only ESM modules will be published from now on
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
- Also:
42
- - normalize/restructure/reorg all package.json files
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
- # [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))
52
75
 
53
- ### Features
76
+ ## [0.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.3.0) (2020-07-09)
54
77
 
55
- - **hiccup-html:** update style/script element defs ([a1f9ac8](https://github.com/thi-ng/umbrella/commit/a1f9ac8b2f56376747af53a2f8e9911ed3704c27))
78
+ #### 🚀 Features
56
79
 
57
- # [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
58
83
 
59
- ### Features
84
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.2.0) (2020-07-02)
60
85
 
61
- - **hiccup-html:** add 360+ CSS property names ([d06a4ae](https://github.com/thi-ng/umbrella/commit/d06a4ae0fa916d168bf54e0f003677bf726e8513))
62
- - **hiccup-html:** add CSS props for SVG elements ([efe61b8](https://github.com/thi-ng/umbrella/commit/efe61b8d0ddfd7f54b2689a792a092122ffe830a))
86
+ #### 🚀 Features
63
87
 
64
- # [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))
65
93
 
66
- ### Features
94
+ #### ♻️ Refactoring
67
95
 
68
- - **hiccup-html:** add meta & link variations ([42fb113](https://github.com/thi-ng/umbrella/commit/42fb113141e400b64822daefa746ab236e57965a))
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
- ### Reverts
98
+ ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.1.1) (2020-06-28)
75
99
 
76
- - **hiccup-html:** undo accidental anchor rename ([64cc52c](https://github.com/thi-ng/umbrella/commit/64cc52c34ae689396f0729918455d78603ce890c))
100
+ #### 🩹 Bug fixes
77
101
 
78
- ## [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
79
105
 
80
- ### Bug Fixes
106
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@0.1.0) (2020-06-24)
81
107
 
82
- - **hiccup-html:** update attrib types ([7af448f](https://github.com/thi-ng/umbrella/commit/7af448f59ac0210060a508a75be27f8667c7d118))
108
+ #### 🚀 Features
83
109
 
84
- # 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))
85
115
 
86
- ### Features
116
+ #### ♻️ Refactoring
87
117
 
88
- - **hiccup-html:** add AttribVal & EventAttribVal ([469e297](https://github.com/thi-ng/umbrella/commit/469e29758d3801d8c5e56695246c438f4a6c9569))
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
- "name": "@thi.ng/hiccup-html",
3
- "version": "2.0.8",
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.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
- "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.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
- "dependencies": {
37
- "@thi.ng/api": "^8.2.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": "5fe52419af63984ebe53032201b2a6174b9cb159"
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
+ }