18 KiB
@refinedev/kbar
1.3.12
Patch Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046Thanks @BatuhanW! - chore: addedtypequalifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
1.3.11
Patch Changes
-
#5945
90930b381d8d369c63bc59beedf69c391875166dThanks @aliemir! - chore: addedtypequalifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
1.3.10
Patch Changes
-
#5928
db9756e7908Thanks @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.mtsdeclaration files to provide a compatible declarations for both typescript 4 and 5 users.
1.3.9
Patch Changes
- #5881
ba719f6ea26Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions
1.3.8
Patch Changes
-
#5765
0c197d82393Thanks @aliemir! - refactor: package bundles and package.json configuration for exportsPreviously, Refine packages had exported ESM and CJS bundles with same
.jsextension and same types for both with.d.tsextensions. 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.mjsextension and CJS bundles with.cjsextension. Also types are now exported with both.d.mtsand.d.ctsextensions.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.jsonfiles of the packages to support the new extensions and types. All Refine packages now includeexportsfields in their configuration to make sure the correct bundle is picked up by the bundlers and compilers. -
#5754
56ed144a0f5Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752
1.3.7
Patch Changes
- #5695
79865affa1cThanks @BatuhanW! - chore: apply biome format and fix lint errors.
1.3.6
Patch Changes
- #5573
546df06482Thanks @alicanerdurmaz! - chore: add "use client" directive to exported files to work with nextjs app router
1.3.5
Patch Changes
- #5425
190af9fce2Thanks @aliemir! - Updated@refinedev/corepeer dependencies to latest (^4.46.1)
1.3.4
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
1.3.3
Patch Changes
-
#5022
80513a4e42fThanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
1.3.2
Patch Changes
- #4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging.
1.3.1
Patch Changes
- #4948
8e5efffbb23Thanks @aliemir! - Keep the hook and component names in builds for better debugging.
1.3.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffects: falsetopackage.jsonto help bundlers tree-shake unused code.
1.2.0
Minor Changes
- #4741
026ccf34356Thanks @aliemir! - AddedsideEffects: falsetopackage.jsonto help bundlers tree-shake unused code.
1.1.2
Patch Changes
-
#4626
03597ed8a9aThanks @aliemir! - Fixed the action types for predefined kbar actions per resource. -
#4626
03597ed8a9aThanks @aliemir! - Updated thekbarpackage to latest version and updated the re-exports of the package.
1.1.1
Patch Changes
-
#4626
03597ed8a9aThanks @aliemir! - Fixed the action types for predefined kbar actions per resource. -
#4626
03597ed8a9aThanks @aliemir! - Updated thekbarpackage to latest version and updated the re-exports of the package.
1.1.0
Minor Changes
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
AuthProvideris renamed toLegacyAuthProviderwith refine@4. Components and functions are updated to supportLegacyAuthProvider. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Updated the action creation logic to match the changes in routing system of
@refinedev/core. -
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk! Moving to the
@refinedevscope 🎉🎉Moved to the
@refinedevscope and updated our packages to use the new scope. From now on, all packages will be published under the@refinedevscope with their new names.Now, we're also removing the
refineprefix from all packages. So, the@pankod/refine-corepackage is now@refinedev/core,@pankod/refine-antdis now@refinedev/antd, and so on.
Patch Changes
0.12.0
Minor Changes
- #3822
0baa99ba787Thanks @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
0.11.0
Minor Changes
- #3822
0baa99ba787Thanks @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
0.10.2
Patch Changes
- Fixed version of react-router to
6.3.0
0.10.1
Patch Changes
- #2501
4095a578d4Thanks @omeraplak! - Fixed version of react-router to6.3.0
0.10.0
Minor Changes
- Update type declaration generation with
tscinstead oftsupfor better navigation throughout projects source code.
0.9.0
Minor Changes
- #2440
0150dcd070Thanks @aliemir! - Update type declaration generation withtscinstead oftsupfor better navigation throughout projects source code.
0.8.0
Minor Changes
- Add React@18 support 🚀
0.7.0
Minor Changes
- #1718
b38620d842Thanks @omeraplak! - Add React@18 support 🚀
0.6.0
Minor Changes
-
Pass the full
resourceto theaccessControlProvidercan method. This will enable Attribute Based Access Control (ABAC), for example granting permissions based on the value of a field in the resource object.const App: React.FC = () => { <Refine // other providers and props accessControlProvider={{ can: async ({ resource, action, params }) => { if (resource === "posts" && action === "edit") { return Promise.resolve({ can: false, reason: "Unauthorized", }); } // or you can access directly *resource object // const resourceName = params?.resource?.name; // const anyUsefulOption = params?.resource?.options?.yourUsefulOption; // if (resourceName === "posts" && anyUsefulOption === true && action === "edit") { // return Promise.resolve({ // can: false, // reason: "Unauthorized", // }); // } return Promise.resolve({ can: true }); }, }} />; };
0.5.0
Minor Changes
-
e78b181b12Thanks @omeraplak! - Pass the fullresourceto theaccessControlProvidercan method. This will enable Attribute Based Access Control (ABAC), for example granting permissions based on the value of a field in the resource object.const App: React.FC = () => { <Refine // other providers and props accessControlProvider={{ can: async ({ resource, action, params }) => { if (resource === "posts" && action === "edit") { return Promise.resolve({ can: false, reason: "Unauthorized", }); } // or you can access directly *resource object // const resourceName = params?.resource?.name; // const anyUsefulOption = params?.resource?.options?.yourUsefulOption; // if (resourceName === "posts" && anyUsefulOption === true && action === "edit") { // return Promise.resolve({ // can: false, // reason: "Unauthorized", // }); // } return Promise.resolve({ can: true }); }, }} />; };
0.4.0
Minor Changes
-
All of the refine packages have dependencies on the
@pankod/refine-corepackage. So far we have managed these dependencies withpeerDependencies+dependenciesbut this causes issues like #2183. (having more than one @pankod/refine-core version in node_modules and creating different instances)Managing as
peerDependencies+devDependenciesseems like the best way for now to avoid such issues.
0.3.0
Minor Changes
-
#2217
b4aae00f77Thanks @omeraplak! - All of the refine packages have dependencies on the@pankod/refine-corepackage. So far we have managed these dependencies withpeerDependencies+dependenciesbut this causes issues like #2183. (having more than one @pankod/refine-core version in node_modules and creating different instances)Managing as
peerDependencies+devDependenciesseems like the best way for now to avoid such issues.
0.2.2
Patch Changes
-
Fixed
react-domdependency version- "react-dom": "^17.0.4" + "react-dom": "^17.0.0 || ^18.0.0"
0.2.1
Patch Changes
-
#2178
7a8e74a0afThanks @biskuvit! - Fixedreact-domdependency version- "react-dom": "^17.0.4" + "react-dom": "^17.0.0 || ^18.0.0"
0.2.0
Minor Changes
-
Command palette for the refine. this package use kbar to generate the command palette.
💡 How use the refine-kbar command palette?
- Import the package
- Wrap the
<Refine>component with the<RefineKbarProvider>.
import { Refine } from "@pankod/refine-core"; import { RefineKbarProvider } from "@pankod/refine-kbar"; const App: React.FC = () => { return ( <RefineKbarProvider> <Refine /> </RefineKbarProvider> ); };- Create
<OffLayoutArea/>component for the Refine component and use therefine-kbarcommand palette in<OffLayoutArea>
We have the
<RefineKbar>component to provide the command palette to the<Refine>component.import { Refine } from "@pankod/refine-core"; import { RefineKbar, RefineKbarProvider } from "@pankod/refine-kbar"; const OffLayoutArea: React.FC = () => { return <RefineKbar />; }; const App: React.FC = () => { return ( <RefineKbarProvider> <Refine OffLayoutArea={OffLayoutArea} /> </RefineKbarProvider> ); };Note
📢 Q: Why we need to wrap the
<Refine>component with the<RefineKbarProvider>? A: The<RefineKbarProvider>is a wrapper component that provides the command palette to the<Refine>component. Q: Why we need to add<OffLayoutArea>to the<Refine>component? A: Because we need to reach theresourcesproperty of the<Refine>component.
0.1.0
Minor Changes
-
#2117
e941ac0f47Thanks @biskuvit! - Command palette for the refine. this package use kbar to generate the command palette.💡 How use the refine-kbar command palette?
- Import the package
- Wrap the
<Refine>component with the<RefineKbarProvider>.
import { Refine } from "@pankod/refine-core"; import { RefineKbarProvider } from "@pankod/refine-kbar"; const App: React.FC = () => { return ( <RefineKbarProvider> <Refine /> </RefineKbarProvider> ); };- Create
<OffLayoutArea/>component for the Refine component and use therefine-kbarcommand palette in<OffLayoutArea>
We have the
<RefineKbar>component to provide the command palette to the<Refine>component.import { Refine } from "@pankod/refine-core"; import { RefineKbar, RefineKbarProvider } from "@pankod/refine-kbar"; const OffLayoutArea: React.FC = () => { return <RefineKbar />; }; const App: React.FC = () => { return ( <RefineKbarProvider> <Refine OffLayoutArea={OffLayoutArea} /> </RefineKbarProvider> ); };Note
📢 Q: Why we need to wrap the
<Refine>component with the<RefineKbarProvider>? A: The<RefineKbarProvider>is a wrapper component that provides the command palette to the<Refine>component. Q: Why we need to add<OffLayoutArea>to the<Refine>component? A: Because we need to reach theresourcesproperty of the<Refine>component.