@refinedev/core 4.57.10 → 4.58.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 +25 -0
- package/README.md +1 -1
- package/dist/hooks/data/useCreate.d.cts +1 -1
- package/dist/hooks/data/useCreate.d.mts +1 -1
- package/dist/hooks/data/useCreate.d.mts.map +1 -1
- package/dist/hooks/data/useCreate.d.ts +1 -1
- package/dist/hooks/data/useCreateMany.d.cts +1 -1
- package/dist/hooks/data/useCreateMany.d.mts +1 -1
- package/dist/hooks/data/useCreateMany.d.mts.map +1 -1
- package/dist/hooks/data/useCreateMany.d.ts +1 -1
- package/dist/hooks/data/useCustomMutation.d.cts +1 -1
- package/dist/hooks/data/useCustomMutation.d.mts +1 -1
- package/dist/hooks/data/useCustomMutation.d.mts.map +1 -1
- package/dist/hooks/data/useCustomMutation.d.ts +1 -1
- package/dist/hooks/data/useDelete.d.cts +1 -1
- package/dist/hooks/data/useDelete.d.mts +1 -1
- package/dist/hooks/data/useDelete.d.mts.map +1 -1
- package/dist/hooks/data/useDelete.d.ts +1 -1
- package/dist/hooks/data/useDeleteMany.d.cts +1 -1
- package/dist/hooks/data/useDeleteMany.d.mts +1 -1
- package/dist/hooks/data/useDeleteMany.d.mts.map +1 -1
- package/dist/hooks/data/useDeleteMany.d.ts +1 -1
- package/dist/hooks/data/useUpdate.d.cts +1 -1
- package/dist/hooks/data/useUpdate.d.mts +1 -1
- package/dist/hooks/data/useUpdate.d.mts.map +1 -1
- package/dist/hooks/data/useUpdate.d.ts +1 -1
- package/dist/hooks/data/useUpdateMany.d.cts +1 -1
- package/dist/hooks/data/useUpdateMany.d.mts +1 -1
- package/dist/hooks/data/useUpdateMany.d.mts.map +1 -1
- package/dist/hooks/data/useUpdateMany.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/hooks/data/useCreate.ts +2 -2
- package/src/hooks/data/useCreateMany.ts +1 -1
- package/src/hooks/data/useCustomMutation.ts +1 -1
- package/src/hooks/data/useDelete.ts +3 -3
- package/src/hooks/data/useDeleteMany.ts +1 -1
- package/src/hooks/data/useUpdate.ts +3 -3
- package/src/hooks/data/useUpdateMany.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refinedev/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.58.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.",
|
|
6
6
|
"repository": {
|
|
@@ -96,7 +96,7 @@ export type UseCreateProps<
|
|
|
96
96
|
UseCreateParams<TData, TError, TVariables>;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* `useCreate` is a modified version of `react-query`'s {@link https://
|
|
99
|
+
* `useCreate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
100
100
|
*
|
|
101
101
|
* It uses `create` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
102
102
|
*
|
|
@@ -257,9 +257,9 @@ export const useCreate = <
|
|
|
257
257
|
resource: resource.name,
|
|
258
258
|
data: values,
|
|
259
259
|
meta: {
|
|
260
|
+
...rest,
|
|
260
261
|
dataProviderName,
|
|
261
262
|
id: data?.data?.id ?? undefined,
|
|
262
|
-
...rest,
|
|
263
263
|
},
|
|
264
264
|
});
|
|
265
265
|
|
|
@@ -75,7 +75,7 @@ export type UseCreateManyProps<
|
|
|
75
75
|
UseCreateManyParams<TData, TError, TVariables>;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* `useCreateMany` is a modified version of `react-query`'s {@link https://
|
|
78
|
+
* `useCreateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple create mutations.
|
|
79
79
|
*
|
|
80
80
|
* It uses `createMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
81
81
|
*
|
|
@@ -82,7 +82,7 @@ export type UseCustomMutationProps<
|
|
|
82
82
|
} & UseLoadingOvertimeOptionsProps;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* `useCustomMutation` is a modified version of `react-query`'s {@link https://
|
|
85
|
+
* `useCustomMutation` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for create mutations.
|
|
86
86
|
*
|
|
87
87
|
* It uses the `custom` method from the `dataProvider` which is passed to `<Refine>`.
|
|
88
88
|
*
|
|
@@ -121,7 +121,7 @@ export type UseDeleteProps<
|
|
|
121
121
|
} & UseLoadingOvertimeOptionsProps;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* `useDelete` is a modified version of `react-query`'s {@link https://
|
|
124
|
+
* `useDelete` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for delete mutations.
|
|
125
125
|
*
|
|
126
126
|
* It uses `deleteOne` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
127
127
|
*
|
|
@@ -436,9 +436,9 @@ export const useDelete = <
|
|
|
436
436
|
action: "delete",
|
|
437
437
|
resource: resource.name,
|
|
438
438
|
meta: {
|
|
439
|
-
id,
|
|
440
|
-
dataProviderName,
|
|
441
439
|
...rest,
|
|
440
|
+
dataProviderName,
|
|
441
|
+
id,
|
|
442
442
|
},
|
|
443
443
|
});
|
|
444
444
|
|
|
@@ -122,7 +122,7 @@ export type UseDeleteManyProps<
|
|
|
122
122
|
} & UseLoadingOvertimeOptionsProps;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* `useDeleteMany` is a modified version of `react-query`'s {@link https://
|
|
125
|
+
* `useDeleteMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple delete mutations.
|
|
126
126
|
*
|
|
127
127
|
* It uses `deleteMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
128
128
|
*
|
|
@@ -163,7 +163,7 @@ export type UseUpdateProps<
|
|
|
163
163
|
UpdateParams<TData, TError, TVariables>;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
* `useUpdate` is a modified version of `react-query`'s {@link https://
|
|
166
|
+
* `useUpdate` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for update mutations.
|
|
167
167
|
*
|
|
168
168
|
* It uses `update` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
169
169
|
*
|
|
@@ -571,9 +571,9 @@ export const useUpdate = <
|
|
|
571
571
|
data: values,
|
|
572
572
|
previousData,
|
|
573
573
|
meta: {
|
|
574
|
-
id,
|
|
575
|
-
dataProviderName,
|
|
576
574
|
...rest,
|
|
575
|
+
dataProviderName,
|
|
576
|
+
id,
|
|
577
577
|
},
|
|
578
578
|
});
|
|
579
579
|
|
|
@@ -165,7 +165,7 @@ export type UseUpdateManyProps<
|
|
|
165
165
|
UpdateManyParams<TData, TError, TVariables>;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
|
-
* `useUpdateMany` is a modified version of `react-query`'s {@link https://
|
|
168
|
+
* `useUpdateMany` is a modified version of `react-query`'s {@link https://tanstack.com/query/v4/docs/framework/react/reference/useMutation `useMutation`} for multiple update mutations.
|
|
169
169
|
*
|
|
170
170
|
* It uses `updateMany` method as mutation function from the `dataProvider` which is passed to `<Refine>`.
|
|
171
171
|
*
|
|
@@ -611,9 +611,9 @@ export const useUpdateMany = <
|
|
|
611
611
|
data: values,
|
|
612
612
|
previousData,
|
|
613
613
|
meta: {
|
|
614
|
-
ids,
|
|
615
|
-
dataProviderName,
|
|
616
614
|
...rest,
|
|
615
|
+
dataProviderName,
|
|
616
|
+
ids,
|
|
617
617
|
},
|
|
618
618
|
});
|
|
619
619
|
|