@thi.ng/hiccup-html 2.5.2 → 2.6.1

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**: 2024-04-11T12:32:44Z
3
+ - **Last updated**: 2024-04-23T07:02:18Z
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,16 @@ 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.6.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.6.0) (2024-04-20)
13
+
14
+ #### 🚀 Features
15
+
16
+ - update AttribVal type, allow async iterables ([10eb854](https://github.com/thi-ng/umbrella/commit/10eb854))
17
+
18
+ #### ♻️ Refactoring
19
+
20
+ - update type usage ([ac691f8](https://github.com/thi-ng/umbrella/commit/ac691f8))
21
+
12
22
  ## [2.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hiccup-html@2.5.0) (2024-03-27)
13
23
 
14
24
  #### 🚀 Features
package/README.md CHANGED
@@ -191,10 +191,10 @@ import * as html from "@thi.ng/hiccup-html";
191
191
  Browser ESM import:
192
192
 
193
193
  ```html
194
- <script type="module" src="https://cdn.skypack.dev/@thi.ng/hiccup-html"></script>
194
+ <script type="module" src="https://esm.run/@thi.ng/hiccup-html"></script>
195
195
  ```
196
196
 
197
- [Skypack documentation](https://docs.skypack.dev/)
197
+ [JSDelivr documentation](https://www.jsdelivr.com/)
198
198
 
199
199
  Package sizes (brotli'd, pre-treeshake): ESM: 1.51 KB
200
200
 
package/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { Fn, IObjectOf, MaybeDeref, NumOrString } from "@thi.ng/api";
1
+ import type { Fn, IObjectOf, Maybe, MaybeDeref, NumOrString } from "@thi.ng/api";
2
2
  export type CDataContent = ["!CDATA", ...string[]];
3
- export type AttribVal<T> = MaybeDeref<T | undefined>;
3
+ export type AttribVal<T> = MaybeDeref<Maybe<T>> | AsyncIterable<Maybe<T>>;
4
4
  export type BooleanAttrib = AttribVal<boolean>;
5
5
  export type NumericAttrib = AttribVal<number>;
6
6
  export type StringAttrib = AttribVal<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-html",
3
- "version": "2.5.2",
3
+ "version": "2.6.1",
4
4
  "description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -27,7 +27,7 @@
27
27
  "build": "yarn build:esbuild && yarn build:decl",
28
28
  "build:decl": "tsc --declaration --emitDeclarationOnly",
29
29
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
30
- "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
30
+ "clean": "bun ../../tools/src/clean-package.ts",
31
31
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
32
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
33
33
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
@@ -36,12 +36,11 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.10.1"
39
+ "@thi.ng/api": "^8.11.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.43.0",
43
43
  "esbuild": "^0.20.2",
44
- "rimraf": "^5.0.5",
45
44
  "typedoc": "^0.25.12",
46
45
  "typescript": "^5.4.3"
47
46
  },
@@ -112,5 +111,5 @@
112
111
  ],
113
112
  "year": 2020
114
113
  },
115
- "gitHead": "18a0c063a7b33d790e5bc2486c106f45f663ac28\n"
114
+ "gitHead": "5dd66c18a3862a3af69a5b2f49563f7cbdd960c2\n"
116
115
  }