From 9385920c744b2b2720ee3d7ade25da78a048c0a9 Mon Sep 17 00:00:00 2001 From: Alican Erdurmaz Date: Wed, 31 Jul 2024 09:13:52 +0300 Subject: [PATCH] fix(codemod): changeset --- .changeset/grumpy-impalas-thank.md | 18 ------------------ .changeset/unlucky-fans-punch.md | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 18 deletions(-) create mode 100644 .changeset/unlucky-fans-punch.md diff --git a/.changeset/grumpy-impalas-thank.md b/.changeset/grumpy-impalas-thank.md index 1b1e6818bae4d..62dae0ca3d63e 100644 --- a/.changeset/grumpy-impalas-thank.md +++ b/.changeset/grumpy-impalas-thank.md @@ -1,21 +1,3 @@ ---- -"@refinedev/codemod": minor ---- - -feat: added `npx @refinedev/codemod@latest use-table-query-result` to automatically refactor `useTable`'s `tableQueryResult` to `tableQuery` #6163 - -```diff -- const { tableQueryResult } = useTable(); // or useDataGrid -+ const { tableQuery } = useTable(); -``` - -feat: added `npx @refinedev/codemod@latest use-simple-list-query-result` to automatically refactor `useSimpleList`'s `queryResult` to `query` #6163 - -```diff -- const { queryResult } = useSimpleList(); -+ const { query } = useSimpleList() -``` - feat: added `npx @refinedev/codemod@latest use-show-query-result` to automatically refactor `useShow`'s `queryResult` to `query` #6163 ```diff diff --git a/.changeset/unlucky-fans-punch.md b/.changeset/unlucky-fans-punch.md new file mode 100644 index 0000000000000..88edcedd4ef8a --- /dev/null +++ b/.changeset/unlucky-fans-punch.md @@ -0,0 +1,17 @@ +--- +"@refinedev/codemod": minor +--- + +feat: added `npx @refinedev/codemod@latest use-table-query-result` to automatically refactor `useTable`'s `tableQueryResult` to `tableQuery` #6163 + +```diff +- const { tableQueryResult } = useTable(); // or useDataGrid ++ const { tableQuery } = useTable(); +``` + +feat: added `npx @refinedev/codemod@latest use-simple-list-query-result` to automatically refactor `useSimpleList`'s `queryResult` to `query` #6163 + +```diff +- const { queryResult } = useSimpleList(); ++ const { query } = useSimpleList() +```