@refinedev/core 4.57.5 → 4.57.9

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/definitions/helpers/generateDocumentTitle/index.d.cts +1 -1
  3. package/dist/definitions/helpers/generateDocumentTitle/index.d.cts.map +1 -1
  4. package/dist/definitions/helpers/generateDocumentTitle/index.d.mts +1 -1
  5. package/dist/definitions/helpers/generateDocumentTitle/index.d.mts.map +1 -1
  6. package/dist/definitions/helpers/generateDocumentTitle/index.d.ts +1 -1
  7. package/dist/definitions/helpers/generateDocumentTitle/index.d.ts.map +1 -1
  8. package/dist/definitions/helpers/safe-translate/index.d.cts +1 -1
  9. package/dist/definitions/helpers/safe-translate/index.d.cts.map +1 -1
  10. package/dist/definitions/helpers/safe-translate/index.d.mts +1 -1
  11. package/dist/definitions/helpers/safe-translate/index.d.mts.map +1 -1
  12. package/dist/definitions/helpers/safe-translate/index.d.ts +1 -1
  13. package/dist/definitions/helpers/safe-translate/index.d.ts.map +1 -1
  14. package/dist/hooks/data/useDelete.d.cts +1 -1
  15. package/dist/hooks/data/useDelete.d.mts +1 -1
  16. package/dist/hooks/data/useDelete.d.mts.map +1 -1
  17. package/dist/hooks/data/useDelete.d.ts +1 -1
  18. package/dist/hooks/data/useDeleteMany.d.cts +1 -1
  19. package/dist/hooks/data/useDeleteMany.d.mts +1 -1
  20. package/dist/hooks/data/useDeleteMany.d.mts.map +1 -1
  21. package/dist/hooks/data/useDeleteMany.d.ts +1 -1
  22. package/dist/hooks/data/useUpdate.d.cts +1 -1
  23. package/dist/hooks/data/useUpdate.d.mts +1 -1
  24. package/dist/hooks/data/useUpdate.d.mts.map +1 -1
  25. package/dist/hooks/data/useUpdate.d.ts +1 -1
  26. package/dist/hooks/data/useUpdateMany.d.cts +1 -1
  27. package/dist/hooks/data/useUpdateMany.d.mts +1 -1
  28. package/dist/hooks/data/useUpdateMany.d.mts.map +1 -1
  29. package/dist/hooks/data/useUpdateMany.d.ts +1 -1
  30. package/dist/hooks/form/types.d.cts +1 -1
  31. package/dist/hooks/form/types.d.mts +1 -1
  32. package/dist/hooks/form/types.d.mts.map +1 -1
  33. package/dist/hooks/form/types.d.ts +1 -1
  34. package/dist/index.cjs +2 -2
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.mjs +2 -2
  37. package/dist/index.mjs.map +1 -1
  38. package/package.json +1 -1
  39. package/src/definitions/helpers/generateDocumentTitle/index.ts +1 -1
  40. package/src/definitions/helpers/safe-translate/index.ts +1 -1
  41. package/src/hooks/auth/useRegister/index.ts +2 -2
  42. package/src/hooks/data/useDelete.ts +1 -1
  43. package/src/hooks/data/useDeleteMany.ts +1 -1
  44. package/src/hooks/data/useUpdate.ts +1 -1
  45. package/src/hooks/data/useUpdateMany.ts +1 -1
  46. package/src/hooks/form/types.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,61 @@
1
1
  # @refinedev/core
2
2
 
