@thi.ng/hiccup-markdown 2.0.9 → 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 +120 -24
  2. package/package.json +94 -89
package/CHANGELOG.md CHANGED
@@ -1,61 +1,157 @@
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.
8
+
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
+
12
+ ## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@2.1.0) (2021-11-17)
13
+
14
+ #### 🚀 Features
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
21
+
22
+ #### ♻️ Refactoring
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.
30
+
31
+ ### [2.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@2.0.1) (2021-10-13)
32
+
33
+ #### ♻️ Refactoring
34
+
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
38
+
39
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@2.0.0) (2021-10-12)
40
+
41
+ #### 🛑 Breaking changes
42
+
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
55
+
56
+ #### ♻️ Refactoring
57
+
58
+ - update defmulti impls ([0188d23](https://github.com/thi-ng/umbrella/commit/0188d23))
59
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
60
+ - largely related to recent updates/restructuring of these packages:
61
+ - api
62
+ - defmulti
63
+ - errors
64
+ - logger
65
+ - update imports (transducers) ([3ddf8f3](https://github.com/thi-ng/umbrella/commit/3ddf8f3))
66
+ - update imports (text-canvas) ([fe5c91e](https://github.com/thi-ng/umbrella/commit/fe5c91e))
67
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
68
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
69
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
70
+
71
+ ## [1.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.3.0) (2021-01-22)
72
+
73
+ #### 🚀 Features
74
+
75
+ - update DEFAULT_TAGS ([8f7f9d4](https://github.com/thi-ng/umbrella/commit/8f7f9d4))
76
+ - emit normalized hiccup (w/ attribs obj)
77
+ - update tests
5
78
 
6
- ## [2.0.9](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@2.0.8...@thi.ng/hiccup-markdown@2.0.9) (2021-11-10)
79
+ ### [1.2.38](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.2.38) (2020-12-07)
7
80
 
8
- **Note:** Version bump only for package @thi.ng/hiccup-markdown
81
+ #### ♻️ Refactoring
9
82
 
83
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
10
84
 
85
+ ## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.2.0) (2020-03-28)
11
86
 
87
+ #### 🚀 Features
12
88
 
89
+ - add table caption support ([4b72b92](https://github.com/thi-ng/umbrella/commit/4b72b92))
90
+ - update `th` serializer to use bold formatting
91
+ - add table serializer & test, update deps ([7cecf24](https://github.com/thi-ng/umbrella/commit/7cecf24))
13
92
 
14
- ## [2.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@2.0.7...@thi.ng/hiccup-markdown@2.0.8) (2021-11-04)
93
+ ### [1.1.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.1.10) (2020-02-25)
15
94
 
16
- **Note:** Version bump only for package @thi.ng/hiccup-markdown
95
+ #### ♻️ Refactoring
17
96
 
97
+ - update imports ([1b511d7](https://github.com/thi-ng/umbrella/commit/1b511d7))
18
98
 
99
+ ### [1.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.1.6) (2019-11-09)
19
100
 
101
+ #### 🩹 Bug fixes
20
102
 
103
+ - [#156](https://github.com/thi-ng/umbrella/issues/156) undo trimming of element children ([ccc9d40](https://github.com/thi-ng/umbrella/commit/ccc9d40))
104
+ - was wrongly introduced in [602510c5150dbf26d43a1c9e7ca8afd7c5230f28](https://github.com/thi-ng/umbrella/commit/602510c5150dbf26d43a1c9e7ca8afd7c5230f28)
105
+ - [#156](https://github.com/thi-ng/umbrella/issues/156) fix blockquote default tag factory args, add test ([12e445a](https://github.com/thi-ng/umbrella/commit/12e445a))
106
+ - [#156](https://github.com/thi-ng/umbrella/issues/156) update parse(), remove CR chars, add initial test ([602510c](https://github.com/thi-ng/umbrella/commit/602510c))
21
107
 
22
- ## [2.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@2.0.6...@thi.ng/hiccup-markdown@2.0.7) (2021-11-03)
108
+ ### [1.1.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.1.4) (2019-08-21)
23
109
 
24
- **Note:** Version bump only for package @thi.ng/hiccup-markdown
110
+ #### ♻️ Refactoring
25
111
 
112
+ - update serializeElement, add SerializeState ([745ea65](https://github.com/thi-ng/umbrella/commit/745ea65))
26
113
 
114
+ ## [1.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.1.0) (2019-07-07)
27
115
 
116
+ #### 🚀 Features
28
117
 
118
+ - enable TS strict compiler flags (refactor) ([36c8109](https://github.com/thi-ng/umbrella/commit/36c8109))
29
119
 
30
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.3.33...@thi.ng/hiccup-markdown@2.0.0) (2021-10-12)
120
+ #### ♻️ Refactoring
31
121
 
122
+ - TS strictNullChecks, add tests ([9e44bfd](https://github.com/thi-ng/umbrella/commit/9e44bfd))
32
123
 
33
- ### Build System
124
+ ### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.0.5) (2019-02-15)
34
125
 
35
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
126
+ #### ♻️ Refactoring
36
127
 
128
+ - update to use [@thi.ng/arrays](https://github.com/thi-ng/umbrella/tree/main/packages/arrays) ([3a74bf1](https://github.com/thi-ng/umbrella/commit/3a74bf1))
129
+ - update fsm until() usage ([e8cd242](https://github.com/thi-ng/umbrella/commit/e8cd242))
37
130
 
38
- ### BREAKING CHANGES
131
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@1.0.0) (2019-01-21)
39
132
 
40
- * discontinue CommonJS & UMD versions
133
+ #### 🛑 Breaking changes
41
134
 
42
- - only ESM modules will be published from now on
43
- - CJS obsolete due to ESM support in recent versions of node:
44
- - i.e. launch NodeJS via:
45
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
46
- - in the node REPL use `await import(...)` instead of `require()`
47
- - UMD obsolete due to widespread browser support for ESM
135
+ - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
136
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
137
+ - build scripts now first build ES6 modules in package root, then call
138
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
139
+ - all imports MUST be updated to only refer to package level
140
+ (not individual files anymore). tree shaking in user land will get rid of
141
+ all unused imported symbols.
48
142
 
49
- Also:
50
- - normalize/restructure/reorg all package.json files
51
- - cleanup all build scripts, remove obsolete
52
- - switch from mocha to @thi.ng/testament for all tests
143
+ #### 🩹 Bug fixes
53
144
 
145
+ - re-export TagFactories interface ([b198c19](https://github.com/thi-ng/umbrella/commit/b198c19))
54
146
 
147
+ ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@0.2.0) (2019-01-04)
55
148
 
149
+ #### 🚀 Features
56
150
 
151
+ - add & refactor markdown parser (from example), update docs ([35db07f](https://github.com/thi-ng/umbrella/commit/35db07f))
57
152
 
153
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-markdown@0.1.0) (2018-12-20)
58
154
 
59
- # [1.3.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hiccup-markdown@1.2.44...@thi.ng/hiccup-markdown@1.3.0) (2021-01-22)
155
+ #### 🚀 Features
60
156
 
61
- ### Features
157
+ - add new package ([58f591e](https://github.com/thi-ng/umbrella/commit/58f591e))
package/package.json CHANGED
@@ -1,94 +1,99 @@
1
1
  {
2
- "name": "@thi.ng/hiccup-markdown",
3
- "version": "2.0.9",
4
- "description": "Markdown parser & serializer from/to Hiccup format",
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-markdown",
3
+ "version": "2.1.3",
4
+ "description": "Markdown parser & serializer from/to Hiccup format",
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-markdown#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-markdown#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/arrays": "^2.1.2",
39
+ "@thi.ng/checks": "^3.1.2",
40
+ "@thi.ng/defmulti": "^2.1.2",
41
+ "@thi.ng/errors": "^2.1.2",
42
+ "@thi.ng/fsm": "^3.1.2",
43
+ "@thi.ng/hiccup": "^4.2.2",
44
+ "@thi.ng/strings": "^3.2.2",
45
+ "@thi.ng/text-canvas": "^2.2.3",
46
+ "@thi.ng/transducers": "^8.1.2"
47
+ },
48
+ "devDependencies": {
49
+ "@microsoft/api-extractor": "^7.18.19",
50
+ "@thi.ng/testament": "^0.2.2",
51
+ "rimraf": "^3.0.2",
52
+ "tools": "^0.0.1",
53
+ "typedoc": "^0.22.9",
54
+ "typescript": "^4.5.2"
55
+ },
56
+ "keywords": [
57
+ "ast",
58
+ "conversion",
59
+ "dom",
60
+ "export",
61
+ "fileformat",
62
+ "hiccup",
63
+ "markdown",
64
+ "parser",
65
+ "transducer",
66
+ "tree",
67
+ "typescript"
68
+ ],
69
+ "publishConfig": {
70
+ "access": "public"
71
+ },
72
+ "engines": {
73
+ "node": ">=12.7"
74
+ },
75
+ "files": [
76
+ "*.js",
77
+ "*.d.ts"
78
+ ],
79
+ "exports": {
80
+ ".": {
81
+ "import": "./index.js"
35
82
  },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.2.0",
38
- "@thi.ng/arrays": "^2.0.8",
39
- "@thi.ng/checks": "^3.0.7",
40
- "@thi.ng/defmulti": "^2.0.8",
41
- "@thi.ng/errors": "^2.0.6",
42
- "@thi.ng/fsm": "^3.0.8",
43
- "@thi.ng/hiccup": "^4.1.4",
44
- "@thi.ng/strings": "^3.1.4",
45
- "@thi.ng/text-canvas": "^2.1.2",
46
- "@thi.ng/transducers": "^8.0.8"
83
+ "./api": {
84
+ "import": "./api.js"
47
85
  },
48
- "devDependencies": {
49
- "@thi.ng/testament": "^0.1.6"
86
+ "./parse": {
87
+ "import": "./parse.js"
50
88
  },
51
- "keywords": [
52
- "ast",
53
- "conversion",
54
- "dom",
55
- "export",
56
- "fileformat",
57
- "hiccup",
58
- "markdown",
59
- "parser",
60
- "transducer",
61
- "tree",
62
- "typescript"
63
- ],
64
- "publishConfig": {
65
- "access": "public"
66
- },
67
- "engines": {
68
- "node": ">=12.7"
69
- },
70
- "files": [
71
- "*.js",
72
- "*.d.ts"
73
- ],
74
- "exports": {
75
- ".": {
76
- "import": "./index.js"
77
- },
78
- "./api": {
79
- "import": "./api.js"
80
- },
81
- "./parse": {
82
- "import": "./parse.js"
83
- },
84
- "./serialize": {
85
- "import": "./serialize.js"
86
- }
87
- },
88
- "thi.ng": {
89
- "parent": "@thi.ng/hiccup",
90
- "status": "alpha",
91
- "year": 2018
92
- },
93
- "gitHead": "5fe52419af63984ebe53032201b2a6174b9cb159"
94
- }
89
+ "./serialize": {
90
+ "import": "./serialize.js"
91
+ }
92
+ },
93
+ "thi.ng": {
94
+ "parent": "@thi.ng/hiccup",
95
+ "status": "alpha",
96
+ "year": 2018
97
+ },
98
+ "gitHead": "d777b58d7bec4496d38166cdabda4ffb78b0dc47\n"
99
+ }