@thi.ng/hiccup-html 2.4.11 → 2.4.13

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-03-01T15:22:50Z
3
+ - **Last updated**: 2024-03-07T20:40:47Z
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.
package/README.md CHANGED
@@ -342,6 +342,8 @@ will be appended to the tag name and merely acts as syntax sugar for
342
342
  providing an element ID and/or CSS classes.
343
343
 
344
344
  ```ts
345
+ import { defElement } from "@thi.ng/hiccup-html";
346
+
345
347
  const el = defElement<any>("a");
346
348
  ```
347
349
 
@@ -358,6 +360,8 @@ const el = defElement<any>("a");
358
360
  | `el("#id.foo", null, "body")` | `["a#id.foo", null, "body"]` |
359
361
 
360
362
  ```ts
363
+ import { defElement } from "@thi.ng/hiccup-html";
364
+
361
365
  // with default attribs
362
366
  const el = defElement<any>("a", { b: 1 });
363
367
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/hiccup-html",
3
- "version": "2.4.11",
3
+ "version": "2.4.13",
4
4
  "description": "100+ type-checked HTML5 element functions for @thi.ng/hiccup related infrastructure",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -32,10 +32,11 @@
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",
34
34
  "pub": "yarn npm publish --access public",
35
- "test": "bun test"
35
+ "test": "bun test",
36
+ "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
36
37
  },
37
38
  "dependencies": {
38
- "@thi.ng/api": "^8.9.27"
39
+ "@thi.ng/api": "^8.9.28"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@microsoft/api-extractor": "^7.40.1",
@@ -110,5 +111,5 @@
110
111
  ],
111
112
  "year": 2020
112
113
  },
113
- "gitHead": "d660ae8fd1bf64d919b4334f19509f1f539d70f6\n"
114
+ "gitHead": "a421058a65ba76608d94129ac29451bfedaf201c\n"
114
115
  }