Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thi.ng/hdom

Package Overview
Dependencies
Maintainers
1
Versions
277
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/hdom - npm Package Compare versions

Comparing version 9.2.6 to 9.3.0

10

CHANGELOG.md
# Change Log
- **Last updated**: 2023-02-10T14:03:10Z
- **Last updated**: 2023-02-27T21:43:54Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,10 @@

## [9.3.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@9.3.0) (2023-02-27)
#### 🚀 Features
- update setAttrib() ([61aa627](https://github.com/thi-ng/umbrella/commit/61aa627))
- add IDeref support for individual attrib values (i.e. via `deref()` wrappers)
- update attribute removal/deletion logic
## [9.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/hdom@9.2.0) (2022-12-16)

@@ -14,0 +22,0 @@

@@ -0,1 +1,2 @@

import { implementsFunction } from "@thi.ng/checks/implements-function";
import { isArray as isa } from "@thi.ng/checks/is-array";

@@ -150,2 +151,3 @@ import { isNotStringAndIterable as isi } from "@thi.ng/checks/is-not-string-iterable";

export const setAttrib = (el, id, val, attribs) => {
implementsFunction(val, "deref") && (val = val.deref());
if (id.startsWith("__"))

@@ -199,3 +201,5 @@ return;

else {
el[id] != null ? (el[id] = null) : el.removeAttribute(id);
el.hasAttribute(id)
? el.removeAttribute("title")
: el[id] && (el[id] = null);
}

@@ -202,0 +206,0 @@ return el;

6

package.json
{
"name": "@thi.ng/hdom",
"version": "9.2.6",
"version": "9.3.0",
"description": "Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors",

@@ -45,3 +45,3 @@ "type": "module",

"@thi.ng/errors": "^2.2.11",
"@thi.ng/hiccup": "^4.2.32",
"@thi.ng/hiccup": "^4.2.33",
"@thi.ng/logger": "^1.4.9",

@@ -135,3 +135,3 @@ "@thi.ng/prefixes": "^2.1.19"

},
"gitHead": "cafa4ecea90fb681949dc3885a5bd6ddefa38b51\n"
"gitHead": "060a3a69281094df70be0e4f326a0ac3bbc3dd1d\n"
}

@@ -159,3 +159,3 @@ <!-- This file is generated - DO NOT EDIT! -->

Package sizes (brotli'd, pre-treeshake): ESM: 3.40 KB
Package sizes (brotli'd, pre-treeshake): ESM: 3.42 KB

@@ -162,0 +162,0 @@ ## Dependencies

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc