html-react-parser 5.2.13 → 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 CHANGED
@@ -611,12 +611,12 @@ Run benchmark:
611
611
  npm run benchmark
612
612
  ```
613
613
 
614
- Output of benchmark run on MacBook Pro 2021:
614
+ Output of benchmark run on MacBook Pro 2024:
615
615
 
616
616
  ```
617
- html-to-react - Single x 1,018,239 ops/sec ±0.43% (94 runs sampled)
618
- html-to-react - Multiple x 380,037 ops/sec ±0.61% (97 runs sampled)
619
- html-to-react - Complex x 35,091 ops/sec ±0.50% (96 runs sampled)
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):
@@ -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.13",
3
+ "version": "5.2.15",
4
4
  "description": "HTML to React parser.",
5
- "author": "Mark <mark@remarkablemark.org> (https://remarkablemark.org)",
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 --noEmit",
37
+ "lint:tsc": "tsc --project tsconfig.test.json",
28
38
  "prepare": "husky",
29
- "prepublishOnly": "npm run lint && npm run lint:tsc && npm run test:ci && npm run clean && npm run build",
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",
@@ -50,14 +60,14 @@
50
60
  ],
51
61
  "dependencies": {
52
62
  "domhandler": "5.0.3",
53
- "html-dom-parser": "5.1.5",
63
+ "html-dom-parser": "5.1.4",
54
64
  "react-property": "2.0.2",
55
65
  "style-to-js": "1.1.21"
56
66
  },
57
67
  "devDependencies": {
58
- "@commitlint/cli": "20.3.1",
59
- "@commitlint/config-conventional": "20.3.1",
60
- "@eslint/compat": "2.0.1",
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.10",
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.0",
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",