@thi.ng/hdom 9.0.0 → 9.0.6

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
@@ -3,6 +3,54 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [9.0.6](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@9.0.5...@thi.ng/hdom@9.0.6) (2021-10-28)
7
+
8
+ **Note:** Version bump only for package @thi.ng/hdom
9
+
10
+
11
+
12
+
13
+
14
+ ## [9.0.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@9.0.4...@thi.ng/hdom@9.0.5) (2021-10-28)
15
+
16
+ **Note:** Version bump only for package @thi.ng/hdom
17
+
18
+
19
+
20
+
21
+
22
+ ## [9.0.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@9.0.3...@thi.ng/hdom@9.0.4) (2021-10-25)
23
+
24
+ **Note:** Version bump only for package @thi.ng/hdom
25
+
26
+
27
+
28
+
29
+
30
+ ## [9.0.3](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@9.0.2...@thi.ng/hdom@9.0.3) (2021-10-15)
31
+
32
+ **Note:** Version bump only for package @thi.ng/hdom
33
+
34
+
35
+
36
+
37
+
38
+ ## [9.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@9.0.1...@thi.ng/hdom@9.0.2) (2021-10-15)
39
+
40
+ **Note:** Version bump only for package @thi.ng/hdom
41
+
42
+
43
+
44
+
45
+
46
+ ## [9.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@9.0.0...@thi.ng/hdom@9.0.1) (2021-10-13)
47
+
48
+ **Note:** Version bump only for package @thi.ng/hdom
49
+
50
+
51
+
52
+
53
+
6
54
  # [9.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@8.2.32...@thi.ng/hdom@9.0.0) (2021-10-12)
7
55
 
8
56
 
package/README.md CHANGED
@@ -127,10 +127,11 @@ ES module import:
127
127
 
