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

react-markdown

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-markdown - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

yarn-error.log

6

CHANGELOG.md

@@ -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 @@

6

lib/ast-to-react.js

@@ -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) {

33

package.json
{
"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

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