deep-jade
deep-jade•8mo ago

Hello, I started my first small Refine

Hello, I started my first small Refine project ~5 months ago as a backend dev. Now I need to add some functionality, so I thought, let's first update all dependencies. I could update all minor versions without a problem using yarn upgrade, but when updating some major versions something broke regarding DataGrid. Now my question, what and when is the recommended way/time to upgrade? Should we just do it manually like I tried or is there some sort of common tool or combination of versions provided by Refine? When I create a new project using npm create refine-app@latest I see it does not contains the latest versions either. So should I wait then?
10 Replies
environmental-rose
environmental-rose•8mo ago
Hello @MajorD, I'm sorry for your trouble. We don't make breaking changes when releasing minor version, when releasing major version we support them with upgrade documentation and codemod. I can say with confidence that you can upgrade Refine at any time. npm create refine-app@latest can generate package.json may have older minor versions but it will always install the latest version because we used the caret prefix. you may have found a bug or a situation that we overlooked. - can you give us more detail please?
- what kind of error do you get? - what is your current version and the version you want to update?
genetic-orange
genetic-orange•8mo ago
My main question is how should I update dependencies in this project?
environmental-rose
environmental-rose•8mo ago
Of course, we always want users to use the latest version
genetic-orange
genetic-orange•8mo ago
To give some more info. I created a new refine-app and the package.json contains "@refinedev/core": "^4.47.1", while the newest version is 4.49.0
environmental-rose
environmental-rose•8mo ago
there should be no problem. we don't do breaking change in minor updates. please let us know if you encounter a problem
genetic-orange
genetic-orange•8mo ago
Ok, bear with me (backend dev here). So I should just use yarn upgrade then?
environmental-rose
environmental-rose•8mo ago
yarn upgrade is fine also you can use yarn run refine update because yarn upgrade update all dependencies in your project. but yarn run refine update updates only refine related packages
genetic-orange
genetic-orange•8mo ago
What is recommended? How do I know which version of DataGrid is compatible with Refine for example. Or should I just try to use the newest anyway
environmental-rose
environmental-rose•8mo ago
yarn run refine update is more safe in this case you can use @mui/x-data-grid@6.x.x with Refine we didn't tested @mui/x-data-grid@7.x.x yet. so stick to versiyon 6 is safe right now. but of course we will release version 7 support in near future
genetic-orange
genetic-orange•8mo ago
Alright, thanks for the info. I will keep that on 6.x for now 🙂