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

html-to-react

Package Overview
Dependencies
Maintainers
3
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-react - npm Package Compare versions

Comparing version 1.5.1 to 1.6.0

.mocharc.json

6

CHANGELOG.md
# Change Log
## Master/Unreleased
## [v1.6.0](https://github.com/aknuds1/html-to-react/tree/v1.6.0)
- Use React as peer dependency [149](https://github.com/aknuds1/html-to-react/pull/149) ([woofers](https://github.com/woofers))
- Add TypeScript type definitions [#146](https://github.com/aknuds1/html-to-react/pull/146) ([xnevz](https://github.com/xnevz), [aknuds1](https://github.com/aknuds1))
## [v1.5.1](https://github.com/aknuds1/html-to-react/tree/v1.5.1)

@@ -5,0 +11,0 @@

19

package.json
{
"name": "html-to-react",
"version": "1.5.1",
"version": "1.6.0",
"description": "A lightweight library that converts raw HTML to a React DOM structure.",
"main": "index.js",
"types": "types/index.d.ts",
"scripts": {

@@ -37,9 +38,14 @@ "test": "./node_modules/.bin/eslint . && ./node_modules/.bin/mocha",

},
"peerDependencies": {
"react": "^0.13.0 || ^0.14.0 || >=15"
},
"dependencies": {
"domhandler": "^5.0",
"htmlparser2": "^8.0",
"lodash.camelcase": "^4.3.0",
"react": "^18.0"
"lodash.camelcase": "^4.3.0"
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/react": "^18.0.33",
"@types/react-dom": "^18.0.11",
"coveralls": "^3.1.0",

@@ -50,7 +56,10 @@ "eslint": "^8.1",

"nyc": "^15.1.0",
"react-dom": "^18.0"
"react": "^18.0",
"react-dom": "^18.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
},
"volta": {
"node": "18.12.1"
"node": "20.2.0"
}
}

@@ -80,3 +80,3 @@ # html-to-react

// Order matters. Instructions are processed in the order they're defined
const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React);
const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions();
const processingInstructions = [

@@ -162,3 +162,3 @@ {

const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React);
const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions();

@@ -266,3 +266,3 @@ // Order matters. Instructions are processed in

];
const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions(React);
const processNodeDefinitions = new HtmlToReact.ProcessNodeDefinitions();
const processingInstructions = [

@@ -269,0 +269,0 @@ {

Sorry, the diff of this file is not supported yet

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