Skip to content

Commit f358b2c

Browse files
author
Hardik_B
committed
[UPDATED] react from 18 to 17 to provide more support
1 parent 59bde03 commit f358b2c

File tree

2 files changed

+54
-48
lines changed

2 files changed

+54
-48
lines changed

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dx-kit/react-conditional-match",
3-
"version": "2.2.7",
3+
"version": "3.0.0",
44
"description": "A flexible and reusable React component for conditionally rendering child elements. The component supports options for handling multiple matching children and custom fallbacks, and is lightweight and easy to use. This component can help simplify complex rendering logic in your React application and remove the need for ternary statements and if else blocks.",
55
"main": "./dist/index.cjs.js",
66
"module": "./dist/index.esm.js",
@@ -39,23 +39,23 @@
3939
"author": "hardik badola (hardyyb2)",
4040
"license": "MIT",
4141
"peerDependencies": {
42-
"react": ">=18"
42+
"react": ">=17"
4343
},
4444
"files": [
4545
"dist",
4646
"LICENSE",
4747
"README.md"
4848
],
4949
"dependencies": {
50-
"@types/react": "^18.0.28",
51-
"@types/react-dom": "^18.0.11",
52-
"react": "^18.2.0",
53-
"react-dom": "^18.2.0"
50+
"@types/react": "^17.0.2",
51+
"@types/react-dom": "^17.0.2",
52+
"react": "^17.0.2",
53+
"react-dom": "^17.0.2"
5454
},
5555
"devDependencies": {
5656
"@testing-library/jest-dom": "^5.16.5",
57-
"@testing-library/react": "^14.0.0",
58-
"@testing-library/user-event": "^14.4.3",
57+
"@testing-library/react": "^12.0.0",
58+
"@testing-library/user-event": "^14.0.3",
5959
"@types/jest": "^29.4.0",
6060
"@types/node": "^18.14.2",
6161
"@types/testing-library__jest-dom": "^5.14.5",
@@ -73,6 +73,7 @@
7373
"jsdom": "^21.1.0",
7474
"prettier": "^2.8.4",
7575
"typescript": "^4.9.5",
76+
"vite": "^4.1.4",
7677
"vitest": "^0.29.1"
7778
}
7879
}

pnpm-lock.yaml

Lines changed: 45 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)