Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking changes #36

Closed
yaymalaga opened this issue Sep 5, 2019 · 4 comments
Closed

Breaking changes #36

yaymalaga opened this issue Sep 5, 2019 · 4 comments
Labels
question Further information is requested

Comments

@yaymalaga
Copy link

I know Hive isn't ready for production apps, but in my case I'm planning to use the library for caching purposes, so if the data is lost it isn't a big deal.

As I have seen breaking changes in the binary format, I would like to know how Hive manages these changes from version to version. Is the data just removed? Is there anything I should take into account?

@yaymalaga yaymalaga added the question Further information is requested label Sep 5, 2019
@simc
Copy link
Member

simc commented Sep 5, 2019

There will be hopefully only one more version which breaks the binary format.
From version 1.0.0 onwards this will certainly never happen again or Hive will automatically migrate all your data.

If it happens now (before the first stable version) your app might crash until you clean the cache.

@yaymalaga
Copy link
Author

So it's something you could handle for now with a try and catch to remove the box data, right?

@simc
Copy link
Member

simc commented Sep 5, 2019

Exactly

@yaymalaga
Copy link
Author

Then no problem. Good luck with the 1.0.0 version, looking forward to use it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants