html-react-parser 5.1.4 → 5.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/esm/attributes-to-props.d.mts +4 -1
- package/esm/dom-to-react.d.mts +4 -1
- package/esm/index.d.mts +2 -1
- package/package.json +8 -10
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ import parse from 'html-react-parser';
|
|
|
27
27
|
parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
[Replit](https://replit.com/@remarkablemark/html-react-parser) | [JSFiddle](https://jsfiddle.net/remarkablemark/7v86d800/) | [CodeSandbox](https://codesandbox.io/s/940pov1l4w) | [TypeScript](https://
|
|
30
|
+
[Replit](https://replit.com/@remarkablemark/html-react-parser) | [JSFiddle](https://jsfiddle.net/remarkablemark/7v86d800/) | [CodeSandbox](https://codesandbox.io/s/940pov1l4w) | [TypeScript](https://stackblitz.com/edit/html-react-parser) | [Vite](https://codesandbox.io/p/sandbox/html-react-parser-fg2jpw) | [Examples](https://github.com/remarkablemark/html-react-parser/tree/master/examples)
|
|
31
31
|
|
|
32
32
|
<details>
|
|
33
33
|
<summary>Table of Contents</summary>
|
package/esm/dom-to-react.d.mts
CHANGED
package/esm/index.d.mts
CHANGED
|
@@ -3,4 +3,5 @@ import HTMLReactParser from '../lib/index.js';
|
|
|
3
3
|
export * from '../lib/index.js';
|
|
4
4
|
|
|
5
5
|
// @ts-expect-error Property 'default' exists on type
|
|
6
|
-
export default HTMLReactParser.default
|
|
6
|
+
export default (HTMLReactParser.default as typeof HTMLReactParser) ??
|
|
7
|
+
HTMLReactParser;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-react-parser",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.6",
|
|
4
4
|
"description": "HTML to React parser.",
|
|
5
5
|
"author": "Mark <mark@remarkablemark.org> (https://remarkablemark.org)",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
"lint": "eslint --ignore-path .gitignore --ignore-pattern /examples/ .",
|
|
25
25
|
"lint:fix": "npm run lint -- --fix",
|
|
26
26
|
"lint:tsc": "tsc --noEmit",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"prepublishOnly": "pinst --disable && npm run lint && npm run test:ci && npm run clean && npm run build",
|
|
27
|
+
"prepare": "husky",
|
|
28
|
+
"prepublishOnly": "npm run lint && npm run test:ci && npm run clean && npm run build",
|
|
30
29
|
"size-limit": "size-limit",
|
|
31
30
|
"test": "jest --testPathIgnorePatterns __tests__/integration",
|
|
32
31
|
"test:ci": "CI=true npm test -- --ci --colors",
|
|
@@ -49,14 +48,15 @@
|
|
|
49
48
|
"dom"
|
|
50
49
|
],
|
|
51
50
|
"dependencies": {
|
|
51
|
+
"@types/react": "18.2.55",
|
|
52
52
|
"domhandler": "5.0.3",
|
|
53
53
|
"html-dom-parser": "5.0.8",
|
|
54
54
|
"react-property": "2.0.2",
|
|
55
55
|
"style-to-js": "1.1.10"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "18.6.
|
|
59
|
-
"@commitlint/config-conventional": "18.6.
|
|
58
|
+
"@commitlint/cli": "18.6.1",
|
|
59
|
+
"@commitlint/config-conventional": "18.6.2",
|
|
60
60
|
"@rollup/plugin-commonjs": "25.0.7",
|
|
61
61
|
"@rollup/plugin-node-resolve": "15.2.3",
|
|
62
62
|
"@rollup/plugin-terser": "0.4.4",
|
|
@@ -64,23 +64,21 @@
|
|
|
64
64
|
"@size-limit/preset-big-lib": "11.0.2",
|
|
65
65
|
"@types/benchmark": "2.1.5",
|
|
66
66
|
"@types/jest": "29.5.12",
|
|
67
|
-
"@types/react": "18.2.55",
|
|
68
67
|
"@types/react-dom": "18.2.19",
|
|
69
68
|
"@typescript-eslint/eslint-plugin": "7.0.1",
|
|
70
69
|
"@typescript-eslint/parser": "7.0.1",
|
|
71
70
|
"benchmark": "2.1.4",
|
|
72
71
|
"eslint": "8.56.0",
|
|
73
72
|
"eslint-plugin-prettier": "5.1.3",
|
|
74
|
-
"husky": "9.0.
|
|
73
|
+
"husky": "9.0.11",
|
|
75
74
|
"jest": "29.7.0",
|
|
76
75
|
"jest-environment-jsdom": "29.7.0",
|
|
77
76
|
"jest-watch-typeahead": "2.2.2",
|
|
78
77
|
"lint-staged": "15.2.2",
|
|
79
|
-
"pinst": "3.0.0",
|
|
80
78
|
"preact": "10.19.4",
|
|
81
79
|
"react": "18.2.0",
|
|
82
80
|
"react-dom": "18.2.0",
|
|
83
|
-
"rollup": "4.
|
|
81
|
+
"rollup": "4.11.0",
|
|
84
82
|
"size-limit": "11.0.2",
|
|
85
83
|
"ts-jest": "29.1.2",
|
|
86
84
|
"typescript": "5.3.3"
|