128
128
  [Skypack documentation](https://docs.skypack.dev/)
129
129
 
130
- For NodeJS (v14.6+):
130
+ For Node.js REPL:
131
131
 
132
132
  ```text
133
- node --experimental-specifier-resolution=node --experimental-repl-await
133
+ # with flag only for < v16
134
+ node --experimental-repl-await
134
135
 
135
136
  > const hdom = await import("@thi.ng/hdom");
136
137
  ```
@@ -961,7 +962,7 @@ The following functions are the core parts of the `HDOMImplementation`
961
962
  interface, the abstraction layer used by hdom to support different
962
963
  targets.
963
964
 
964
- - [interface definition](https://github.com/thi-ng/umbrella/blob/develop/packages/hdom/src/api.ts#L127)
965
+ - [interface definition](https://docs.thi.ng/umbrella/hdom/interfaces/HDOMImplementation.html)
965
966
  - [default implementation](https://github.com/thi-ng/umbrella/blob/develop/packages/hdom/src/default.ts)
966
967
 
967
968
  ### normalizeTree()
package/default.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HDOMImplementation } from "./api";
1
+ import type { HDOMImplementation } from "./api.js";
2
2
  /**
3
3
  * Default target implementation to manipulate browser DOM.
4
4
  */
package/default.js CHANGED
@@ -1,6 +1,6 @@
1
- import { diffTree } from "./diff";
2
- import { createElement, createTextElement, createTree, getChild, hydrateTree, removeAttribs, removeChild, replaceChild, setAttrib, setContent, } from "./dom";
3
- import { normalizeTree } from "./normalize";
1
+ import { diffTree } from "./diff.js";
2
+ import { createElement, createTextElement, createTree, getChild, hydrateTree, removeAttribs, removeChild, replaceChild, setAttrib, setContent, } from "./dom.js";
3
+ import { normalizeTree } from "./normalize.js";
4
4
  /**
5
5
  * Default target implementation to manipulate browser DOM.
6
6
  */
package/diff.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HDOMImplementation, HDOMOpts } from "./api";
1
+ import type { HDOMImplementation, HDOMOpts } from "./api.js";
2
2
  /**
3
3
  * See {@link HDOMImplementation} interface for further details.
4
4
  *
package/dom.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HDOMImplementation, HDOMOpts } from "./api";
1
+ import type { HDOMImplementation, HDOMOpts } from "./api.js";
2
2
  /**
3
3
  * See {@link HDOMImplementation} interface for further details.
4
4
  *
package/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./api";
2
- export * from "./default";
3
- export * from "./diff";
4
- export * from "./dom";
5
- export * from "./logger";
6
- export * from "./normalize";
7
- export * from "./render-once";
8
- export * from "./resolve";
9
- export * from "./start";
1
+ export * from "./api.js";
2
+ export * from "./default.js";
3
+ export * from "./diff.js";
4
+ export * from "./dom.js";
5
+ export * from "./logger.js";
6
+ export * from "./normalize.js";
7
+ export * from "./render-once.js";
8
+ export * from "./resolve.js";
9
+ export * from "./start.js";
10
10
  //# sourceMappingURL=index.d.ts.map
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
- export * from "./api";
2
- export * from "./default";
3
- export * from "./diff";
4
- export * from "./dom";
5
- export * from "./logger";
6
- export * from "./normalize";
7
- export * from "./render-once";
8
- export * from "./resolve";
9
- export * from "./start";
1
+ export * from "./api.js";
2
+ export * from "./default.js";
3
+ export * from "./diff.js";
4
+ export * from "./dom.js";
5
+ export * from "./logger.js";
6
+ export * from "./normalize.js";
7
+ export * from "./render-once.js";
8
+ export * from "./resolve.js";
9
+ export * from "./start.js";
package/normalize.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HDOMOpts } from "./api";
1
+ import type { HDOMOpts } from "./api.js";
2
2
  /**
3
3
  * Expands single hiccup element/component into its canonical form:
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hdom",
3
- "version": "9.0.0",
3
+ "version": "9.0.6",
4
4
  "description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,18 +34,18 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.0.0",
38
- "@thi.ng/checks": "^3.0.0",
39
- "@thi.ng/diff": "^5.0.0",
40
- "@thi.ng/equiv": "^2.0.0",
41
- "@thi.ng/errors": "^2.0.0",
42
- "@thi.ng/hiccup": "^4.0.0",
43
- "@thi.ng/logger": "^0.1.0",
44
- "@thi.ng/prefixes": "^2.0.0"
37
+ "@thi.ng/api": "^8.0.6",
38
+ "@thi.ng/checks": "^3.0.6",
39
+ "@thi.ng/diff": "^5.0.6",
40
+ "@thi.ng/equiv": "^2.0.6",
41
+ "@thi.ng/errors": "^2.0.6",
42
+ "@thi.ng/hiccup": "^4.1.2",
43
+ "@thi.ng/logger": "^1.0.6",
44
+ "@thi.ng/prefixes": "^2.0.6"
45
45
  },
46
46
  "devDependencies": {
47
- "@thi.ng/atom": "^5.0.0",
48
- "@thi.ng/testament": "^0.1.0"
47
+ "@thi.ng/atom": "^5.0.6",
48
+ "@thi.ng/testament": "^0.1.6"
49
49
  },
50
50
  "keywords": [
51
51
  "array",
@@ -67,6 +67,9 @@
67
67
  "publishConfig": {
68
68
  "access": "public"
69
69
  },
70
+ "engines": {
71
+ "node": ">=12.7"
72
+ },
70
73
  "files": [
71
74
  "*.js",
72
75
  "*.d.ts"
@@ -116,5 +119,5 @@
116
119
  ],
117
120
  "year": 2015
118
121
  },
119
- "gitHead": "9ac1344b38b565eb894306fbf72233b6c0b2d115"
122
+ "gitHead": "c17a556ad25f6882dfa8f806a1d9e8ed7ac7cd71"
120
123
  }
package/render-once.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HDOMImplementation, HDOMOpts } from "./api";
1
+ import type { HDOMImplementation, HDOMOpts } from "./api.js";
2
2
  /**
3
3
  * One-off hdom tree conversion & target DOM application. Takes same
4
4
  * options as {@link start}, but performs no diffing and only creates or
package/render-once.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { derefContext } from "@thi.ng/hiccup/deref";
2
- import { DEFAULT_IMPL } from "./default";
3
- import { resolveRoot } from "./resolve";
2
+ import { DEFAULT_IMPL } from "./default.js";
3
+ import { resolveRoot } from "./resolve.js";
4
4
  /**
5
5
  * One-off hdom tree conversion & target DOM application. Takes same
6
6
  * options as {@link start}, but performs no diffing and only creates or
package/resolve.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { HDOMImplementation } from "./api";
1
+ import type { HDOMImplementation } from "./api.js";
2
2
  export declare const resolveRoot: (root: any, impl: HDOMImplementation<any>) => any;
3
3
  //# sourceMappingURL=resolve.d.ts.map
package/start.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { HDOMImplementation, HDOMOpts } from "./api";
1
+ import type { HDOMImplementation, HDOMOpts } from "./api.js";
2
2
  /**
3
3
  * Takes an hiccup tree (array, function or component object w/ life
4
4
  * cycle methods) and an optional object of DOM update options. Starts
package/start.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { derefContext } from "@thi.ng/hiccup/deref";
2
- import { DEFAULT_IMPL } from "./default";
3
- import { resolveRoot } from "./resolve";
2
+ import { DEFAULT_IMPL } from "./default.js";
3
+ import { resolveRoot } from "./resolve.js";
4
4
  /**
5
5
  * Takes an hiccup tree (array, function or component object w/ life
6
6
  * cycle methods) and an optional object of DOM update options. Starts