25 KiB
@refinedev/nestjsx-crud
5.0.10
Patch Changes
-
#6320
5c0f3d83cb424a82431c2f7ae183a94f3e59c39b
Thanks @mehrabmp! - feat: addbetween
filter operatorAdd between operator support to
CrudFilters
import { useTable } from "@refinedev/core"; useTable({ filters: { initial: [ { field: "createdAt", operator: "between", value: [new Date().toISOString(), new Date().toISOString()], }, ], }, });
5.0.9
Patch Changes
-
#6160
20499cac091de94dcb4856a5253c68f216f022aa
Thanks @aishuarya! - fix: update empty filter checksUpdated the conditions to properly check empty filters
5.0.8
Patch Changes
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - chore: addedtype
qualifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
-
6bd14228760d3e1e205ea9248e427f9afa2ec046
Thanks @BatuhanW! - fix: "mapOperator" test type error. SomeCrudOperators
not supported inmapOperator
type but still extended fromCrudOperators
. To fix that we usePartial
type formapOperator
function.
5.0.7
Patch Changes
-
#5945
90930b381d8d369c63bc59beedf69c391875166d
Thanks @aliemir! - chore: addedtype
qualifier to imports used as type only.- import { A } from "./example.ts"; + import type { A } from "./example.ts";
-
#5945
61031da8217c7f0aef1f5381f55b819250006ada
Thanks @aliemir! - fix: "mapOperator" test type error. SomeCrudOperators
not supported inmapOperator
type but still extended fromCrudOperators
. To fix that we usePartial
type formapOperator
function.
5.0.6
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.
5.0.5
Patch Changes
- #5881
ba719f6ea26
Thanks @aliemir! - fix: declaration files in node10, node16 and nodenext module resolutions
5.0.4
Patch Changes
-
#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. -
#5754
56ed144a0f5
Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752
5.0.3
Patch Changes
- #5695
79865affa1c
Thanks @BatuhanW! - chore: apply biome format and fix lint errors.
5.0.2
Patch Changes
-
#5546
10570ec06c
Thanks @alicanerdurmaz! - feat:"nnull"
operator added for filters. #4805 From now on, data hooks can use"nnull"
operator to filter null values.import { useTable } from "@refinedev/core"; useTable({ filters: { permanent: [ { field: "title", operator: "nnull", value: true, }, ], }, });
5.0.1
Patch Changes
- #5425
190af9fce2
Thanks @aliemir! - Updated@refinedev/core
peer dependencies to latest (^4.46.1
)
5.0.0
Major Changes
- #5330
7c8827b43d
Thanks @BatuhanW! - feat: upgrade axios dependency to ^1.6.2
Patch Changes
-
#5300
1bc21de08b
Thanks @ksankeerth! - fix: missing files in package nestjsx-crudThere was an issue with nestjsx-crud package due to missing files(transformErrorMessages.ts and transformHttpError.ts)
4.5.5
Patch Changes
- #5054
6ab41f88343
Thanks @MahirMahdi! - NowuseCustomMutation
can modify headers for each individual call, without setting the default headers. Previously the default headers was included in all subsequent API calls.
4.5.4
Patch Changes
- #5054
6ab41f88343
Thanks @MahirMahdi! - NowuseCustomMutation
can modify headers for each individual call, without setting the default headers. Previously the default headers was included in all subsequent API calls.
4.5.3
Patch Changes
- #5054
6ab41f88343
Thanks @MahirMahdi! - NowuseCustomMutation
can modify headers for each individual call, without setting the default headers. Previously the default headers was included in all subsequent API calls.
4.5.2
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
4.5.1
Patch Changes
-
#5022
80513a4e42f
Thanks @BatuhanW! - chore: update README.md- fix grammar errors.
- make all README.md files consistent.
- add code example code snippets.
4.5.0
Minor Changes
-
#4652
96af6d25b7a
Thanks @alicanerdurmaz! - feat: added error handling to support server-side validation errors.When the server returns default validation errors,
update
,create
,updateMany
, andcreateMany
methods will throw an error with the validation errors. This allows theuseForm
update the error state with the validation errors.
4.4.0
Minor Changes
-
#4652
96af6d25b7a
Thanks @alicanerdurmaz! - feat: added error handling to support server-side validation errors.When the server returns default validation errors,
update
,create
,updateMany
, andcreateMany
methods will throw an error with the validation errors. This allows theuseForm
update the error state with the validation errors.
4.3.4
Patch Changes
-
#4589
11241b16000
Thanks @yildirayunlu! - fix:getList
without pagination responseWithout the
limit
andoffset
parameters in thenestjsx/crud
library, the result is without paging. However, it was always expected to be paginated in the data provider. It now supports both situations.
4.3.3
Patch Changes
-
#4589
11241b16000
Thanks @yildirayunlu! - fix:getList
without pagination responseWithout the
limit
andoffset
parameters in thenestjsx/crud
library, the result is without paging. However, it was always expected to be paginated in the data provider. It now supports both situations.
4.3.2
Patch Changes
- #4285
b5cd3328504
Thanks @alicanerdurmaz! - fixed: A bug that prevented data providers from being swizzled.
4.3.1
Patch Changes
- #4285
b5cd3328504
Thanks @alicanerdurmaz! - fixed: A bug that prevented data providers from being swizzled.
4.3.0
Minor Changes
-
#4154
d6cb8f67d47
Thanks @alicanerdurmaz! - feat: added refine.config.js to support swizzling. Now with swizzle support, you can easily customize nextjs-crud data provider for your needs.feat: tests added for util functions.
chore: utility functions have been moved to their own files.
4.2.0
Minor Changes
-
#4154
d6cb8f67d47
Thanks @alicanerdurmaz! - feat: added refine.config.js to support swizzling. Now with swizzle support, you can easily customize nextjs-crud data provider for your needs.feat: tests added for util functions.
chore: utility functions have been moved to their own files.
4.1.0
Minor Changes
-
Thanks @aliemir, @alicanerdurmaz, @batuhanW, @salihozdemir, @yildirayunlu, @recepkutuk!
-
metaData
prop is now deprecated for all data provider methods. Usemeta
prop instead.For backward compatibility, we still support
metaData
prop with refine v4.create: async ({ - metaData + meta }) => { ... },
-
sort
,hasPagination
, andmetaData
parameters ofgetList
method are now deprecated. Usesorters
,pagination
, andmeta
parameters instead.For backward compatibility, we still support
sort
,hasPagination
andmetaData
props with refine v4.getList: async ({ - sort + sorters - hasPagination + pagination: { mode: "off" | "server | "client" } - metaData + meta }) => { ... },
-
-
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
3.39.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
3.38.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
3.37.0
Minor Changes
-
#3429
92c3cac9a7f
Thanks @aliemir! - Added ability to passjoin
parameter throughmetaData
to queries.Example
useList({ metaData: { join: { select: ["id", "name"], field: "categories", }, }, }); useList({ metaData: { join: ["categories", ["id", "name"]], }, }); useList({ metaData: { join: [ ["categories", ["id", "name"]], { select: ["id", "label"], field: "tags", }, ], }, });
3.36.0
Minor Changes
-
#3429
92c3cac9a7f
Thanks @aliemir! - Added ability to passjoin
parameter throughmetaData
to queries.Example
useList({ metaData: { join: { select: ["id", "name"], field: "categories", }, }, }); useList({ metaData: { join: ["categories", ["id", "name"]], }, }); useList({ metaData: { join: [ ["categories", ["id", "name"]], { select: ["id", "label"], field: "tags", }, ], }, });
3.35.0
Minor Changes
-
Only
or
was supported as a conditional filter. Nowand
andor
can be used together and nested. 🚀{ operator: "or", value: [ { operator: "and", value: [ { field: "name", operator: "eq", value: "John Doe", }, { field: "age", operator: "eq", value: 30, }, ], }, { operator: "and", value: [ { field: "name", operator: "eq", value: "JR Doe", }, { field: "age", operator: "eq", value: 1, }, ], }, ], }
3.34.0
Minor Changes
-
#2751
addff64c77
Thanks @yildirayunlu! - Onlyor
was supported as a conditional filter. Nowand
andor
can be used together and nested. 🚀{ operator: "or", value: [ { operator: "and", value: [ { field: "name", operator: "eq", value: "John Doe", }, { field: "age", operator: "eq", value: 30, }, ], }, { operator: "and", value: [ { field: "name", operator: "eq", value: "JR Doe", }, { field: "age", operator: "eq", value: 1, }, ], }, ], }
3.33.0
Minor Changes
- Updated
dataProvider
types withRequired
utility to markgetMany
,createMany
,updateMany
anddeleteMany
as implemented.
3.32.0
Minor Changes
- #2688
508045ac30
Thanks @aliemir! - UpdateddataProvider
types withRequired
utility to markgetMany
,createMany
,updateMany
anddeleteMany
as implemented.
3.31.0
Minor Changes
- Fixed payload data in delete on nestjsx data provider custom method.
3.30.0
Minor Changes
- #2465
4d07f33993
Thanks @yildirayunlu! - Fixed payload data in delete on nestjsx data provider custom method.
3.29.0
Minor Changes
- Update type declaration generation with
tsc
instead oftsup
for better navigation throughout projects source code.
3.28.0
Minor Changes
- #2440
0150dcd070
Thanks @aliemir! - Update type declaration generation withtsc
instead oftsup
for better navigation throughout projects source code.
3.27.0
Minor Changes
-
All of the refine packages have dependencies on the
@pankod/refine-core
package. So far we have managed these dependencies withpeerDependencies
+dependencies
but this causes issues like #2183. (having more than one @pankod/refine-core version in node_modules and creating different instances)Managing as
peerDependencies
+devDependencies
seems like the best way for now to avoid such issues.
3.26.0
Minor Changes
-
#2217
b4aae00f77
Thanks @omeraplak! - All of the refine packages have dependencies on the@pankod/refine-core
package. So far we have managed these dependencies withpeerDependencies
+dependencies
but this causes issues like #2183. (having more than one @pankod/refine-core version in node_modules and creating different instances)Managing as
peerDependencies
+devDependencies
seems like the best way for now to avoid such issues.
3.25.6
Patch Changes
-
Updated pagination parameters default values and added
hasPagination
property togetList
method of the data providers.Implementation
Updated the
getList
method accordingly to the changes in theuseTable
anduseList
of@pankod/refine-core
.hasPagination
is used to disable pagination (defaults totrue
)Use Cases
For some resources, there might be no support for pagination or users might want to see all of the data without any pagination, prior to these changes this was not supported in refine data providers.
-
Updated dependencies []:
- @pankod/refine-core@3.36.0
3.25.5
Patch Changes
-
#2050
635cfe9fdb
Thanks @ozkalai! - Updated pagination parameters default values and addedhasPagination
property togetList
method of the data providers.Implementation
Updated the
getList
method accordingly to the changes in theuseTable
anduseList
of@pankod/refine-core
.hasPagination
is used to disable pagination (defaults totrue
)Use Cases
For some resources, there might be no support for pagination or users might want to see all of the data without any pagination, prior to these changes this was not supported in refine data providers.
-
Updated dependencies [
ecde34a9b3
,635cfe9fdb
]:- @pankod/refine-core@3.35.0
3.25.4
Patch Changes
-
Updated axios version (0.21.4 to 0.26.1). In this version, the way of sending headers has changed as follows.
// old v0.21.4 axiosInstance.defaults.headers = { Authorization: `Bearer ${data.jwt}` }; // new v0.26.1 axiosInstance.defaults.headers.common["Authorization"] = `Bearer ${data.jwt}`;
-
Updated dependencies []:
- @pankod/refine-core@3.29.0
3.25.3
Patch Changes
-
Updated axios version (0.21.4 to 0.26.1). In this version, the way of sending headers has changed as follows.
// old v0.21.4 axiosInstance.defaults.headers = { Authorization: `Bearer ${data.jwt}` }; // new v0.26.1 axiosInstance.defaults.headers.common["Authorization"] = `Bearer ${data.jwt}`;
-
Updated dependencies []:
- @pankod/refine-core@3.28.0
3.25.2
Patch Changes
-
Updated axios version (0.21.4 to 0.26.1). In this version, the way of sending headers has changed as follows.
// old v0.21.4 axiosInstance.defaults.headers = { Authorization: `Bearer ${data.jwt}` }; // new v0.26.1 axiosInstance.defaults.headers.common["Authorization"] = `Bearer ${data.jwt}`;
-
Updated dependencies []:
- @pankod/refine-core@3.27.0
3.25.1
Patch Changes
-
#1899
fbfea418a0
Thanks @yildirayunlu! - Updated axios version (0.21.4 to 0.26.1). In this version, the way of sending headers has changed as follows.// old v0.21.4 axiosInstance.defaults.headers = { Authorization: `Bearer ${data.jwt}` }; // new v0.26.1 axiosInstance.defaults.headers.common["Authorization"] = `Bearer ${data.jwt}`;
-
Updated dependencies [
2ba2a96fd2
]:- @pankod/refine-core@3.26.0
3.22.2
Patch Changes
- Updated dependencies [
2deb19babf
]:- @pankod/refine-core@3.23.2