nanocomponent
Advanced tools
Comparing version 6.5.1 to 6.5.2
@@ -5,2 +5,6 @@ # nanocomponent Change Log | ||
## 6.5.2 - 2018-04-20 | ||
- Allow SVGs as the root node (https://github.com/choojs/nanocomponent/pull/79) | ||
- Update deps | ||
## 6.5.1 - 2018-02-11 | ||
@@ -137,4 +141,4 @@ - Update nanotiming@7.2.0 | ||
[cc]: https://github.com/hypermodules/cache-component | ||
[bel]: http://ghub.io/bel | ||
[nanohtml]: http://ghub.io/nanohtml | ||
[nm]: http://ghub.io/nanomorph | ||
[getter]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get |
@@ -6,3 +6,3 @@ // // adapted from https://github.com/timwis/choo-leaflet-demo/blob/master/src/map.js | ||
var onIdle = require('on-idle') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -9,0 +9,0 @@ module.exports = Leaflet |
@@ -54,3 +54,3 @@ var document = require('global/document') | ||
} else if (this.element) { | ||
el = this.element // retain reference, as the ID might change on render | ||
el = this.element // retain reference, as the ID might change on render | ||
var updateTiming = nanotiming(this._name + '.update') | ||
@@ -94,3 +94,3 @@ var shouldUpdate = this._rerender || this.update.apply(this, args) | ||
if (!this._rootNodeName) this._rootNodeName = el.nodeName | ||
assert(el instanceof window.HTMLElement, 'nanocomponent: createElement should return a DOM node') | ||
assert(el instanceof window.Element, 'nanocomponent: createElement should return a DOM node') | ||
assert.equal(this._rootNodeName, el.nodeName, 'nanocomponent: root node types cannot differ between re-renders') | ||
@@ -97,0 +97,0 @@ this._arguments = args |
{ | ||
"name": "nanocomponent", | ||
"version": "6.5.1", | ||
"version": "6.5.2", | ||
"description": "Native DOM components that pair nicely with DOM diffing algorithms", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"test:node": "NODE_ENV=test node test/node.js | tap-format-spec", | ||
"test:browser": "browserify test/browser/index.js | tape-run | tap-format-spec", | ||
"test:browser": "browserify test/browser/index.js | tape-run --render='tap-format-spec'", | ||
"test:lint": "standard *.js", | ||
@@ -23,2 +23,3 @@ "start": "bankai start example" | ||
"keywords": [ | ||
"nanohtml", | ||
"bel", | ||
@@ -54,3 +55,2 @@ "choo", | ||
"bankai": "^9.5.1", | ||
"bel": "^5.1.1", | ||
"browserify": "^16.0.0", | ||
@@ -64,9 +64,10 @@ "choo": "^6.0.1", | ||
"nanobus": "^4.2.0", | ||
"nanohtml": "^1.2.3", | ||
"nanologger": "^1.3.1", | ||
"npm-run-all": "^4.0.2", | ||
"on-idle": "^3.1.0", | ||
"standard": "^10.0.0", | ||
"standard": "^11.0.1", | ||
"tape": "^4.7.0", | ||
"tape-run": "^3.0.4" | ||
"tape-run": "^4.0.0" | ||
} | ||
} |
@@ -16,3 +16,3 @@ # nanocomponent [![stability][0]][1] | ||
- Class based components offering a familiar component structure | ||
- Works well with [bel][bel] and [yoyoify][yoyoify] | ||
- Works well with [nanohtml][nanohtml] and [yoyoify][yoyoify] | ||
- Combines the best of `nanocomponent@5` and [`cache-component@5`][cc]. | ||
@@ -25,3 +25,3 @@ | ||
var Nanocomponent = require('nanocomponent') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -55,3 +55,3 @@ class Button extends Nanocomponent { | ||
var choo = require('choo') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -108,3 +108,3 @@ var Button = require('./button.js') | ||
var Nanocomponent = require('nanocomponent') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -141,3 +141,3 @@ class Component extends Nanocomponent { | ||
var Nanocomponent = require('nanocomponent') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -174,3 +174,3 @@ function Component () { | ||
var Nanocomponent = require('nanocomponent') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -210,3 +210,3 @@ class Component extends Nanocomponent { | ||
var Nanocomponent = require('nanocomponent') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
var Button = require('./button.js') | ||
@@ -276,3 +276,3 @@ | ||
```js | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -402,3 +402,3 @@ var el1 = html`<div>pink is the best</div>` | ||
- [choojs/nanocomponent-adapters][nca] | ||
- [shama/bel](https://github.com/shama/bel) | ||
- [choojs/nanohtml](https://github.com/choojs/nanohtml) | ||
- [shama/on-load](https://github.com/shama/on-load) | ||
@@ -418,2 +418,3 @@ | ||
- [hypermodules/cache-component](https://github.com/hypermodules/cache-component) | ||
- [rafaelrinaldi/data-components](https://github.com/rafaelrinaldi/data-components) | ||
@@ -434,3 +435,3 @@ ## License | ||
[11]: https://github.com/feross/standard | ||
[bel]: https://github.com/shama/bel | ||
[nanohtml]: https://github.com/choojs/nanohtml | ||
[yoyoify]: https://github.com/shama/yo-yoify | ||
@@ -437,0 +438,0 @@ [md]: https://github.com/patrick-steele-idem/morphdom |
var Nanocomponent = require('../../') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -4,0 +4,0 @@ class BlogSection extends Nanocomponent { |
@@ -5,3 +5,3 @@ var test = require('tape') | ||
var Nanocomponent = require('../../') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
var compare = require('../../compare') | ||
@@ -8,0 +8,0 @@ var nanobus = require('nanobus') |
var Nanocomponent = require('../../') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -4,0 +4,0 @@ module.exports = SimpleComponent |
var Nanocomponent = require('../') | ||
var test = require('tape') | ||
var html = require('bel') | ||
var html = require('nanohtml') | ||
@@ -5,0 +5,0 @@ test('cache', (t) => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
236882
439