Socket
Socket
Sign inDemoInstall

@thi.ng/hdom

Package Overview
Dependencies
Maintainers
1
Versions
273
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 6.0.1 to 6.0.2

9

api.d.ts
import { IObjectOf } from "@thi.ng/api/api";
export interface ILifecycle {
/**
* Component init method. Called with the actual DOM element,
* hdom user context and any other args when the component is
* first used, but **after** `render()` has been called once already.
* Component init method. Called with the actual DOM element, hdom
* user context and any other args when the component is first used,
* but **after** `render()` has been called once already AND all of
* the components children have been realized. Therefore, if any
* children have their own `init` lifecycle method, these hooks will
* be executed before that of the parent.
*/

@@ -8,0 +11,0 @@ init?(el: Element, ctx: any, ...args: any[]): any;

@@ -6,2 +6,13 @@ # Change Log

## [6.0.2](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@6.0.1...@thi.ng/hdom@6.0.2) (2018-12-16)
### Bug Fixes
* **hdom:** life cycle init / release handling ([6d85c62](https://github.com/thi-ng/umbrella/commit/6d85c62))
## [6.0.1](https://github.com/thi-ng/umbrella/compare/@thi.ng/hdom@6.0.0...@thi.ng/hdom@6.0.1) (2018-12-15)

@@ -8,0 +19,0 @@

@@ -194,3 +194,3 @@ "use strict";

// DEBUG && console.log("call __release", tag);
tag.__release.apply(tag, tag.__args);
tag.__release.apply(tag.__this, tag.__args);
delete tag.__release;

@@ -197,0 +197,0 @@ }

@@ -29,6 +29,2 @@ "use strict";

const el = impl.createElement(parent, tag, attribs, insert);
if (tree.__init) {
// TODO hdom ctx?
tree.__init.apply(tree.__this, [el, ...tree.__args]);
}
if (tree.length > 2) {

@@ -40,2 +36,5 @@ const n = tree.length;

}
if (tree.__init) {
tree.__init.apply(tree.__this, [el, ...tree.__args]);
}
return el;

@@ -42,0 +41,0 @@ }

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

@@ -53,3 +53,3 @@ "main": "./index.js",

},
"gitHead": "159ce8f6b1d2dad1e12f2ba3f4f7b60d1623acee"
"gitHead": "1d5278f8d45c02be3f3333e067f4de64930225a9"
}

@@ -590,3 +590,6 @@ # @thi.ng/hdom

* hdom user context and any other args when the component is
* first used, but **after** `render()` has been called once already.
* first used, but **after** `render()` has been called once
* already AND all of the components children have been realized.
* Therefore, if any children have their own `init` lifecycle
* method, these hooks will be executed before that of the parent.
*/

@@ -593,0 +596,0 @@ init?(el: Element, ctx: any, ...args: any[]);

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