3
+ ## 4.57.9
4
+
5
+ ### Patch Changes
6
+
7
+ 📢 **Refine Community Release** 📢
8
+
9
+ - fix: wrong JSDoc links in components
10
+
11
+ ## 4.57.8
12
+
13
+ ### Patch Changes
14
+
15
+ ⚡ **Refine Enterprise Release** ⚡
16
+
17
+ - [#6728](https://github.com/refinedev/refine/pull/6728) [`1663501c9c9f37b98434af83afd8d0fc41d27af2`](https://github.com/refinedev/refine/commit/1663501c9c9f37b98434af83afd8d0fc41d27af2) Thanks [@alicanerdurmaz](https://github.com/alicanerdurmaz)! - fix: wrong JSDoc links in components
18
+
19
+ ## 4.57.7
20
+
21
+ ### Patch Changes
22
+
23
+ 📢 **Refine Community Release** 📢
24
+
25
+ - Move invalidation in `useRegister` to be called only on success.
26
+
27
+ [Resolves #6639](https://github.com/refinedev/refine/issues/6639)
28
+
29
+ 📢 **Refine Community Release** 📢
30
+
31
+ - fix(types): remove path aliases from type imports
32
+
33
+ Since typescript doesn't resolve and replace path aliases, using them for the type imports will cause `d.ts` files to reference unresolvable paths and types.
34
+
35
+ While this doesn't break everything, it breaks the types in places where the path aliases are used for type imports.
36
+
37
+ This change removes the path aliases from the type imports and replaces them with relative imports.
38
+
39
+ ## 4.57.6
40
+
41
+ ### Patch Changes
42
+
43
+ ⚡ **Refine Enterprise Release** ⚡
44
+
45
+ - [#6658](https://github.com/refinedev/refine/pull/6658) [`91aaf75f04e6e6434196ece9a52b024c70d29df4`](https://github.com/refinedev/refine/commit/91aaf75f04e6e6434196ece9a52b024c70d29df4) Thanks [@arndom](https://github.com/arndom)! - Move invalidation in `useRegister` to be called only on success.
46
+
47
+ [Resolves #6639](https://github.com/refinedev/refine/issues/6639)
48
+
49
+ ⚡ **Refine Enterprise Release** ⚡
50
+
51
+ - [#6683](https://github.com/refinedev/refine/pull/6683) [`a12a0821e3c573386c2a8eea4ac1582cc46dd26d`](https://github.com/refinedev/refine/commit/a12a0821e3c573386c2a8eea4ac1582cc46dd26d) Thanks [@aliemir](https://github.com/aliemir)! - fix(types): remove path aliases from type imports
52
+
53
+ Since typescript doesn't resolve and replace path aliases, using them for the type imports will cause `d.ts` files to reference unresolvable paths and types.
54
+
55
+ While this doesn't break everything, it breaks the types in places where the path aliases are used for type imports.
56
+
57
+ This change removes the path aliases from the type imports and replaces them with relative imports.
58
+
3
59
  ## 4.57.5
4
60
 
5
61
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  import type { IResourceItem } from "../../../contexts/resource/types";
3
3
  /**
4
4
  * Generates document title for the given resource and action.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/generateDocumentTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EAC1C,QAAQ,CAAC,EAAE,aAAa,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,UA0CtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/generateDocumentTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EAC1C,QAAQ,CAAC,EAAE,aAAa,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,UA0CtB"}
@@ -1,4 +1,4 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  import type { IResourceItem } from "../../../contexts/resource/types";
3
3
  /**
4
4
  * Generates document title for the given resource and action.
@@ -1,4 +1,4 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  import type { IResourceItem } from "../../../contexts/resource/types";
3
3
  /**
4
4
  * Generates document title for the given resource and action.
@@ -1,4 +1,4 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  import type { IResourceItem } from "../../../contexts/resource/types";
3
3
  /**
4
4
  * Generates document title for the given resource and action.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/generateDocumentTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EAC1C,QAAQ,CAAC,EAAE,aAAa,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,UA0CtB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/generateDocumentTitle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,EAC1C,QAAQ,CAAC,EAAE,aAAa,EACxB,MAAM,CAAC,EAAE,MAAM,EACf,EAAE,CAAC,EAAE,MAAM,EACX,YAAY,CAAC,EAAE,MAAM,UA0CtB"}
@@ -1,3 +1,3 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  export declare const safeTranslate: (translate: ReturnType<typeof useTranslate>, key: string, defaultMessage?: string, options?: any) => string;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/safe-translate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,aAAa,cACb,WAAW,mBAAmB,CAAC,OACrC,MAAM,mBACM,MAAM,YACb,GAAG,WAad,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/safe-translate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,aAAa,cACb,WAAW,mBAAmB,CAAC,OACrC,MAAM,mBACM,MAAM,YACb,GAAG,WAad,CAAC"}
@@ -1,3 +1,3 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  export declare const safeTranslate: (translate: ReturnType<typeof useTranslate>, key: string, defaultMessage?: string, options?: any) => string;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  export declare const safeTranslate: (translate: ReturnType<typeof useTranslate>, key: string, defaultMessage?: string, options?: any) => string;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- import type { useTranslate } from "@hooks/i18n";
1
+ import type { useTranslate } from "../../../hooks/i18n";
2
2
  export declare const safeTranslate: (translate: ReturnType<typeof useTranslate>, key: string, defaultMessage?: string, options?: any) => string;
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/safe-translate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,eAAO,MAAM,aAAa,cACb,WAAW,mBAAmB,CAAC,OACrC,MAAM,mBACM,MAAM,YACb,GAAG,WAad,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/definitions/helpers/safe-translate/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,aAAa,cACb,WAAW,mBAAmB,CAAC,OACrC,MAAM,mBACM,MAAM,YACb,GAAG,WAad,CAAC"}
@@ -12,7 +12,7 @@ export type DeleteParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteManyParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteManyParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteManyParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -12,7 +12,7 @@ export type DeleteManyParams<TData, TError, TVariables> = {
12
12
  */
13
13
  resource: string;
14
14
  /**
15
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
15
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
16
16
  */
17
17
  mutationMode?: MutationMode;
18
18
  /**
@@ -18,7 +18,7 @@ export type UpdateParams<TData, TError, TVariables> = {
18
18
  */
19
19
  id?: BaseKey;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateParams<TData, TError, TVariables> = {
18
18
  */
19
19
  id?: BaseKey;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateParams<TData, TError, TVariables> = {
18
18
  */
19
19
  id?: BaseKey;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateParams<TData, TError, TVariables> = {
18
18
  */
19
19
  id?: BaseKey;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateManyParams<TData, TError, TVariables> = {
18
18
  */
19
19
  resource?: string;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateManyParams<TData, TError, TVariables> = {
18
18
  */
19
19
  resource?: string;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateManyParams<TData, TError, TVariables> = {
18
18
  */
19
19
  resource?: string;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -18,7 +18,7 @@ export type UpdateManyParams<TData, TError, TVariables> = {
18
18
  */
19
19
  resource?: string;
20
20
  /**
21
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
21
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
22
22
  */
23
23
  mutationMode?: MutationMode;
24
24
  /**
@@ -69,7 +69,7 @@ type ActionFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extend
69
69
  */
70
70
  mutationMeta?: MetaQuery;
71
71
  /**
72
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
72
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
73
73
  * @default `"pessimistic"*`
74
74
  */
75
75
  mutationMode?: MutationMode;
@@ -69,7 +69,7 @@ type ActionFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extend
69
69
  */
70
70
  mutationMeta?: MetaQuery;
71
71
  /**
72
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
72
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
73
73
  * @default `"pessimistic"*`
74
74
  */
75
75
  mutationMode?: MutationMode;
@@ -69,7 +69,7 @@ type ActionFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extend
69
69
  */
70
70
  mutationMeta?: MetaQuery;
71
71
  /**
72
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
72
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
73
73
  * @default `"pessimistic"*`
74
74
  */
75
75
  mutationMode?: MutationMode;
@@ -69,7 +69,7 @@ type ActionFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extend
69
69
  */
70
70
  mutationMeta?: MetaQuery;
71
71
  /**
72
- * [Determines when mutations are executed](/advanced-tutorials/mutation-mode.md)
72
+ * [Determines when mutations are executed](/docs/advanced-tutorials/mutation-mode/)
73
73
  * @default `"pessimistic"*`
74
74
  */
75
75
  mutationMode?: MutationMode;