From e10889242692579a978459c53bc6aa7c56993cf0 Mon Sep 17 00:00:00 2001 From: erenkurnaz Date: Thu, 5 Mar 2026 12:48:08 +0300 Subject: [PATCH 1/5] fix(live-previews): add missing @refinedev/rest dependency --- packages/live-previews/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/live-previews/package.json b/packages/live-previews/package.json index 181c7793b3b7d..b236d839b2d60 100644 --- a/packages/live-previews/package.json +++ b/packages/live-previews/package.json @@ -41,6 +41,7 @@ "@refinedev/react-hook-form": "^5.0.0", "@refinedev/react-router": "^2.0.0", "@refinedev/react-table": "^6.0.0", + "@refinedev/rest": "^2.1.0", "@refinedev/simple-rest": "^6.0.0", "@refinedev/strapi-graphql": "^6.0.4", "@refinedev/strapi-v4": "^7.0.0", From 98b36384aa2e42f537c6775dc81d74a97e569aac Mon Sep 17 00:00:00 2001 From: erenkurnaz Date: Thu, 5 Mar 2026 12:52:58 +0300 Subject: [PATCH 2/5] chore: update lockfile --- pnpm-lock.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e9823a835ce7a..c550b30726eb7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12701,6 +12701,9 @@ importers: '@refinedev/react-table': specifier: ^6.0.0 version: link:../react-table + '@refinedev/rest': + specifier: ^2.1.0 + version: link:../rest '@refinedev/simple-rest': specifier: ^6.0.0 version: link:../simple-rest @@ -46992,7 +46995,7 @@ snapshots: '@typescript-eslint/parser': 5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3) eslint: 9.35.0(jiti@2.5.1) eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.35.0(jiti@2.5.1)) eslint-plugin-import: 2.32.0(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-typescript@3.10.1)(eslint@9.35.0(jiti@2.5.1)) eslint-plugin-jsx-a11y: 6.10.2(eslint@9.35.0(jiti@2.5.1)) eslint-plugin-react: 7.37.5(eslint@9.35.0(jiti@2.5.1)) @@ -47043,7 +47046,7 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)): + eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.35.0(jiti@2.5.1)): dependencies: '@nolyfill/is-core-module': 1.0.39 debug: 4.4.3(supports-color@8.1.1) @@ -47058,14 +47061,14 @@ snapshots: transitivePeerDependencies: - supports-color - eslint-module-utils@2.12.1(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)): + eslint-module-utils@2.12.1(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)): dependencies: debug: 3.2.7(supports-color@8.1.1) optionalDependencies: '@typescript-eslint/parser': 5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3) eslint: 9.35.0(jiti@2.5.1) eslint-import-resolver-node: 0.3.9 - eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)) + eslint-import-resolver-typescript: 3.10.1(eslint-plugin-import@2.32.0)(eslint@9.35.0(jiti@2.5.1)) transitivePeerDependencies: - supports-color @@ -47162,7 +47165,7 @@ snapshots: doctrine: 2.1.0 eslint: 9.35.0(jiti@2.5.1) eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.12.1(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)) + eslint-module-utils: 2.12.1(@typescript-eslint/parser@5.48.0(eslint@9.35.0(jiti@2.5.1))(typescript@5.8.3))(eslint-import-resolver-node@0.3.9)(eslint-import-resolver-typescript@3.10.1(eslint-plugin-import@2.32.0)(eslint@9.35.0(jiti@2.5.1)))(eslint@9.35.0(jiti@2.5.1)) hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 From 7b412739697dfe4004fb4c214106eccc9f77df37 Mon Sep 17 00:00:00 2001 From: erenkurnaz Date: Thu, 5 Mar 2026 13:09:09 +0300 Subject: [PATCH 3/5] fix(live-previews): add @refinedev/rest to package and scope maps --- packages/live-previews/src/scope/map.tsx | 2 ++ packages/live-previews/src/scope/refine-rest.tsx | 7 +++++++ 2 files changed, 9 insertions(+) create mode 100644 packages/live-previews/src/scope/refine-rest.tsx diff --git a/packages/live-previews/src/scope/map.tsx b/packages/live-previews/src/scope/map.tsx index 136d6e368b2a1..97557bceb369f 100644 --- a/packages/live-previews/src/scope/map.tsx +++ b/packages/live-previews/src/scope/map.tsx @@ -8,6 +8,7 @@ export const packageMap: Record = { "@refinedev/mantine": "RefineMantine", "@refinedev/chakra-ui": "RefineChakra", "@refinedev/simple-rest": "RefineSimpleRest", + "@refinedev/rest": "RefineRest", "@refinedev/react-hook-form": "RefineReactHookForm", "@refinedev/react-table": "RefineReactTable", "@refinedev/inferencer/antd": "RefineAntdInferencer", @@ -66,4 +67,5 @@ export const packageScopeMap: Record = { "@mui/material": /@mui\/material\/(.*)/, "@mui/icons-material": /@mui\/icons-material\/(.*)/, "@mui/x-data-grid": /@mui\/x-data-grid\/(.*)/, + "@refinedev/rest": /@refinedev\/rest\/(.*)/, }; diff --git a/packages/live-previews/src/scope/refine-rest.tsx b/packages/live-previews/src/scope/refine-rest.tsx new file mode 100644 index 0000000000000..0acad3c0e6966 --- /dev/null +++ b/packages/live-previews/src/scope/refine-rest.tsx @@ -0,0 +1,7 @@ +import * as RefineRest from "@refinedev/rest"; + +const RefineRestScope = { + RefineRest, +}; + +export default RefineRestScope; From 5fec1d4bd3b182d2ff8cd3d9ce2c57b5be66a4a4 Mon Sep 17 00:00:00 2001 From: erenkurnaz Date: Thu, 5 Mar 2026 13:19:09 +0300 Subject: [PATCH 4/5] fix(scope): add @refinedev/rest to common exports --- packages/live-previews/src/scope/common.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/live-previews/src/scope/common.tsx b/packages/live-previews/src/scope/common.tsx index f52a973449c8b..647a64c5ff103 100644 --- a/packages/live-previews/src/scope/common.tsx +++ b/packages/live-previews/src/scope/common.tsx @@ -3,6 +3,7 @@ import * as ReactRouter from "react-router"; import type * as RefineCoreTypes from "@refinedev/core"; import * as RefineReactRouter from "@refinedev/react-router"; import * as RefineSimpleRest from "@refinedev/simple-rest"; +import * as RefineRest from "@refinedev/rest"; import * as RefineReactHookForm from "@refinedev/react-hook-form"; import * as RefineReactTable from "@refinedev/react-table"; import * as ReactHookForm from "react-hook-form"; @@ -151,6 +152,7 @@ export const RefineCommonScope = { }, // Data RefineSimpleRest, + RefineRest, // Utilities setInitialRoutes, setRefineProps, From 9ebaab207f62ab43bd462c0a576f3c094f0bc425 Mon Sep 17 00:00:00 2001 From: erenkurnaz Date: Thu, 5 Mar 2026 13:56:03 +0300 Subject: [PATCH 5/5] fix: update @refinedev/rest import paths to use simple-rest --- packages/live-previews/src/scope/common.tsx | 2 +- packages/live-previews/src/scope/map.tsx | 4 ++-- packages/live-previews/src/scope/refine-rest.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/live-previews/src/scope/common.tsx b/packages/live-previews/src/scope/common.tsx index 647a64c5ff103..fb1059be7e719 100644 --- a/packages/live-previews/src/scope/common.tsx +++ b/packages/live-previews/src/scope/common.tsx @@ -3,7 +3,7 @@ import * as ReactRouter from "react-router"; import type * as RefineCoreTypes from "@refinedev/core"; import * as RefineReactRouter from "@refinedev/react-router"; import * as RefineSimpleRest from "@refinedev/simple-rest"; -import * as RefineRest from "@refinedev/rest"; +import * as RefineRest from "@refinedev/rest/simple-rest"; import * as RefineReactHookForm from "@refinedev/react-hook-form"; import * as RefineReactTable from "@refinedev/react-table"; import * as ReactHookForm from "react-hook-form"; diff --git a/packages/live-previews/src/scope/map.tsx b/packages/live-previews/src/scope/map.tsx index 97557bceb369f..92e28d9c94f12 100644 --- a/packages/live-previews/src/scope/map.tsx +++ b/packages/live-previews/src/scope/map.tsx @@ -8,7 +8,7 @@ export const packageMap: Record = { "@refinedev/mantine": "RefineMantine", "@refinedev/chakra-ui": "RefineChakra", "@refinedev/simple-rest": "RefineSimpleRest", - "@refinedev/rest": "RefineRest", + "@refinedev/rest/simple-rest": "RefineRest", "@refinedev/react-hook-form": "RefineReactHookForm", "@refinedev/react-table": "RefineReactTable", "@refinedev/inferencer/antd": "RefineAntdInferencer", @@ -67,5 +67,5 @@ export const packageScopeMap: Record = { "@mui/material": /@mui\/material\/(.*)/, "@mui/icons-material": /@mui\/icons-material\/(.*)/, "@mui/x-data-grid": /@mui\/x-data-grid\/(.*)/, - "@refinedev/rest": /@refinedev\/rest\/(.*)/, + "@refinedev/rest/simple-rest": /@refinedev\/rest\/simple-rest\/(.*)/, }; diff --git a/packages/live-previews/src/scope/refine-rest.tsx b/packages/live-previews/src/scope/refine-rest.tsx index 0acad3c0e6966..c91ae9f71b3cf 100644 --- a/packages/live-previews/src/scope/refine-rest.tsx +++ b/packages/live-previews/src/scope/refine-rest.tsx @@ -1,4 +1,4 @@ -import * as RefineRest from "@refinedev/rest"; +import * as RefineRest from "@refinedev/rest/simple-rest"; const RefineRestScope = { RefineRest,