Patch Changes
-
#5754
56ed144a0f5
Thanks @alicanerdurmaz! - chore: TypeScript upgraded to v5.x.x. #5752fixed: Some type errors are fixed due to the TypeScript upgrade.
-
#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. -
#5714
38f129f40ee
Thanks @aliemir! - Due to the bug fix made in the@refinedev/core
,onFinishAutoSave
's returned promise can now reject and should be handled accordingly. UpdateduseForm
's auto save handler to catch the rejection without breaking the application.Additionally due to the same changes,
onFinish
should also be handled accordingly. UpdateduseForm
'ssaveButtonProps.onClick
to catch the rejection without breaking the application. -
#5755
404b2ef5e1b
Thanks @BatuhanW! - fix: incorrect type imports