hyperscript
Advanced tools
Comparing version 1.4.7 to 2.0.0
var split = require('browser-split') | ||
var ClassList = require('class-list') | ||
require('html-element') | ||
var htmlElement = require('html-element'); | ||
var document = htmlElement.document; | ||
var Text = htmlElement.Text; | ||
function context () { | ||
@@ -138,6 +141,2 @@ | ||
function isText (el) { | ||
return el && el.nodeName === '#text' && el.nodeType == 3 | ||
} | ||
function forEach (arr, fn) { | ||
@@ -144,0 +143,0 @@ if (arr.forEach) return arr.forEach(fn) |
{ | ||
"name": "hyperscript", | ||
"version": "1.4.7", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/dominictarr/hyperscript", | ||
@@ -18,5 +18,5 @@ "repository": { | ||
"dependencies": { | ||
"browser-split": "0.0.0", | ||
"class-list": "~0.1.0", | ||
"browser-split": "0.0.0", | ||
"html-element": "~1.3.0" | ||
"html-element": "^2.0.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "browser": { |
@@ -103,3 +103,3 @@ # HyperScript | ||
var h = require('hyperscript') | ||
h('h1.fun', {style: 'font-family: Comic Sans MS'}}, 'Happy Birthday!') | ||
h('h1.fun', {style: 'font-family: Comic Sans MS'}, 'Happy Birthday!') | ||
``` | ||
@@ -168,8 +168,10 @@ | ||
``` | ||
## Ecosystem | ||
## Tools | ||
* [html2hscript](https://github.com/twilson63/html2hscript) - Parse HTML into hyperscript | ||
* [dom2hscript](https://github.com/AkeemMcLennon/dom2hscript) - Frontend library for parsing HTML into hyperscript using the browser's built in parser. | ||
* [html2hscript.herokuapp.com](http://html2hscript.herokuapp.com/) - Online Tool that converts html snippets to hyperscript | ||
* [html2hyperscript](https://github.com/unframework/html2hyperscript) - Original commandline utility to convert legacy HTML markup into hyperscript | ||
* [hyperscript-helpers](https://github.com/ohanhi/hyperscript-helpers) - write `div(h1('hello')` instead of `h('div', h('h1', 'hello'))` | ||
* [react-hyperscript](https://github.com/mlmorg/react-hyperscript) - use hyperscript with React. | ||
@@ -179,1 +181,4 @@ ## License | ||
MIT | ||
@@ -0,1 +1,2 @@ | ||
global.document = require('html-element').document; | ||
@@ -2,0 +3,0 @@ var test = require('tape') |
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
47476
182
+ Addedhtml-element@2.3.1(transitive)
- Removedhtml-element@1.3.0(transitive)
Updatedhtml-element@^2.0.0