@thi.ng/hiccup 4.2.47 → 4.3.0

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 (4) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/api.d.ts +14 -0
  3. package/api.js +11 -0
  4. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-08-22T14:39:27Z
3
+ - **Last updated**: 2023-08-27T11:20:58Z
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.
@@ -9,6 +9,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ## [4.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.3.0) (2023-08-27)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add XML_PROC & DOCTYPE_HTML constants ([4ec98fd](https://github.com/thi-ng/umbrella/commit/4ec98fd))
17
+ - update tests
18
+
12
19
  ## [4.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup@4.2.0) (2021-11-17)
13
20
 
14
21
  #### 🚀 Features
package/api.d.ts CHANGED
@@ -8,6 +8,20 @@ export declare const RE_TAG: RegExp;
8
8
  export declare const COMMENT = "__COMMENT__";
9
9
  /** @internal */
10
10
  export declare const CDATA = "!CDATA";
11
+ /**
12
+ * XML processing instruction in hiccup format.
13
+ *
14
+ * @remarks
15
+ * Translates to `<?xml version="1.0" encoding="UTF-8"?>`
16
+ */
17
+ export declare const XML_PROC: (string | {
18
+ version: string;
19
+ encoding: string;
20
+ })[];
21
+ /**
22
+ * `<!DOCTYPE html>` in hiccup format
23
+ */
24
+ export declare const DOCTYPE_HTML: string[];
11
25
  /** @internal */
12
26
  export declare const NO_SPANS: {
13
27
  [id: string]: number;
package/api.js CHANGED
@@ -12,6 +12,17 @@ export const RE_TAG = /^([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?$/;
12
12
  export const COMMENT = "__COMMENT__";
13
13
  /** @internal */
14
14
  export const CDATA = "!CDATA";
15
+ /**
16
+ * XML processing instruction in hiccup format.
17
+ *
18
+ * @remarks
19
+ * Translates to `<?xml version="1.0" encoding="UTF-8"?>`
20
+ */
21
+ export const XML_PROC = ["?xml", { version: "1.0", encoding: "UTF-8" }];
22
+ /**
23
+ * `<!DOCTYPE html>` in hiccup format
24
+ */
25
+ export const DOCTYPE_HTML = ["!DOCTYPE", "html"];
15
26
  /** @internal */
16
27
  export const NO_SPANS = {
17
28
  button: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup",
3
- "version": "4.2.47",
3
+ "version": "4.3.0",
4
4
  "description": "HTML/SVG/XML serialization of nested data structures, iterables & closures",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,19 +34,19 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.9.4",
38
- "@thi.ng/checks": "^3.4.4",
39
- "@thi.ng/errors": "^2.3.4",
40
- "@thi.ng/strings": "^3.4.12"
37
+ "@thi.ng/api": "^8.9.5",
38
+ "@thi.ng/checks": "^3.4.5",
39
+ "@thi.ng/errors": "^2.3.5",
40
+ "@thi.ng/strings": "^3.4.13"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.36.4",
44
- "@thi.ng/atom": "^5.2.8",
45
- "@thi.ng/testament": "^0.3.22",
44
+ "@thi.ng/atom": "^5.2.9",
45
+ "@thi.ng/testament": "^0.3.23",
46
46
  "rimraf": "^5.0.1",
47
47
  "tools": "^0.0.1",
48
- "typedoc": "^0.24.8",
49
- "typescript": "^5.1.6"
48
+ "typedoc": "^0.25.0",
49
+ "typescript": "^5.2.2"
50
50
  },
51
51
  "keywords": [
52
52
  "array",
@@ -127,5 +127,5 @@
127
127
  ],
128
128
  "year": 2016
129
129
  },
130
- "gitHead": "74cfe3fb8de5bfcbfc1109e67604541cbd7b77aa\n"
130
+ "gitHead": "5929dd20497668496af13415cdf784a4d6f69aa3\n"
131
131
  }