Socket
Socket
Sign inDemoInstall

@thi.ng/rdom

Package Overview
Dependencies
Maintainers
0
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thi.ng/rdom - npm Package Compare versions

Comparing version 1.4.3 to 1.5.0

9

CHANGELOG.md
# Change Log
- **Last updated**: 2024-07-02T12:48:17Z
- **Last updated**: 2024-07-03T08:50:04Z
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)

@@ -12,2 +12,9 @@

## [1.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.5.0) (2024-07-03)
#### 🚀 Features
- add support for no-arg fns in child positions ([6327fd3](https://github.com/thi-ng/umbrella/commit/6327fd3))
- update `$tree()` to support no-arg functions in child positions
### [1.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/rdom@1.4.1) (2024-06-21)

@@ -14,0 +21,0 @@

@@ -17,2 +17,3 @@ import { type MaybeDeref } from "@thi.ng/api/deref";

* - `[function, ...args]`
* - `["tag", {...attribs}, noArgFunction, "other"]`
* - ES6 iterable of the above (for child values only!)

@@ -19,0 +20,0 @@ *

2

dom.js

@@ -20,3 +20,3 @@ import { deref, isDeref } from "@thi.ng/api/deref";

import { isComment, isComponent } from "./checks.js";
const $tree = async (tree, parent, idx = -1) => isArray(tree) ? isComment(tree) ? $comment(tree.slice(1), parent, idx) : $treeElem(tree, parent, idx) : isComponent(tree) ? tree.mount(parent, idx) : isDeref(tree) ? $tree(tree.deref(), parent) : isNotStringAndIterable(tree) ? $treeIter(tree, parent) : tree != null ? $el("span", null, tree, parent, idx) : null;
const $tree = async (tree, parent, idx = -1) => isArray(tree) ? isComment(tree) ? $comment(tree.slice(1), parent, idx) : $treeElem(tree, parent, idx) : isComponent(tree) ? tree.mount(parent, idx) : isDeref(tree) ? $tree(tree.deref(), parent) : isFunction(tree) ? $tree(tree(), parent, idx) : isNotStringAndIterable(tree) ? $treeIter(tree, parent) : tree != null ? $el("span", null, tree, parent, idx) : null;
const $treeElem = (tree, parent, idx) => {

@@ -23,0 +23,0 @@ const tag = tree[0];

{
"name": "@thi.ng/rdom",
"version": "1.4.3",
"version": "1.5.0",
"description": "Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and @thi.ng/hiccup compatible",

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

},
"gitHead": "4a2f35b6e720cc4ad3e2ff2549b78beb3f80732e\n"
"gitHead": "4e1794f6c951adb73c27c3e6c08f7138d9445e8b\n"
}

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

Package sizes (brotli'd, pre-treeshake): ESM: 4.23 KB
Package sizes (brotli'd, pre-treeshake): ESM: 4.24 KB

@@ -321,0 +321,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