Skip to content

Commit 5962d3f

Browse files
committed
Hook updates
1 parent ccea212 commit 5962d3f

File tree

12 files changed

+4933
-4194
lines changed

12 files changed

+4933
-4194
lines changed

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17.8.0
1+
20.8.0

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,3 @@ const CustomInput = ({ form, name }) => {
174174
```
175175

176176
Simply pass the object path as the `name` prop and this library will generate the object for you. But not only that, validate it against the provided schema.
177-
178-
The fact that we `unflatten` the state makes it incredibly easy to make your form generate the exact object shape that you want, instead of needing to do it manually yourself.

package.json

+9-6
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,26 @@
3737
},
3838
"homepage": "https://github.com/agjs/use-ajv-form#readme",
3939
"peerDependencies": {
40-
"react": ">= 16.8.0",
41-
"react-dom": ">= 16.8.0"
40+
"react": ">= 18.2.0",
41+
"react-dom": ">= 18.2.0"
4242
},
4343
"dependencies": {
44+
"@types/ajv": "^1.0.0",
45+
"ajv": "^8.12.0",
46+
"ajv-errors": "^3.0.0",
47+
"ajv-formats": "^2.1.1",
48+
"programmer-network-ajv": "github:Programmer-Network/Programmer-Network-AJV",
4449
"prop-types": "^15.7.2"
4550
},
4651
"devDependencies": {
4752
"@testing-library/react-hooks": "^3.4.1",
4853
"@types/jest": "^26.0.7",
49-
"@types/react": "^16.3.13",
50-
"@types/react-dom": "^16.0.5",
54+
"@types/react": "^18.2.37",
55+
"@types/react-dom": "^18.2.15",
5156
"babel-core": "^6.26.3",
5257
"babel-runtime": "^6.26.0",
5358
"eslint-plugin-react-hooks": "^4.0.8",
5459
"jest": "^26.1.0",
55-
"react": "^16.12.0",
56-
"react-dom": "^16.12.0",
5760
"react-test-renderer": "^16.13.1",
5861
"rollup": "^1.29.0",
5962
"rollup-plugin-typescript2": "^0.25.3",

0 commit comments

Comments
 (0)