Skip to content

Commit

Permalink
🌏 feature: support global error type #9746 (#9758)
Browse files Browse the repository at this point in the history
* πŸ›€οΈ keep track of traversed types to avoid self-referencing while constructing paths for a type (#9540)

* Keep track of traversed types to avoid self-referencing while constructing  paths for a type

* Ran api-extractor

* Addressed code review

* Impoved robustness of recursion avoidance and added tests

Co-authored-by: Beier (Bill) <bluebill1049@hotmail.com>

* πŸ‹πŸ»β€β™€οΈ reduced code with unset (#9575)

Co-authored-by: Beier (Bill) <bluebill1049@hotmail.com>

* ⌨️ fix type for setValue to only accept non `undefined` value (#9528)

* fix type for setValue to only accept non undefined value

* update api extrator

* update api extrator

* πŸ“” fix warning for setValue test case

* Revert "⌨️ fix type for setValue to only accept non `undefined` value (#9528)"

This reverts commit b3a33e7.

* πŸ“½ feature: `validate` function to include formValues (#9079)

* feature: validate function to include formValues

* update test cases

* update api contract

* update contract and fix tests

* update api extrator

* update test

* update api extrator

* improve handleSubmit function (#9688)

* improve handleSubmit function

* fix build error

* update deps

* revert change on clear errors state

* fix cypress tests

* 7.42.0-next.0

* 🌏 feature: support global error type

* support number type for status code

* update deps and api extrator

* fix type test

* support root error

* 7.43.0-next.0

Co-authored-by: Linn Dahlgren <hello@linn.lgbt>
Co-authored-by: Alex Liu <39984251+Mini-ghost@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 25, 2023
1 parent eeca249 commit af094a2
Show file tree
Hide file tree
Showing 9 changed files with 258 additions and 150 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-hook-form",
"description": "Performant, flexible and extensible forms library for React Hooks",
"version": "7.42.1",
"version": "7.43.0-next.0",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"umd:main": "dist/index.umd.js",
Expand Down Expand Up @@ -72,7 +72,7 @@
"@microsoft/api-extractor": "^7.33.7",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-node-resolve": "^14.1.0",
"@swc/core": "^1.3.24",
"@swc/core": "^1.3.25",
"@swc/jest": "^0.2.24",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
Expand All @@ -81,24 +81,24 @@
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.10",
"@types/testing-library__jest-dom": "^5.14.5",
"@typescript-eslint/eslint-plugin": "^5.47.1",
"@typescript-eslint/parser": "^5.47.1",
"@typescript-eslint/eslint-plugin": "^5.48.1",
"@typescript-eslint/parser": "^5.48.1",
"bundlewatch": "^0.3.3",
"cypress": "10.9.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.5.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^8.0.0",
"husky": "^8.0.2",
"husky": "^8.0.3",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-preview": "^0.3.1",
"jest-watch-typeahead": "^2.2.1",
"lint-staged": "^13.1.0",
"prettier": "^2.8.1",
"prettier": "^2.8.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-test-renderer": "^18.2.0",
Expand All @@ -108,7 +108,7 @@
"rollup-plugin-sourcemaps": "^0.6.3",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"tsd": "^0.24.1",
"tsd": "^0.25.0",
"typescript": "^4.9.4"
},
"bundlewatch": {
Expand Down
Loading

0 comments on commit af094a2

Please sign in to comment.