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

nanocomponent

Package Overview
Dependencies
Maintainers
26
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nanocomponent - npm Package Compare versions

Comparing version 6.4.2 to 6.4.4

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # nanocomponent Change Log

## 6.4.4 - 2017-12-02
- Pin `on-load` to v3.3.3 to fix unbundled electron import.
## 6.4.3 - 2017-12-02
- Pin `on-load` to 3.3.2 to fix unbundled electron import.
## 6.4.1 - 2017-09-11

@@ -7,0 +13,0 @@ - Fixed `afterreorder` hook typo.

2

index.js

@@ -54,3 +54,3 @@ var document = require('global/document')

var shouldUpdate = this._rerender || this.update.apply(this, args)
if (this._rerender) this._render = false
if (this._rerender) this._rerender = false
if (shouldUpdate) {

@@ -57,0 +57,0 @@ morph(el, this._handleRender(args))

{
"name": "nanocomponent",
"version": "6.4.2",
"version": "6.4.4",
"description": "Native DOM components that pair nicely with DOM diffing algorithms",

@@ -47,3 +47,3 @@ "main": "index.js",

"nanotiming": "^6.1.3",
"on-load": "^3.3.1"
"on-load": "^3.3.3"
},

@@ -50,0 +50,0 @@ "devDependencies": {

@@ -15,3 +15,3 @@ # nanocomponent [![stability][0]][1]

- Works well with [bel][bel] and [yoyoify][yoyoify]
- Combines the best of `nanocomponent@5` and [`cache-component@5`](https://github.com/hypermodules/cache-component).
- Combines the best of `nanocomponent@5` and [`cache-component@5`][cc].

@@ -101,3 +101,3 @@ ## Usage

function Component () {
if (!(this instanceof Button)) return new Component()
if (!(this instanceof Component)) return new Component()
Nanocomponent.call(this)

@@ -165,3 +165,3 @@

function Component () {
if (!(this instanceof Button)) return new Component()
if (!(this instanceof Component)) return new Component()
Nanocomponent.call(this)

@@ -201,3 +201,3 @@ this.text = ''

function Component () {
if (!(this instanceof Button)) return new Component()
if (!(this instanceof Component)) return new Component()
Nanocomponent.call(this)

@@ -305,3 +305,3 @@ this.button1 = new Button ()

Render the component. Returns a proxy node if already mounted on the DOM. Proxy
nodes make it so DOM diffing algorithms leave the element alone when diffing. Call this when `arguments` have changed.
nodes make it so DOM diffing algorithms leave the element alone when diffing. Call this when `arguments` have changed.

@@ -320,3 +320,3 @@ ### `component.rerender()`

rendering. Must return a DOMNode. Use `beforerender` to run code after
`createElement` when the component is unmounted. Previously named `_render`. Arguments that passed to `render` are passed to `createElement`. Elements returned from `createElement` must always return the same root node type.
`createElement` when the component is unmounted. Previously named `_render`. Arguments passed to `render` are passed to `createElement`. Elements returned from `createElement` must always return the same root node type.

@@ -355,8 +355,2 @@ ### `Boolean = Nanocomponent.prototype.update([arguments…])`

## See Also
- [choojs/choo][choo]
- [choojs/nanocomponent-adapters][nca]
- [shama/bel](https://github.com/shama/bel)
- [shama/on-load](https://github.com/shama/on-load)
## Optional lifecycle events

@@ -372,2 +366,17 @@

## See also
- [component-box][cb] - Dynamic component instance caching
- [nanomap][nanomap] - Functional mapping into keyed component instances
- [choojs/choo][choo]
- [choojs/nanocomponent-adapters][nca]
- [shama/bel](https://github.com/shama/bel)
- [shama/on-load](https://github.com/shama/on-load)
## Examples
- [Bloomberg: What’s Inside All the iPhones](https://www.bloomberg.com/features/apple-iphone-guts/) (👏 [@jongacnik](https://github.com/jongacnik) 👏)
- [twitter-component](https://github.com/bcomnes/twitter-component)
- [youtube-component](https://github.com/bcomnes/youtube-component)
## Similar Packages

@@ -377,2 +386,3 @@ - [shama/base-element](https://github.com/shama/base-element)

- [yoshuawuyts/microcomponent](https://github.com/yoshuawuyts/microcomponent)
- [hypermodules/cache-component](https://github.com/hypermodules/cache-component)

@@ -403,1 +413,4 @@ ## License

[nca]: https://github.com/choojs/nanocomponent-adapters
[cc]: https://github.com/hypermodules/cache-component
[nanomap]: https://github.com/bcomnes/nanomap
[cb]: https://github.com/jongacnik/component-box
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