html-react-parser 5.2.14 → 5.2.15
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 +4 -4
- package/esm/utilities.d.mts +1 -1
- package/package.json +21 -10
package/README.md
CHANGED
|
@@ -611,12 +611,12 @@ Run benchmark:
|
|
|
611
611
|
npm run benchmark
|
|
612
612
|
```
|
|
613
613
|
|
|
614
|
-
Output of benchmark run on MacBook Pro
|
|
614
|
+
Output of benchmark run on MacBook Pro 2024:
|
|
615
615
|
|
|
616
616
|
```
|
|
617
|
-
html-to-react - Single x 1,
|
|
618
|
-
html-to-react - Multiple x
|
|
619
|
-
html-to-react - Complex x
|
|
617
|
+
html-to-react - Single x 1,230,874 ops/sec ±0.21% (97 runs sampled)
|
|
618
|
+
html-to-react - Multiple x 502,028 ops/sec ±0.89% (94 runs sampled)
|
|
619
|
+
html-to-react - Complex x 54,401 ops/sec ±0.76% (93 runs sampled)
|
|
620
620
|
```
|
|
621
621
|
|
|
622
622
|
Run [Size Limit](https://github.com/ai/size-limit):
|
package/esm/utilities.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '../lib/utilities';
|
|
1
|
+
export * from '../lib/utilities.js';
|
package/package.json
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-react-parser",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.15",
|
|
4
4
|
"description": "HTML to React parser.",
|
|
5
|
-
"author": "Mark <mark@remarkablemark.org> (https://
|
|
5
|
+
"author": "Mark <mark@remarkablemark.org> (https://remarkabl.org)",
|
|
6
|
+
"funding": [
|
|
7
|
+
{
|
|
8
|
+
"type": "github",
|
|
9
|
+
"url": "https://github.com/sponsors/remarkablemark"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "opencollective",
|
|
13
|
+
"url": "https://opencollective.com/html-react-parser"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
6
16
|
"main": "./lib/index.js",
|
|
7
17
|
"module": "./esm/index.mjs",
|
|
8
18
|
"exports": {
|
|
@@ -16,7 +26,7 @@
|
|
|
16
26
|
}
|
|
17
27
|
},
|
|
18
28
|
"scripts": {
|
|
19
|
-
"benchmark": "ts-node benchmark",
|
|
29
|
+
"benchmark": "ts-node --project tsconfig.test.json benchmark",
|
|
20
30
|
"build": "npm run build:cjs && npm run build:umd",
|
|
21
31
|
"build:cjs": "tsc --project tsconfig.build.json",
|
|
22
32
|
"build:umd": "rollup --config --failAfterWarnings",
|
|
@@ -24,9 +34,9 @@
|
|
|
24
34
|
"lint": "eslint .",
|
|
25
35
|
"lint:fix": "npm run lint -- --fix",
|
|
26
36
|
"lint:package": "publint",
|
|
27
|
-
"lint:tsc": "tsc --
|
|
37
|
+
"lint:tsc": "tsc --project tsconfig.test.json",
|
|
28
38
|
"prepare": "husky",
|
|
29
|
-
"prepublishOnly": "npm run
|
|
39
|
+
"prepublishOnly": "npm run build && npm run lint && npm run lint:tsc && npm run lint:package && npm run test:ci",
|
|
30
40
|
"size-limit": "size-limit",
|
|
31
41
|
"test": "jest --testPathIgnorePatterns __tests__/integration",
|
|
32
42
|
"test:ci": "CI=true npm test -- --ci --colors",
|
|
@@ -55,9 +65,9 @@
|
|
|
55
65
|
"style-to-js": "1.1.21"
|
|
56
66
|
},
|
|
57
67
|
"devDependencies": {
|
|
58
|
-
"@commitlint/cli": "20.
|
|
59
|
-
"@commitlint/config-conventional": "20.
|
|
60
|
-
"@eslint/compat": "2.0.
|
|
68
|
+
"@commitlint/cli": "20.4.0",
|
|
69
|
+
"@commitlint/config-conventional": "20.4.0",
|
|
70
|
+
"@eslint/compat": "2.0.2",
|
|
61
71
|
"@eslint/eslintrc": "3.3.3",
|
|
62
72
|
"@eslint/js": "9.39.2",
|
|
63
73
|
"@rollup/plugin-commonjs": "29.0.0",
|
|
@@ -67,13 +77,14 @@
|
|
|
67
77
|
"@size-limit/preset-big-lib": "12.0.0",
|
|
68
78
|
"@types/benchmark": "2.1.5",
|
|
69
79
|
"@types/jest": "30.0.0",
|
|
70
|
-
"@types/node": "25.0
|
|
80
|
+
"@types/node": "25.1.0",
|
|
71
81
|
"@types/react": "19.2.10",
|
|
72
82
|
"@types/react-dom": "19.2.3",
|
|
73
83
|
"benchmark": "2.1.4",
|
|
74
84
|
"eslint": "9.39.2",
|
|
75
85
|
"eslint-plugin-prettier": "5.5.5",
|
|
76
86
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
87
|
+
"eslint-plugin-tsdoc": "0.5.0",
|
|
77
88
|
"globals": "17.2.0",
|
|
78
89
|
"husky": "9.1.7",
|
|
79
90
|
"jest": "30.2.0",
|
|
@@ -84,7 +95,7 @@
|
|
|
84
95
|
"publint": "0.3.17",
|
|
85
96
|
"react": "19.2.4",
|
|
86
97
|
"react-dom": "19.2.4",
|
|
87
|
-
"rollup": "4.57.
|
|
98
|
+
"rollup": "4.57.1",
|
|
88
99
|
"size-limit": "12.0.0",
|
|
89
100
|
"ts-jest": "29.4.6",
|
|
90
101
|
"ts-node": "10.9.2",
|