@jackens/nnn 2025.9.7 → 2025.9.9

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 (3) hide show
  1. package/nnn.js +1 -1
  2. package/package.json +1 -1
  3. package/readme.md +5 -1
package/nnn.js CHANGED
@@ -134,7 +134,7 @@ var _h = (namespace_uri) => {
134
134
  }
135
135
  }
136
136
  }
137
- } else if (is_string(arg)) {
137
+ } else if (is_string(arg) || is_number(arg)) {
138
138
  child = document.createTextNode(arg);
139
139
  }
140
140
  if (child != null) {
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "name": "@jackens/nnn",
37
37
  "type": "module",
38
38
  "types": "nnn.d.ts",
39
- "version": "2025.9.7"
39
+ "version": "2025.9.9"
40
40
  }
package/readme.md CHANGED
@@ -458,6 +458,11 @@ expect(h('span', 'text').outerHTML).to.deep.equal('<span>text</span>')
458
458
  expect(h('span', { $innerText: 'text' }).outerHTML).to.deep.equal('<span>text</span>')
459
459
  ```
460
460
 
461
+ ```ts
462
+ expect(h('span', '42').outerHTML).to.deep.equal('<span>42</span>')
463
+ expect(h('span', 42).outerHTML).to.deep.equal('<span>42</span>')
464
+ ```
465
+
461
466
  ```ts
462
467
  expect(h('div', { style: 'margin:0;padding:0' }).outerHTML)
463
468
  .to.deep.equal('<div style="margin:0;padding:0"></div>')
@@ -812,7 +817,6 @@ Shorthand for: `s('svg', ['use', { 'xlink:href': '#' + id }], ...args)`.
812
817
 
813
818
  ```ts
814
819
  const uuid_v1: (date?: Date, node?: string) => string;
815
- export {};
816
820
  ```
817
821
 
818
822
  Generates a UUID v1 (time-based) identifier.