@thi.ng/hdom-mock 2.1.61 → 2.1.63

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-23T07:37:37Z
3
+ - **Last updated**: 2023-11-09T10:28:19Z
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,12 @@ 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
+ ### [2.1.62](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-mock@2.1.62) (2023-11-09)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
17
+
12
18
  ### [2.1.6](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom-mock@2.1.6) (2022-04-07)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -53,7 +53,7 @@ For Node.js REPL:
53
53
  const hdomMock = await import("@thi.ng/hdom-mock");
54
54
  ```
55
55
 
56
- Package sizes (brotli'd, pre-treeshake): ESM: 975 bytes
56
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.08 KB
57
57
 
58
58
  ## Dependencies
59
59
 
package/index.js CHANGED
@@ -4,6 +4,21 @@ import { createTree, hydrateTree } from "@thi.ng/hdom/dom";
4
4
  import { normalizeTree } from "@thi.ng/hdom/normalize";
5
5
  export const TEXT = Symbol();
6
6
  export class HDOMNode {
7
+ /**
8
+ * Only real child nodes
9
+ */
10
+ children;
11
+ /**
12
+ * Includes real children AND text nodes
13
+ */
14
+ _children;
15
+ listeners;
16
+ value;
17
+ checked;
18
+ tag;
19
+ attribs;
20
+ style;
21
+ body;
7
22
  constructor(tag, attribs = {}) {
8
23
  this.tag = tag;
9
24
  this.children = [];
@@ -75,6 +90,7 @@ export class HDOMNode {
75
90
  }
76
91
  }
77
92
  export class MockHDOM {
93
+ root;
78
94
  constructor(root) {
79
95
  this.root = root;
80
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom-mock",
3
- "version": "2.1.61",
3
+ "version": "2.1.63",
4
4
  "description": "Mock base implementation for @thi.ng/hdom API",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -28,22 +28,21 @@
28
28
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
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",
31
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
33
32
  "pub": "yarn npm publish --access public",
34
- "test": "testament test"
33
+ "test": "bun test"
35
34
  },
36
35
  "dependencies": {
37
- "@thi.ng/api": "^8.9.6",
38
- "@thi.ng/checks": "^3.4.6",
39
- "@thi.ng/hdom": "^9.3.26"
36
+ "@thi.ng/api": "^8.9.8",
37
+ "@thi.ng/checks": "^3.4.8",
38
+ "@thi.ng/hdom": "^9.3.28"
40
39
  },
41
40
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.38.0",
43
- "@thi.ng/testament": "^0.3.24",
41
+ "@microsoft/api-extractor": "^7.38.2",
42
+ "@thi.ng/testament": "^0.4.1",
44
43
  "rimraf": "^5.0.5",
45
44
  "tools": "^0.0.1",
46
- "typedoc": "^0.25.2",
45
+ "typedoc": "^0.25.3",
47
46
  "typescript": "^5.2.2"
48
47
  },
49
48
  "keywords": [
@@ -70,5 +69,5 @@
70
69
  "status": "alpha",
71
70
  "year": 2018
72
71
  },
73
- "gitHead": "336bd1bf95825b3c318a3ab49c54451c94aaa883\n"
72
+ "gitHead": "669a3151e4302480244fe3e60eff5e732ea5b7a7\n"
74
73
  }