hast-to-hyperscript
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -5,2 +5,7 @@ <!--remark setext--> | ||
2.0.2 / 2016-06-23 | ||
================== | ||
* Fix warnings in react for void elements w/ children ([`b0bff0d`](https://github.com/wooorm/hast-to-hyperscript/commit/b0bff0d)) | ||
2.0.1 / 2016-06-18 | ||
@@ -7,0 +12,0 @@ ================== |
@@ -179,2 +179,8 @@ /** | ||
/* Ensure no React warnings are triggered for | ||
* void elements having children passed in. */ | ||
if (!elements.length) { | ||
elements = undefined; | ||
} | ||
return h(selector, attributes, elements); | ||
@@ -181,0 +187,0 @@ } |
{ | ||
"name": "hast-to-hyperscript", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Transform HAST to something else through a hyperscript DSL", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
12584
187