html-react-parser 5.2.16 → 5.2.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-react-parser",
3
- "version": "5.2.16",
3
+ "version": "5.2.17",
4
4
  "description": "HTML to React parser.",
5
5
  "author": "Mark <mark@remarkablemark.org> (https://remarkabl.org)",
6
6
  "funding": [
@@ -26,7 +26,7 @@
26
26
  }
27
27
  },
28
28
  "scripts": {
29
- "benchmark": "ts-node --project tsconfig.test.json benchmark",
29
+ "benchmark": "ts-node --project tsconfig.build.json benchmark",
30
30
  "build": "npm run build:cjs && npm run build:umd",
31
31
  "build:cjs": "tsc --project tsconfig.build.json",
32
32
  "build:umd": "rollup --config --failAfterWarnings",
@@ -38,11 +38,12 @@
38
38
  "prepare": "husky",
39
39
  "prepublishOnly": "npm run build && npm run lint && npm run lint:tsc && npm run lint:package && npm run test:ci",
40
40
  "size-limit": "size-limit",
41
- "test": "jest --testPathIgnorePatterns __tests__/integration",
42
- "test:ci": "CI=true npm test -- --ci --colors",
41
+ "test": "vitest run --exclude=__tests__/integration/",
42
+ "test:browser": "npm test -- --config=vitest.config.browser.mts --browser=chromium",
43
+ "test:ci": "CI=true npm test -- --color",
43
44
  "test:esm": "npm run build:cjs && node --test __tests__/esm/*",
44
- "test:integration": "npm run build && jest --coverage=false --env=jsdom __tests__/integration",
45
- "test:watch": "npm test -- --watch"
45
+ "test:integration": "npm run build && vitest run __tests__/integration/ --coverage.enabled=false",
46
+ "test:watch": "vitest --exclude=__tests__/integration/ --coverage.enabled=false"
46
47
  },
47
48
  "repository": {
48
49
  "type": "git",
@@ -60,7 +61,7 @@
60
61
  ],
61
62
  "dependencies": {
62
63
  "domhandler": "5.0.3",
63
- "html-dom-parser": "5.1.7",
64
+ "html-dom-parser": "5.1.8",
64
65
  "react-property": "2.0.2",
65
66
  "style-to-js": "1.1.21"
66
67
  },
@@ -76,10 +77,12 @@
76
77
  "@rollup/plugin-typescript": "12.3.0",
77
78
  "@size-limit/preset-big-lib": "12.0.0",
78
79
  "@types/benchmark": "2.1.5",
79
- "@types/jest": "30.0.0",
80
- "@types/node": "25.2.0",
81
- "@types/react": "19.2.10",
80
+ "@types/node": "25.2.1",
81
+ "@types/react": "19.2.13",
82
82
  "@types/react-dom": "19.2.3",
83
+ "@vitest/browser": "4.0.18",
84
+ "@vitest/browser-playwright": "4.0.18",
85
+ "@vitest/coverage-v8": "4.0.18",
83
86
  "benchmark": "2.1.4",
84
87
  "eslint": "9.39.2",
85
88
  "eslint-plugin-prettier": "5.5.5",
@@ -87,20 +90,18 @@
87
90
  "eslint-plugin-tsdoc": "0.5.0",
88
91
  "globals": "17.3.0",
89
92
  "husky": "9.1.7",
90
- "jest": "30.2.0",
91
- "jest-environment-jsdom": "30.2.0",
92
- "jest-watch-typeahead": "3.0.1",
93
93
  "lint-staged": "16.2.7",
94
+ "playwright": "1.58.2",
94
95
  "preact": "10.28.3",
95
96
  "publint": "0.3.17",
96
97
  "react": "19.2.4",
97
98
  "react-dom": "19.2.4",
98
99
  "rollup": "4.57.1",
99
100
  "size-limit": "12.0.0",
100
- "ts-jest": "29.4.6",
101
101
  "ts-node": "10.9.2",
102
102
  "typescript": "5.9.3",
103
- "typescript-eslint": "8.54.0"
103
+ "typescript-eslint": "8.54.0",
104
+ "vitest": "4.0.18"
104
105
  },
105
106
  "peerDependencies": {
106
107
  "@types/react": "0.14 || 15 || 16 || 17 || 18 || 19",
@@ -111,11 +112,6 @@
111
112
  "optional": true
112
113
  }
113
114
  },
114
- "overrides": {
115
- "pretty-format": {
116
- "react-is": "$react"
117
- }
118
- },
119
115
  "files": [
120
116
  "/dist",
121
117
  "/esm",