react-markdown
Advanced tools
Comparing version 3.2.2 to 3.3.0
@@ -5,2 +5,8 @@ # Change Log | ||
## 3.3.0 - 2018-03-06 | ||
### Added | ||
* Add support for fragment renderers (Benjamim Sonntag) | ||
## 3.2.2 - 2018-02-26 | ||
@@ -7,0 +13,0 @@ |
@@ -19,3 +19,3 @@ 'use strict'; | ||
if (typeof renderer !== 'function' && typeof renderer !== 'string') { | ||
if (typeof renderer !== 'function' && typeof renderer !== 'string' && !isReactFragment(renderer)) { | ||
throw new Error('Renderer for type `' + node.type + '` not defined or is not renderable'); | ||
@@ -35,2 +35,6 @@ } | ||
function isReactFragment(renderer) { | ||
return React.Fragment && React.Fragment === renderer; | ||
} | ||
// eslint-disable-next-line max-params, complexity | ||
@@ -37,0 +41,0 @@ function getNodeProps(node, key, opts, renderer, parent, index) { |
{ | ||
"name": "react-markdown", | ||
"description": "Renders Markdown as React components", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"keywords": [ | ||
@@ -37,6 +37,6 @@ "markdown", | ||
"dependencies": { | ||
"prop-types": "^15.6.0", | ||
"remark-parse": "^4.0.0", | ||
"prop-types": "^15.6.1", | ||
"remark-parse": "^5.0.0", | ||
"unified": "^6.1.5", | ||
"unist-util-visit": "^1.1.3", | ||
"unist-util-visit": "^1.3.0", | ||
"xtend": "^4.0.1" | ||
@@ -46,20 +46,21 @@ }, | ||
"babel-cli": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.10", | ||
"babel-loader": "^7.1.3", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.13", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-react": "^6.24.1", | ||
"eslint": "^4.10.0", | ||
"eslint-config-prettier": "^2.7.0", | ||
"eslint-config-sanity": "^3.1.0", | ||
"eslint-plugin-react": "^7.4.0", | ||
"eslint": "^4.18.2", | ||
"eslint-config-prettier": "^2.9.0", | ||
"eslint-config-sanity": "^4.0.2", | ||
"eslint-plugin-react": "^7.7.0", | ||
"gh-pages-deploy": "^0.4.2", | ||
"jest": "^21.2.1", | ||
"prettier": "^1.8.2", | ||
"react": "^16.1.0", | ||
"jest": "^22.4.2", | ||
"prettier": "^1.11.1", | ||
"react": "^16.2.0", | ||
"react-addons-test-utils": "^15.6.2", | ||
"react-dom": "^16.1.0", | ||
"react-test-renderer": "^16.0.0", | ||
"react-dom": "^16.2.0", | ||
"react-test-renderer": "^16.2.0", | ||
"remark-breaks": "^1.0.0", | ||
"rimraf": "^2.6.2", | ||
"webpack": "^3.8.1" | ||
"webpack": "^4.1.0", | ||
"webpack-cli": "^2.0.10" | ||
}, | ||
@@ -66,0 +67,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
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
380732
16
20
546
+ Addedremark-parse@5.0.0(transitive)
- Removedremark-parse@4.0.0(transitive)
Updatedprop-types@^15.6.1
Updatedremark-parse@^5.0.0
Updatedunist-util-visit@^1.3.0