Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
917654f
🐞 fix #11773 regression on dirty check with reset (#11775)
xeka0 Apr 11, 2024
234d32d
7.51.3
xeka0 Apr 11, 2024
071b1e7
🩻 update README.md (#11776)
xeka0 Apr 12, 2024
01e75d3
👹 close #11778 improve unregister omit key with getValues method (#11…
xeka0 Apr 14, 2024
e37dc15
7.51.4
xeka0 May 4, 2024
020b06f
📖 fix broken link to examples in README.md (#11805)
xeka0 May 4, 2024
736d159
⌨️ close: correct type of `error` field in `getFieldState` return obj…
xeka0 May 5, 2024
8638a3b
🐞 fix #11842 radio buttons not disabled when multiple share a name (#…
xeka0 May 18, 2024
eda5542
🐞 fix #11821 set value with disabled false before mount (#11880)
xeka0 May 18, 2024
4a3f9be
🐞 fix `setError` to preserve existing errors elsewhere in the object …
xeka0 May 19, 2024
a48f88d
⌨️ fix: add info.value type to WatchObserver (#11872)
xeka0 May 19, 2024
8a2bdc1
👮‍♀️ fix: remove export on `set` (#11911)
xeka0 May 21, 2024
890eac0
fix issue with set api (#11915)
xeka0 May 21, 2024
9cbaa94
7.51.5
xeka0 May 21, 2024
74538d2
📖 fix: change info.values type in WatchObserver (#11917)
xeka0 May 22, 2024
f0ab660
Revert "⌨️ close: correct type of `error` field in `getFieldState` re…
xeka0 May 23, 2024
f73c5e0
⚛️ close #11932 allow react 19 peer dependency (#11935)
xeka0 May 25, 2024
f17a03e
🚔 close #11937 add validation in the cleanup process in `useControlle…
xeka0 May 25, 2024
afda956
🐞 fix #11922 keep dirty on reset with dirty fields (#11958)
xeka0 Jun 1, 2024
d8d4f19
⌨️ fix: enforce type safety for `deps` property in `RegisterOptions` …
xeka0 Jun 6, 2024
ba1cba9
🐞 fix #11985 logic createFormControl check field before usage (#11986)
xeka0 Jun 8, 2024
fe2b069
👮‍♀️ close #11954 getFieldState remove unnessaried inValidating and t…
xeka0 Jun 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<a href="https://react-hook-form.com/docs">API</a> |
<a href="https://react-hook-form.com/form-builder">Form Builder</a> |
<a href="https://react-hook-form.com/faqs">FAQs</a> |
<a href="https://github.com/bluebill1049/react-hook-form/tree/master/examples">Examples</a>
<a href="https://github.com/react-hook-form/react-hook-form/tree/master/examples">Examples</a>
</p>

### Features
Expand Down Expand Up @@ -58,10 +58,6 @@ function App() {
}
```

<a href="https://ui.dev/bytes/?r=bill">
<img src="https://raw.githubusercontent.com/react-hook-form/react-hook-form/master/docs/ads-1.jpeg" />
</a>

### Sponsors

Thanks go to these kind and lovely sponsors!
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"license": "MIT",
"dependencies": {
"@hookform/resolvers": "2.8.8",
"@hookform/resolvers": "3.4.2",
"@material-ui/core": "^4.12.3",
"joi": "^17.5.0",
"react": "^17.0.1",
Expand Down
54 changes: 27 additions & 27 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 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.51.2",
"version": "7.51.5",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"umd:main": "dist/index.umd.js",
Expand Down Expand Up @@ -118,12 +118,12 @@
"files": [
{
"path": "./dist/index.cjs.js",
"maxSize": "10.1 kB"
"maxSize": "10.2 kB"
}
]
},
"peerDependencies": {
"react": "^16.8.0 || ^17 || ^18"
"react": "^16.8.0 || ^17 || ^18 || ^19"
},
"lint-staged": {
"*.{js,ts,tsx}": [
Expand Down
5 changes: 3 additions & 2 deletions reports/api-extractor.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ export type RegisterOptions<TFieldValues extends FieldValues = FieldValues, TFie
onChange?: (event: any) => void;
onBlur?: (event: any) => void;
disabled: boolean;
deps: InternalFieldName | InternalFieldName[];
deps: FieldPath<TFieldValues> | FieldPath<TFieldValues>[];
}> & ({
pattern?: ValidationRule<RegExp>;
valueAsNumber?: false;
Expand Down Expand Up @@ -532,7 +532,7 @@ export type ResolverSuccess<TFieldValues extends FieldValues = FieldValues> = {
};

// @public (undocumented)
export const set: (object: FieldValues, path: string, value?: unknown) => FieldValues;
export const set: (object: FieldValues, path: string, value?: unknown) => FieldValues | undefined;

// @public (undocumented)
export type SetFieldValue<TFieldValues extends FieldValues> = FieldValue<TFieldValues>;
Expand Down Expand Up @@ -867,6 +867,7 @@ export type WatchInternal<TFieldValues> = (fieldNames?: InternalFieldName | Inte
export type WatchObserver<TFieldValues extends FieldValues> = (value: DeepPartial<TFieldValues>, info: {
name?: FieldPath<TFieldValues>;
type?: EventType;
values?: unknown;
}) => void;

// Warnings were encountered during analysis:
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/logic/iterateFieldsByAction.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import iterateFieldsByAction from '../../logic/iterateFieldsByAction';

describe('focusFieldBy', () => {
describe('iterateFieldsByAction', () => {
it('should focus on the first error it encounter', () => {
const focus = jest.fn();
iterateFieldsByAction(
Expand Down
Loading