html-to-react
Advanced tools
Comparing version 1.5.1 to 1.6.0
# 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 @@ |
{ | ||
"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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
63121
38
837
12
- Removedreact@^18.0