@refinedev/core 4.11.0 → 4.13.0
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/CHANGELOG.md +37 -0
- package/dist/components/gh-banner/index.d.ts +0 -1
- package/dist/components/gh-banner/index.d.ts.map +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/hooks/form/useForm.d.ts +18 -16
- package/dist/hooks/form/useForm.d.ts.map +1 -1
- package/dist/iife/index.js +5 -5
- package/dist/iife/index.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/form/useForm.ts +131 -93
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @pankod/refine-core
|
|
2
2
|
|
|
3
|
+
## 4.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#4241](https://github.com/refinedev/refine/pull/4241) [`fbe109b5a8b`](https://github.com/refinedev/refine/commit/fbe109b5a8ba8f5d870eab2d96b7477508bceec0) Thanks [@salihozdemir](https://github.com/salihozdemir)! - Added new generic types to the `useForm` hooks. Now you can pass the query types and the mutation types to the hook.
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { useForm } from "@refinedev/core";
|
|
11
|
+
|
|
12
|
+
useForm<
|
|
13
|
+
TQueryFnData,
|
|
14
|
+
TError,
|
|
15
|
+
TVariables,
|
|
16
|
+
TData,
|
|
17
|
+
TResponse,
|
|
18
|
+
TResponseError
|
|
19
|
+
>();
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 4.12.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- [#4194](https://github.com/refinedev/refine/pull/4194) [`8df15fe0e4e`](https://github.com/refinedev/refine/commit/8df15fe0e4e0fb2bb81102ed1e3a12a0a9532b80) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - feat: `sorters.mode` prop added to `useTable` and `useDataGrid` hooks. This prop handles the sorting mode of the table. It can be either `server` or `off`.
|
|
27
|
+
|
|
28
|
+
- **"off"**: `sorters` are not sent to the server. You can use the `sorters` value to sort the records on the client side.
|
|
29
|
+
- **"server"**: Sorting is done on the server side. Records will be fetched by using the `sorters` value.
|
|
30
|
+
|
|
31
|
+
feat:`filters.mode` prop added to `useTable` and `useDataGrid` hooks. This prop handles the filtering mode of the table. It can be either `server` or `off`.
|
|
32
|
+
|
|
33
|
+
- **"off"**: `filters` are not sent to the server. You can use the `filters` value to filter the records on the client side.
|
|
34
|
+
- **"server"**: Filtering is done on the server side. Records will be fetched by using the `filters` value.
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- [#4194](https://github.com/refinedev/refine/pull/4194) [`8df15fe0e4e`](https://github.com/refinedev/refine/commit/8df15fe0e4e0fb2bb81102ed1e3a12a0a9532b80) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - fix: `filters`, `sorters`, `current`, and, `pageSize` removed from `useMeta` returned object.
|
|
39
|
+
|
|
3
40
|
## 4.11.0
|
|
4
41
|
|
|
5
42
|
### Minor Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/gh-banner/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/gh-banner/index.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,mBA4ExB,CAAC"}
|