82 KiB
@refinedev/mantine
4.7.1
Patch Changes
-
#6445
4ff4335274d5689ec62127312695b76d692a125a
Thanks @alicanerdurmaz! - chore: update@ant-design/icons
version to match@refinedev/antd
.This is a patch release to update the
@ant-design/icons
version to match the@refinedev/antd
version. Previously@ant-design/icons
were pinned to5.0.1
version to avoid conflicts withReact@18
and@ant-design/pro-layout
packages. After5.4.0
these issues are resolved and we can safely update the version to latest range. -
Updated dependencies [
4ff4335274d5689ec62127312695b76d692a125a
,4ff4335274d5689ec62127312695b76d692a125a
,4ff4335274d5689ec62127312695b76d692a125a
,4ff4335274d5689ec62127312695b76d692a125a
,4ff4335274d5689ec62127312695b76d692a125a
]:- @refinedev/core@4.56.0
4.7.0
Minor Changes
-
#6161
ff975374efcc05220be4411218c2daf7c19b8995
Thanks @ritute! - feat(react-hook-form): update version constraint from^7.30.0
to^7.43.5
Update react-hook-form version to address runtime subscribe error
Patch Changes
-
#6174
2b73e40b0e18932f008842790065cdd386e9d270
Thanks @alicanerdurmaz! - feat: inferencer now usesquery
a instead of the deprecatedqueryResult
when generating code foruseShow
. #6173 -
#6164
8ed027eec66c41c444f168f4f52e6b51057bc498
Thanks @alicanerdurmaz! - feat: inferencer now usesquery
andmutation
instead of the deprecatedqueryResult
andmutationResult
when generating code foruseForm
. #6163 -
Updated dependencies [
603c73eb7d376fc2357a577f5921f844a8f444e4
,81703b62bafeb01a75290b99b3869ef96d04bd94
,292cebc5a70f19400793292b79d1400fec114591
,1f7976bd32da311367945370efccd7d9c9b102a7
,7e71f12b81954fd3a59678d7fcccd7b557879a94
,7e71f12b81954fd3a59678d7fcccd7b557879a94
,4967a51944c139d102fcfc04ada5a42c725ed7c2
,8ed027eec66c41c444f168f4f52e6b51057bc498
,7e71f12b81954fd3a59678d7fcccd7b557879a94
,2b73e40b0e18932f008842790065cdd386e9d270
,7e71f12b81954fd3a59678d7fcccd7b557879a94
,fa2d7a4554da2d5fb2432a011941f9c157b59aba
,8ed027eec66c41c444f168f4f52e6b51057bc498
,61aa3464df0d95c30839726f455ed43e6854730b
,7e71f12b81954fd3a59678d7fcccd7b557879a94
]:- @refinedev/core@4.54.0
4.6.6
Patch Changes
-
#6099
ba8117f6060253dc1d589d69acba79d7c89e94c6
Thanks @BatuhanW! - chore: remove graphql-tag from peer dependencies. fixes #6100 -
#6052
50d21076928ca738ec54cc5bcd17fad2683653dd
Thanks @aliemir! - fix(inferencer): broken lodash import in bundleESM bundle of
@refinedev/inferencer
was broken due to incorrect lodash import. Import has been replaced with subdirectory import to get handled properly in the bundling process. -
Updated dependencies [
853bef97ed7baf59e74c98fc54c0ed11624fb491
,b86648f42cd849a506e4c32d740de26b72681f72
,4265ae2509f79af9dbca8d52daf5c2f1b4a50a51
,b516c18b828ba8823561d0fefc4afe02b45ce332
]:- @refinedev/core@4.53.0
4.6.4
Patch Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - lock theant-design/icons
version to5.0.1
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - chore: addedtype
qualifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
-
Updated dependencies [
6bd14228760d3e1e205ea9248e427f9afa2ec046
,6bd14228760d3e1e205ea9248e427f9afa2ec046
,6bd14228760d3e1e205ea9248e427f9afa2ec046
,6bd14228760d3e1e205ea9248e427f9afa2ec046
,6bd14228760d3e1e205ea9248e427f9afa2ec046
,6bd14228760d3e1e205ea9248e427f9afa2ec046
]:- @refinedev/core@4.51.0
4.6.3
Patch Changes
-
#5945
cff950ba8b66143f5c08c3ef9f4cd112a9dc7448
Thanks @aliemir! - lock theant-design/icons
version to5.0.1
-
#5945
90930b381d8d369c63bc59beedf69c391875166d
Thanks @aliemir! - chore: addedtype
qualifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
-
Updated dependencies [
a39f1952554120893ea83db904037917fc293dc6
,208f77177f9821ee1860ffe031e6b2a9645d1bb6
,903ea231538b00ce02ddc9394c72848ec1e90772
,84cac61b84ab872394424ebf358eeb380f40121d
,4cc74478cbec8caa3023a50ce62f1d5b2f7158a5
,90930b381d8d369c63bc59beedf69c391875166d
]:- @refinedev/core@4.50.0
4.6.2
Patch Changes
-
#5928
db9756e7908
Thanks @aliemir! - fix: type errors on typescript <5Due to the changes in #5881, typescript users below version 5 are facing type errors. This PR fixes the type errors by updating the file extensions required by the
d.mts
declaration files to provide a compatible declarations for both typescript 4 and 5 users. -
Updated dependencies [
db9756e7908
]:- @refinedev/core@4.49.2
4.6.1
Patch Changes
-
#5887
113c1337bf0
Thanks @aliemir! - chore: remove version lock from @ant-design/icons 5.0.1 to ^5.0.1 -
#5836
cc6285ddf96
Thanks @aliemir! - fix: inferencer now should work with ESM buildsFixed the issue with
prism-react-renderer
theme imports not being resolved correctly in ESM builds. -
#5881
ba719f6ea26
Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions -
Updated dependencies [
1c9a95f22ab
,0a76576da0f
,8d2dd4376f6
,1c9a95f22ab
,ba719f6ea26
,9a0c1c8414a
]:- @refinedev/core@4.49.1
4.6.0
Minor Changes
-
#5761
399911617b2
Thanks @aliemir! - Migrated from outdated@tabler/icons@1
to@tabler/icons-react@3
to make sure we're using the latest available version of the library without requiring users to pin to a deprecated version.If your project doesn't include
@tabler/icons
you won't be affected by this change. If you're using@tabler/icons@1
in your project, you may need to update your dependency to latest version of@tabler/icons-react
to avoid conflicting dependencies. Practically, this should not introduce any breaking changes to your project and all the icons in@tabler/icons@1
should also be available in the latest version of@tabler/icons-react
.
Patch Changes
-
#5765
0c197d82393
Thanks @aliemir! - fix:@tabler/icons-react
imports in CJS buildsimports from
@tabler/icons-react
end up requiring the ESM build in CJS environments, to prevent this we've added added an esbuild plugin to replace the imports with the correct path for CJS bundles. -
#5765
0c197d82393
Thanks @aliemir! - refactor: package bundles and package.json configuration for exportsPreviously, Refine packages had exported ESM and CJS bundles with same
.js
extension and same types for both with.d.ts
extensions. This was causing issues with bundlers and compilers to pick up the wrong files for the wrong environment. Now we're outputting ESM bundles with.mjs
extension and CJS bundles with.cjs
extension. Also types are now exported with both.d.mts
and.d.cts
extensions.In older versions ESM and CJS outputs of some packages were using wrong imports/requires to dependencies causing errors in some environments. This will be fixed since now we're also enforcing the module type with extensions.
Above mentioned changes also supported with changes in
package.json
files of the packages to support the new extensions and types. All Refine packages now includeexports
fields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers. -
#5765
0c197d82393
Thanks @aliemir! - Fixed thelodash-es
imports for ESM builds to access the exports properly. -
#5754
56ed144a0f5
Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752 -
#5739
e9bbb1aa5af
Thanks @aliemir! - Removed redundant usage ofIResourceComponentsProps
type in generated components. This type only works with legacy routers and<RefineRoutes />
component, its usage outside of these scopes are unnecessary. -
#5765
0c197d82393
Thanks @aliemir! - fix: broken eslint plugin for removing test ids from componentsEslint plugin to remove test ids from components was broken and might miss some test ids to be included in the bundles.
-
Updated dependencies [
4e8188a6652
,10ba9c34490
,2b5ac6f5409
,0c197d82393
,0c197d82393
,404b2ef5e1b
,56ed144a0f5
,0c197d82393
,10ba9c34490
,38f129f40ee
,f32512b9042
]:- @refinedev/core@4.49.0
4.5.21
Patch Changes
-
#5695
79865affa1c
Thanks @BatuhanW! - chore: apply biome format and fix lint errors. -
Updated dependencies [
fd38d9c71a6
,17c39ee2ee0
,79865affa1c
]:- @refinedev/core@4.48.0
4.5.20
Patch Changes
-
#5573
546df06482
Thanks @alicanerdurmaz! - chore: add "use client" directive to exported files to work with nextjs app router -
Updated dependencies [
546df06482
]:- @refinedev/core@4.47.1
4.5.19
Patch Changes
-
#5592
b10a66b58d
Thanks @BatuhanW! - fix: addgraphql
package as dependency.New projects created with
create refine-app
is failing to start due to missinggraphql
package.
4.5.18
Patch Changes
-
#5550
e0eabf799f
Thanks @aliemir! - Updated type exports inpackage.json
and included them in theexports
field. Resolves #5528. -
#5498
fff41caae9
Thanks @alicanerdurmaz! - feat:meta.gqlQuery
andmeta.gqlMutation
support added to inferencer #5497. -
Updated dependencies [
b91de14ac8
,e2355e4179
,5e65f71ecd
,b094b50c51
,4b4d34208c
,71148278cb
]:- @refinedev/core@4.47.0
4.5.17
Patch Changes
-
#5373
dff476ca41
Thanks @aliemir! - Show and List type inferencers were failing to provide a preview when there's a relational property without a presentational key. Updated generated code blocks to handle fields with no accessor keys and display a placeholder message instead. Fixes #5184 -
#5373
dff476ca41
Thanks @aliemir! - Fixed the issue of wrongfully assumingid
key of relational fields in Chakra UI and Headless edit inferencers. Fixes #5274 -
#5373
dff476ca41
Thanks @aliemir! - Even thoughid
is required for Refine to work properly, in some list queries there may not be anid
field. Material UI Datagrid requires an identifier for each row, if there's noid
field, we're fallbacking to the first key of the row. Fixes the errors thrown for this case in Material UI List inferencers. -
#5373
dff476ca41
Thanks @aliemir! - Updated the object field inferencer to check for fields end withname
andlabel
and use them as the display name for the field. Previously the check was done for a predefined set of properties, now it's done for any property that ends withname
orlabel
which results with more accurate code generation. -
Updated dependencies [
75bb61dd3b
,93e00fd770
,e5888b6b9c
,b621223bfb
,19ceffbe9f
]:- @refinedev/core@4.46.2
4.5.16
Patch Changes
- #5425
190af9fce2
Thanks @aliemir! - Updated@refinedev/core
peer dependencies to latest (^4.46.1
)
4.5.15
Patch Changes
-
#5335
9321a02a8f
Thanks @alicanerdurmaz! - fix: Material UI snapshots tests. -
Updated dependencies [
17aa8c1cd6
,dd8f1270f6
,4c49ef0a06
,3bdb9cb1cb
,f8e407f850
]:- @refinedev/core@4.46.0
4.5.14
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies []:
- @refinedev/core@4.42.4
4.5.13
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
-
Updated dependencies []:
- @refinedev/core@4.42.3
4.5.12
Patch Changes
-
#4975
ff66a862e46
Thanks @aliemir! - Updated dependency of@tabler/icons
tov1.119.0
to fix the issue of using misconfigured versions. (Fixes #4921) -
Updated dependencies [
d8e464fa2c4
]:- @refinedev/core@4.42.0
4.5.11
Patch Changes
- #4975
ff66a862e46
Thanks @aliemir! - Updated dependency of@tabler/icons
tov1.119.0
to fix the issue of using misconfigured versions. (Fixes #4921)
4.5.10
Patch Changes
- #4964
85b1ac0db5f
Thanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
4.5.9
Patch Changes
- #4964
85b1ac0db5f
Thanks @BatuhanW! - chore: update @refinedev/core peer dependency versions.
4.5.8
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077
]:- @refinedev/core@4.38.4
4.5.7
Patch Changes
- #4951
04837c62077
Thanks @aliemir! - - Update build configuration foresbuild
to use the shared plugins.- Fix the lodash replacement plugin to skip redundant files.
- Updated dependencies [
04837c62077
]:- @refinedev/core@4.38.3
4.5.6
Patch Changes
-
#4948
8e5efffbb23
Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23
]:- @refinedev/core@4.38.2
4.5.5
Patch Changes
-
#4948
8e5efffbb23
Thanks @aliemir! - Keep the hook and component names in builds for better debugging. -
Updated dependencies [
8e5efffbb23
]:- @refinedev/core@4.38.1
4.5.4
Patch Changes
-
#4797
a680aea865b
Thanks @yildirayunlu! - fix: relation fields are not correctly inferred forshow
viewsShows
title
forcategory
without using theuseOne
hook when showing thecategory
key.{ "title": "My title", "description": "My description", "category": { "id": 1, "name": "My category" } }
4.5.3
Patch Changes
-
#4797
a680aea865b
Thanks @yildirayunlu! - fix: relation fields are not correctly inferred forshow
viewsShows
title
forcategory
without using theuseOne
hook when showing thecategory
key.{ "title": "My title", "description": "My description", "category": { "id": 1, "name": "My category" } }
4.5.2
Patch Changes
-
#4774
030a9dda75a
Thanks @yildirayunlu! - feat: unlock and upgrade@mui/material
to^5.14.2
-
Updated dependencies [
e3e38de4114
]:- @refinedev/core@4.32.2
4.5.1
Patch Changes
-
#4774
030a9dda75a
Thanks @yildirayunlu! - feat: unlock and upgrade@mui/material
to^5.14.2
-
Updated dependencies [
e3e38de4114
]:- @refinedev/core@4.32.1
4.5.0
Minor Changes
- #4741
026ccf34356
Thanks @aliemir! - AddedsideEffects: false
topackage.json
to help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356
]:- @refinedev/core@4.32.0
4.4.0
Minor Changes
- #4741
026ccf34356
Thanks @aliemir! - AddedsideEffects: false
topackage.json
to help bundlers tree-shake unused code.
Patch Changes
- Updated dependencies [
026ccf34356
]:- @refinedev/core@4.31.0
4.3.4
Patch Changes
- #4717
c1c10e5d7bd
Thanks @aliemir! - Added a classname to the inferencer's code viewer component to determine a simple selector for the code viewer.
4.3.3
Patch Changes
- #4717
c1c10e5d7bd
Thanks @aliemir! - Added a classname to the inferencer's code viewer component to determine a simple selector for the code viewer.
4.3.2
Patch Changes
-
#4634
5de50a6af75
Thanks @aliemir! - Added an additional info log and a link to the documentation into the inferencer components after relation requests are made. -
Updated dependencies [
03597ed8a9a
]:- @refinedev/core@4.26.4
4.3.1
Patch Changes
-
#4634
5de50a6af75
Thanks @aliemir! - Added an additional info log and a link to the documentation into the inferencer components after relation requests are made. -
Updated dependencies [
03597ed8a9a
]:- @refinedev/core@4.26.3
4.3.0
Minor Changes
- #4582
2edadc3a2aa
Thanks @rasitcolakel! - fix: added predefined relationInfer control
Patch Changes
-
#4601
090653717d6
Thanks @aliemir! - Updated inferencer functions to check for relational fields with representable values. If the inferencer type isshow
orlist
, the inferencer will use the available properties to show the field instead of trying to fetch the relational data.// posts/1 { id: 1, name: "Post 1", tags: [ { id: 5, name: "Tag 5" }, { id: 6, name: "Tag 6" } ], content: "...", }
Above structure will show the
tags
field in list and show inferencers using thename
property instead of trying to fetch the relational data. Butedit
andcreate
inferencers will still work with the relational data. -
Updated dependencies [
c3c0deed564
,8c2b3be35b0
,5bb6f47a4d4
]:- @refinedev/core@4.26.0
4.2.0
Minor Changes
- #4582
2edadc3a2aa
Thanks @rasitcolakel! - fix: added predefined relationInfer control
Patch Changes
-
#4601
090653717d6
Thanks @aliemir! - Updated inferencer functions to check for relational fields with representable values. If the inferencer type isshow
orlist
, the inferencer will use the available properties to show the field instead of trying to fetch the relational data.// posts/1 { id: 1, name: "Post 1", tags: [ { id: 5, name: "Tag 5" }, { id: 6, name: "Tag 6" } ], content: "...", }
Above structure will show the
tags
field in list and show inferencers using thename
property instead of trying to fetch the relational data. Butedit
andcreate
inferencers will still work with the relational data. -
Updated dependencies [
5bb6f47a4d4
]:- @refinedev/core@4.25.1
4.1.4
Patch Changes
-
#4561
9812a3d874a
Thanks @yildirayunlu! - fix: select current value on<Select>
component forChakra-UI
andheadless
-
Updated dependencies [
18d446b1069
,ceadcd29fc9
,18d446b1069
]:- @refinedev/core@4.24.0
4.1.3
Patch Changes
-
#4561
9812a3d874a
Thanks @yildirayunlu! - fix: select current value on<Select>
component forChakra-UI
andheadless
-
Updated dependencies [
18d446b1069
,ceadcd29fc9
,18d446b1069
]:- @refinedev/core@4.23.0
4.1.2
Patch Changes
- #4499
b120a0394f8
Thanks @BatuhanW! - fix: show code button for inferencers was not visible in smaller screens.
4.1.1
Patch Changes
- #4499
b120a0394f8
Thanks @BatuhanW! - fix: show code button for inferencers was not visible in smaller screens.
4.1.0
Minor Changes
-
#4454
4bae8add99f
Thanks @aliemir! - According to the changes made in@refinedev/mui
to support the latest version of the@mui/x-data-grid
package, we've updated the@refinedev/inferencer
package to support the changes in the generated codes. While the usage of the components did not change, the generated code in Material UI inferencer components have changed.Breaking Changes
With this release, the peer dependency of
@refinedev/mui
is updated to^5.0.0
and the peer dependency of@mui/x-data-grid
is updated to^6.6.0
.
Patch Changes
-
#4454
4bae8add99f
Thanks @aliemir! - Updated theListInferencer
logic to check forcanDelete
property in resource definitions to decide whether to includeDeleteButton
in the actions column of theList
view or not. -
Updated dependencies [
c82006f712a
]:- @refinedev/core@4.20.0
4.0.0
Major Changes
-
#4454
4bae8add99f
Thanks @aliemir! - According to the changes made in@refinedev/mui
to support the latest version of the@mui/x-data-grid
package, we've updated the@refinedev/inferencer
package to support the changes in the generated codes. While the usage of the components did not change, the generated code in Material UI inferencer components have changed.Breaking Changes
With this release, the peer dependency of
@refinedev/mui
is updated to^5.0.0
and the peer dependency of@mui/x-data-grid
is updated to^6.6.0
.
Patch Changes
-
#4454
4bae8add99f
Thanks @aliemir! - Updated theListInferencer
logic to check forcanDelete
property in resource definitions to decide whether to includeDeleteButton
in the actions column of theList
view or not. -
Updated dependencies [
c82006f712a
,4bae8add99f
,4bae8add99f
,4bae8add99f
]:- @refinedev/core@4.19.0
- @refinedev/mui@5.0.0
3.5.8
Patch Changes
- #4427
b4298166b6f
Thanks @alicanerdurmaz! - fixed: Inferencer assumesid
is number in custom pages. From now on, ifid
istypeof string
, andinferencer
will infer it asstring
. - Updated dependencies [
cf07d59587f
,c29a3618cf6
,0602f4cdf1c
,cf07d59587f
]:- @refinedev/core@4.18.0
3.5.7
Patch Changes
- #4427
b4298166b6f
Thanks @alicanerdurmaz! - fixed: Inferencer assumesid
is number in custom pages. From now on, ifid
istypeof string
, andinferencer
will infer it asstring
. - Updated dependencies [
cf07d59587f
,c29a3618cf6
,0602f4cdf1c
,cf07d59587f
]:- @refinedev/core@4.17.0
3.5.6
Patch Changes
-
#4402
4c41be2a2ae
Thanks @aliemir! - Added missingtranslate
function dependency to the table hooks ifi18n
is enabled. -
Updated dependencies [
473bbe5b31d
,473bbe5b31d
]:- @refinedev/core@4.16.2
3.5.5
Patch Changes
- #4402
4c41be2a2ae
Thanks @aliemir! - Added missingtranslate
function dependency to the table hooks ifi18n
is enabled.
3.5.4
Patch Changes
- #4398
8a424c227a8
Thanks @aliemir! - Updated the type imports in the files to get thetsc
working for the type definitions in thedist
folder. This will fix the issue with the components not being properly typed in user projects.
3.5.3
Patch Changes
- #4398
8a424c227a8
Thanks @aliemir! - Updated the type imports in the files to get thetsc
working for the type definitions in thedist
folder. This will fix the issue with the components not being properly typed in user projects.
3.5.2
Patch Changes
-
#4381
500cf2becc2
Thanks @yildirayunlu! - feat: support i18nSupports i18n if
i18nProvider
is defined. -
Updated dependencies [
500cf2becc2
,28fe67047a0
]:- @refinedev/core@4.16.0
3.5.1
Patch Changes
-
#4381
500cf2becc2
Thanks @yildirayunlu! - feat: support i18nSupports i18n if
i18nProvider
is defined. -
Updated dependencies [
500cf2becc2
,28fe67047a0
]:- @refinedev/core@4.15.0
3.5.0
Minor Changes
-
#4382
83ff1076f5c
Thanks @aliemir! - Updated the inference process forlist
andcreate
actions to use all items in the list instead of just the first item. This is done to avoid breaking the output when a single record is corrupted or wrongfully inferred.Now, for the
list
andcreate
actions, each item in the list response will be used to infer the fields then the most repeated fields will be accepted as the type for the field.
Patch Changes
- #4383
8b3137e9e9d
Thanks @aliemir! - Fixed the code generation issue with Mantine'screate
andedit
inferencers when used withmeta
values.
3.4.0
Minor Changes
-
#4382
83ff1076f5c
Thanks @aliemir! - Updated the inference process forlist
andcreate
actions to use all items in the list instead of just the first item. This is done to avoid breaking the output when a single record is corrupted or wrongfully inferred.Now, for the
list
andcreate
actions, each item in the list response will be used to infer the fields then the most repeated fields will be accepted as the type for the field.
Patch Changes
- #4383
8b3137e9e9d
Thanks @aliemir! - Fixed the code generation issue with Mantine'screate
andedit
inferencers when used withmeta
values.
3.3.6
Patch Changes
- #4355
bf4011f1d00
Thanks @aliemir! - Updated@mui/material
and@mui/icons-material
imports to use subpath imports.
3.3.5
Patch Changes
- #4355
bf4011f1d00
Thanks @aliemir! - Updated@mui/material
and@mui/icons-material
imports to use subpath imports.
3.3.4
Patch Changes
- #4293
7fa008b7ff7
Thanks @salihozdemir! - refactor: minimized the packages scope
3.3.3
Patch Changes
- #4293
7fa008b7ff7
Thanks @salihozdemir! - refactor: minimized the packages scope
3.3.2
Patch Changes
- #4265
ff43684f787
Thanks @salihozdemir! - fix: fixed an issue that caused the duplicate field error
3.3.1
Patch Changes
- #4265
ff43684f787
Thanks @salihozdemir! - fix: fixed an issue that caused the duplicate field error
3.3.0
Minor Changes
-
#4141
e7188abba8b
Thanks @aliemir! - ##meta
property for inferencer componentsAdded
meta
property to the inferencer components. This allows you to passmeta
to the data hooks included in the inferencer's generated code. This is useful when your data provider relies on themeta
property which made@refinedev/inferencer
unusable before. Now you will be able to passmeta
properties and generate code that will work with your data provider.meta
property of the inferencer components has a nested structure unlike the rest of the refine codebase. This is because the inferencer components are designed to infer the relational data as well which may require differentmeta
values for each of their methods (such asgetList
andgetOne
).Type
<AntdListInferencer meta={{ [resourceNameOrIdentifier: string]: { [methodName: "default" | "getList" | "getMany" | "getOne" | "update"]: Record<string, unknown>, } }} />
default
is the defaultmeta
value for all the methods. In the absence of a specificmeta
value for a method for a resource, thedefault
value will be used.Example Usage
<AntdListInferencer meta={{ posts: { getList: { fields: ["id", "title", "content", "category_id", "created_at"], }, }, categories: { default: { fields: ["id", "title"], }, }, }} />
Using the appropriate method to infer the relational data
The inferencer components were using the
getOne
method of the data providers to infer the relational field data in a record. This has a chance of breaking the generated code and the preview if the data provider implements agetMany
andgetOne
in a different manner which may not be compatible with each other.In the generated code, fields with multiple values are handled via
useMany
hook but the inference was using thegetOne
method regardless of the field's cardinality. This has been fixed and the inferencer components will now use thegetMany
method for fields with multiple values andgetOne
method for fields with single values.Redesigned code viewer components
Updated the code viewers components and the bottom buttons and unified the design. The code viewers now use the same components.
Sortable actions in Material UI list inferencer
Fixed the actions column in the Material UI list inferencer to be sortable.
Repeated relational fields
Added a check for repeated relational fields and excluded the duplicate fields from the generated code according to the context of the inferencer. In
list
andshow
actions fields with displayable values are preferred over the fields with relational values. Inedit
andcreate
actions, fields with relational values are preferred over the fields with displayable values.For example, if a
posts
resource item has bothcategory_id
(number
orstring
) andcategory
(record with keytitle
andid
) fields. Thelist
andshow
actions will use thecategory
field and theedit
andcreate
actions will use thecategory_id
field.Ability to hide code viewer in production
Added an option
hideCodeViewerInProduction
to hide code viewer components in production environments. This is added for presentational purposes and keep in mind that the Inferencer components are not meant for production use and may generate broken code.
3.2.0
Minor Changes
-
#4141
e7188abba8b
Thanks @aliemir! - ##meta
property for inferencer componentsAdded
meta
property to the inferencer components. This allows you to passmeta
to the data hooks included in the inferencer's generated code. This is useful when your data provider relies on themeta
property which made@refinedev/inferencer
unusable before. Now you will be able to passmeta
properties and generate code that will work with your data provider.meta
property of the inferencer components has a nested structure unlike the rest of the refine codebase. This is because the inferencer components are designed to infer the relational data as well which may require differentmeta
values for each of their methods (such asgetList
andgetOne
).Type
<AntdListInferencer meta={{ [resourceNameOrIdentifier: string]: { [methodName: "default" | "getList" | "getMany" | "getOne" | "update"]: Record<string, unknown>, } }} />
default
is the defaultmeta
value for all the methods. In the absence of a specificmeta
value for a method for a resource, thedefault
value will be used.Example Usage
<AntdListInferencer meta={{ posts: { getList: { fields: ["id", "title", "content", "category_id", "created_at"], }, }, categories: { default: { fields: ["id", "title"], }, }, }} />
Using the appropriate method to infer the relational data
The inferencer components were using the
getOne
method of the data providers to infer the relational field data in a record. This has a chance of breaking the generated code and the preview if the data provider implements agetMany
andgetOne
in a different manner which may not be compatible with each other.In the generated code, fields with multiple values are handled via
useMany
hook but the inference was using thegetOne
method regardless of the field's cardinality. This has been fixed and the inferencer components will now use thegetMany
method for fields with multiple values andgetOne
method for fields with single values.Redesigned code viewer components
Updated the code viewers components and the bottom buttons and unified the design. The code viewers now use the same components.
Sortable actions in Material UI list inferencer
Fixed the actions column in the Material UI list inferencer to be sortable.
Repeated relational fields
Added a check for repeated relational fields and excluded the duplicate fields from the generated code according to the context of the inferencer. In
list
andshow
actions fields with displayable values are preferred over the fields with relational values. Inedit
andcreate
actions, fields with relational values are preferred over the fields with displayable values.For example, if a
posts
resource item has bothcategory_id
(number
orstring
) andcategory
(record with keytitle
andid
) fields. Thelist
andshow
actions will use thecategory
field and theedit
andcreate
actions will use thecategory_id
field.Ability to hide code viewer in production
Added an option
hideCodeViewerInProduction
to hide code viewer components in production environments. This is added for presentational purposes and keep in mind that the Inferencer components are not meant for production use and may generate broken code.
3.1.7
Patch Changes
- #4093
c6637089837
Thanks @yildirayunlu! - Fixed the warning about using theisOptionEqualToValue
props of theAutocomplete
component.
3.1.6
Patch Changes
- #4092
f973878dc47
Thanks @salihozdemir! - Fix the wrong import path for MuiCheckbox
component.
3.1.5
Patch Changes
- #4092
f973878dc47
Thanks @salihozdemir! - Fix the wrong import path for MuiCheckbox
component.
3.1.4
Patch Changes
- #4025
a82937e9296
Thanks @aliemir! - Fix wrong resource data usage and key conflicts on route change.
3.1.3
Patch Changes
- #4025
a82937e9296
Thanks @aliemir! - Fix wrong resource data usage and key conflicts on route change.
3.1.2
Patch Changes
-
#3871
2a0cb4ed5a0
Thanks @BatuhanW! - fix: wrong import for controller -
Updated dependencies [
5ed083a8050
]:- @refinedev/core@4.1.2
3.1.1
Patch Changes
-
#3871
2a0cb4ed5a0
Thanks @BatuhanW! - fix: wrong import for controller -
Updated dependencies [
5ed083a8050
]:- @refinedev/core@4.1.1
3.1.0
Minor Changes
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Inferecer uses the resource
meta
instead ofoptions
to pick which data provider to use. Ifmeta
is not defined, it will useoptions
as fallback. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Upgrade
@ant-design/icons
to^5.0.1
for consistency. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
AuthProvider
is renamed toLegacyAuthProvider
with refine@4. Components and functions are updated to supportLegacyAuthProvider
. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Moving to the
@refinedev
scope 🎉🎉Moved to the
@refinedev
scope and updated our packages to use the new scope. From now on, all packages will be published under the@refinedev
scope with their new names.Now, we're also removing the
refine
prefix from all packages. So, the@pankod/refine-core
package is now@refinedev/core
,@pankod/refine-antd
is now@refinedev/antd
, and so on.
Patch Changes
2.10.0
Minor Changes
- #3822
0baa99ba787
Thanks @BatuhanW! - - refine v4 release announcement added to "postinstall". - refine v4 is released 🎉 The new version is 100% backward compatible. You can upgrade to v4 with a single command! See the migration guide here: https://refine.dev/docs/migration-guide/3x-to-4x
Patch Changes
- Updated dependencies [
0baa99ba787
]:- @pankod/refine-core@3.103.0
2.9.0
Minor Changes
- #3822
0baa99ba787
Thanks @BatuhanW! - - refine v4 release announcement added to "postinstall". - refine v4 is released 🎉 The new version is 100% backward compatible. You can upgrade to v4 with a single command! See the migration guide here: https://refine.dev/docs/migration-guide/3x-to-4x
Patch Changes
- Updated dependencies [
0baa99ba787
]:- @pankod/refine-core@3.102.0
2.8.2
Patch Changes
- #3636
f4f4c38a0ea
Thanks @BatuhanW! - Updated date inferencer to check existence of date separators.
2.8.1
Patch Changes
- #3636
f4f4c38a0ea
Thanks @BatuhanW! - Updated date inferencer to check existence of date separators.
2.8.0
Minor Changes
- #3622
499e9ccc2f6
Thanks @aliemir! - Additional checks are added fornumber
field types. Now, number check still works if the field value is a string.
2.7.0
Minor Changes
- #3622
499e9ccc2f6
Thanks @aliemir! - Additional checks are added fornumber
field types. Now, number check still works if the field value is a string.
2.6.0
Minor Changes
- #3600
c733eeb7449
Thanks @aliemir! - Updated Error components of inferencer to reflect the errors in a more descriptive way. #3596
Patch Changes
- #3592
ea015a22797
Thanks @aliemir! - Fixed the syntax error atMuiListInferencer
in@pankod/refine-inferencer/mui
2.5.0
Minor Changes
- #3600
c733eeb7449
Thanks @aliemir! - Updated Error components of inferencer to reflect the errors in a more descriptive way. #3596
2.4.1
Patch Changes
- #3592
ea015a22797
Thanks @aliemir! - Fixed the syntax error atMuiListInferencer
in@pankod/refine-inferencer/mui
2.4.0
Minor Changes
- #3502
92c052a8d92
Thanks @aliemir! - Export utilities used in inferencer components to let users create their own inferencer components throughcreateInferencer
function and utilities.
2.3.0
Minor Changes
- #3502
92c052a8d92
Thanks @aliemir! - Export utilities used in inferencer components to let users create their own inferencer components throughcreateInferencer
function and utilities.
2.2.4
Patch Changes
-
#3441
68eeacdbc15
Thanks @aliemir! - Update component name generation for non-latin characters with a fallback value to the resource name. -
Updated dependencies [
8f2954611fa
,ea74f3a8408
,96d93eb2d71
]:- @pankod/refine-core@3.97.0
2.2.3
Patch Changes
-
#3441
68eeacdbc15
Thanks @aliemir! - Update component name generation for non-latin characters with a fallback value to the resource name. -
Updated dependencies [
8f2954611fa
,ea74f3a8408
,96d93eb2d71
]:- @pankod/refine-core@3.96.0
2.2.2
Patch Changes
- #3376
7de42162c6b
Thanks @aliemir! - Remove repeatedReact
import fromheadless/list
inferencer.
2.2.1
Patch Changes
- #3376
7de42162c6b
Thanks @aliemir! - Remove repeatedReact
import fromheadless/list
inferencer.
2.2.0
Minor Changes
- #3361
abcd9a7ed6b
Thanks @aliemir! - - fix: updated date inference logic to have a minimum length limit- feat: added headless inferencer using
@pankod/refine-react-table
and@pankod/refine-react-hook-form
packages. exported from/headless
path.
- feat: added headless inferencer using
Patch Changes
- Updated dependencies [
98a1fbec65a
,310ebd05990
]:- @pankod/refine-core@3.94.2
2.1.0
Minor Changes
- #3361
abcd9a7ed6b
Thanks @aliemir! - - fix: updated date inference logic to have a minimum length limit- feat: added headless inferencer using
@pankod/refine-react-table
and@pankod/refine-react-hook-form
packages. exported from/headless
path.
- feat: added headless inferencer using
Patch Changes
- Updated dependencies [
98a1fbec65a
,310ebd05990
]:- @pankod/refine-core@3.94.1
2.0.2
Patch Changes
-
#3340
52489a0d8bc
Thanks @aliemir! - UpdateuseInferFetch
hook logic to work withoutid
inlist
andcreate
type of inferencer. -
#3339
8c764ecc566
Thanks @aliemir! - Fix type inconsistency inuseInferFetch
due to changes in@pankod/refine-core
'suseResource
hook. -
Updated dependencies [
ce6acf2b3d4
]:- @pankod/refine-core@3.94.0
2.0.1
Patch Changes
-
#3340
52489a0d8bc
Thanks @aliemir! - UpdateuseInferFetch
hook logic to work withoutid
inlist
andcreate
type of inferencer. -
#3339
8c764ecc566
Thanks @aliemir! - Fix type inconsistency inuseInferFetch
due to changes in@pankod/refine-core
'suseResource
hook. -
Updated dependencies [
ce6acf2b3d4
]:- @pankod/refine-core@3.93.0
2.0.0
Patch Changes
- Updated dependencies [
fd2e1882e06
,214ea79c81c
]:- @pankod/refine-antd@4.0.0
1.6.1
Patch Changes
- #3200
8c9efbd40db
Thanks @aliemir! - Handle kebab-case relation suffixes for a wider case support. (e.g.category-id
,category-ids
)
1.6.0
Minor Changes
- #3173
15402d3a70f
Thanks @aliemir! - - AddedfieldTransformer
prop to inferencer components to let users transform or hide the field to be rendered.- Hide networks errors caused by the relation detection process.
- Added the ability to detect relations from basic types like
"text"
and"number"
.
1.5.0
Minor Changes
- #3173
15402d3a70f
Thanks @aliemir! - - AddedfieldTransformer
prop to inferencer components to let users transform or hide the field to be rendered.- Hide networks errors caused by the relation detection process.
- Added the ability to detect relations from basic types like
"text"
and"number"
.
1.4.0
Minor Changes
- #3166
b41e89ea7eb
Thanks @aliemir! - Replacedreact-live
package with a maintained fork@aliemir/react-live
with TypeScript support.
1.3.0
Minor Changes
- #3166
b41e89ea7eb
Thanks @aliemir! - Replacedreact-live
package with a maintained fork@aliemir/react-live
with TypeScript support.
1.2.2
Patch Changes
- #3123
5e480338852
Thanks @salihozdemir! - - Removed the requirement to define resource for relations.- Component names and variable names are now generated primarily by label after the resource name.
- Added a new base interface component
- import { - AntdShowInferencer, - AntdEditInferencer, - AntdListInferencer, - AntdEditInferencer, - } from "@pankod/refine-inferencer/antd"; + import { AntdInferencer } from "@pankod/refine-inferencer/antd"; <Refine ... resources={[ { name: "samples", - list: AntdListInferencer, + list: AntdInferencer, - edit: AntdEditInferencer, + edit: AntdInferencer, - show: AntdShowInferencer, + show: AntdInferencer, - create: AntdEditInferencer, + create: AntdInferencer, }, ]} />
1.2.1
Patch Changes
- #3123
5e480338852
Thanks @salihozdemir! - - Removed the requirement to define resource for relations.- Component names and variable names are now generated primarily by label after the resource name.
- Added a new base interface component
- import { - AntdShowInferencer, - AntdEditInferencer, - AntdListInferencer, - AntdEditInferencer, - } from "@pankod/refine-inferencer/antd"; + import { AntdInferencer } from "@pankod/refine-inferencer/antd"; <Refine ... resources={[ { name: "samples", - list: AntdListInferencer, + list: AntdInferencer, - edit: AntdEditInferencer, + edit: AntdInferencer, - show: AntdShowInferencer, + show: AntdInferencer, - create: AntdEditInferencer, + create: AntdInferencer, }, ]} />
1.2.0
Minor Changes
-
#3027
177d0a764fe
Thanks @aliemir! - Initial release of the Inferencer package.This package provides series of components per each UI integration to generate list, show and edit pages for your resources. The fields and their representation are inferred from your resource's API response. Code is generated and presented with a preview and option to copy and edit in your project.
Note: It's highly advised to only use this package in development environments. While generating the sample code, multiple requests are made to the API and the result might not be the best application for your data.
Usage
Components for UI integrations are exported in sub directories. For example, to use the components for Ant Design integration, you can import them like this:
After importing the component, you can directly use it in
<Refine/>
component'sresources
prop.<Refine resources={[ { name: "posts", list: AntdListInferencer, show: AntdShowInferencer, edit: AntdEditInferencer, }, ]} />
Tip: Relation data is only handled if the resource is present in the
resources
array. For example, if you have aposts
resource with ausers
relation, you need to addusers
resource to theresources
array as well. Otherwise, inferencer will try to show the relation data as a simple field like string or a number.
Patch Changes
- #3064
27df262dd0a
Thanks @aliemir! - Addedundefined
check for date field values in@pankod/refine-inferencer/antd
'sEditInferencer
component to prevent setting it to current date when it's not provided.
1.1.0
Minor Changes
-
#3027
177d0a764fe
Thanks @aliemir! - Initial release of the Inferencer package.This package provides series of components per each UI integration to generate list, show and edit pages for your resources. The fields and their representation are inferred from your resource's API response. Code is generated and presented with a preview and option to copy and edit in your project.
Note: It's highly advised to only use this package in development environments. While generating the sample code, multiple requests are made to the API and the result might not be the best application for your data.
Usage
Components for UI integrations are exported in sub directories. For example, to use the components for Ant Design integration, you can import them like this:
After importing the component, you can directly use it in
<Refine/>
component'sresources
prop.<Refine resources={[ { name: "posts", list: AntdListInferencer, show: AntdShowInferencer, edit: AntdEditInferencer, }, ]} />
Tip: Relation data is only handled if the resource is present in the
resources
array. For example, if you have aposts
resource with ausers
relation, you need to addusers
resource to theresources
array as well. Otherwise, inferencer will try to show the relation data as a simple field like string or a number.
Patch Changes
- #3064
27df262dd0a
Thanks @aliemir! - Addedundefined
check for date field values in@pankod/refine-inferencer/antd
'sEditInferencer
component to prevent setting it to current date when it's not provided.
1.6.11
Patch Changes
- Add primary color to
<SaveButton/>
's<ActionIcon/>
component.
1.6.10
Patch Changes
- #2758
3960549907
Thanks @salihozdemir! - Add primary color to<SaveButton/>
's<ActionIcon/>
component.
1.6.9
Patch Changes
- Fixed incorrectly used hooks in AuthPage component
1.6.8
Patch Changes
- #2769
501aebe997
Thanks @dgelineau! - Fixed incorrectly used hooks in AuthPage component
1.6.7
Patch Changes
- Fixed responsive design for mobile devices
1.6.6
Patch Changes
- #2748
0eaddb65ee
Thanks @salihozdemir! - Fixed responsive design for mobile devices
1.6.5
Patch Changes
-
- Added
<LoadingOverlay />
component to basic view components. - Update
goBack
prop usage, now it can be passed to<ActionButton />
's children. - Fixed the issue that when
title
prop is passed to basic views, the back button is not shown. - Default title size decreased from
h2
toh3
.
- Added
- Updated dependencies []:
- @pankod/refine-ui-types@0.11.4
1.6.4
Patch Changes
- #2718
d78d2a2a99
Thanks @salihozdemir! - - Added<LoadingOverlay />
component to basic view components.- Update
goBack
prop usage, now it can be passed to<ActionButton />
's children. - Fixed the issue that when
title
prop is passed to basic views, the back button is not shown. - Default title size decreased from
h2
toh3
.
- Update
- Updated dependencies [
d78d2a2a99
]:- @pankod/refine-ui-types@0.11.3
1.6.3
Patch Changes
- Fixed
providers
property empty array state in<AuthPage />
component
1.6.2
Patch Changes
- Fixed
providers
property empty array state in<AuthPage />
component
1.6.1
Patch Changes
- #2712
c434055011
Thanks @omeraplak! - Fixedproviders
property empty array state in<AuthPage />
component
1.6.0
Minor Changes
- Updated
formProps
property on<AuthPage />
component
Patch Changes
- Added
clearable
prop touseSelect
hook that istrue
by default.
1.5.0
Minor Changes
- #2663
c624a52b23
Thanks @yildirayunlu! - UpdatedformProps
property on<AuthPage />
component
Patch Changes
- #2701
ddd9eb3aff
Thanks @salihozdemir! - Addedclearable
prop touseSelect
hook that istrue
by default.
1.4.0
Minor Changes
-
- Added new component core and mantine support.
- Move Auth types
@pankod/refine-ui-types
to@pankod/refine-core
1.3.0
Minor Changes
- #2627
c5fb45d61f
Thanks @yildirayunlu! - - Added new component core and mantine support.- Move Auth types
@pankod/refine-ui-types
to@pankod/refine-core
- Move Auth types
1.2.0
Minor Changes
- First release of
@pankod/refine-mantine
🎉
1.1.0
Minor Changes
- #2505
a4dbb63c88
Thanks @salihozdemir! - First release of@pankod/refine-mantine
🎉
1.0.6
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.11.0
1.0.5
Patch Changes
- Updated dependencies [
a65525de6f
]:- @pankod/refine-ui-types@0.10.0
1.0.4
Patch Changes
- Updated dependencies []:
- @pankod/refine-ui-types@0.9.0
1.0.3
Patch Changes
- Updated dependencies [
ad99916d6d
]:- @pankod/refine-ui-types@0.8.0
1.0.2
Patch Changes
-
Fixed version of react-router to
6.3.0
-
Updated dependencies []:
- @pankod/refine-ui-types@0.7.0
1.0.1
Patch Changes
- #2501
4095a578d4
Thanks @omeraplak! - Fixed version of react-router to6.3.0