Skip to content

use base64 to encode/decode raw_metadata#74

Open
ShuiRuTian wants to merge 2 commits into
zkat:mainfrom
ShuiRuTian:base64-encode-raw-meta
Open

use base64 to encode/decode raw_metadata#74
ShuiRuTian wants to merge 2 commits into
zkat:mainfrom
ShuiRuTian:base64-encode-raw-meta

Conversation

@ShuiRuTian

Copy link
Copy Markdown
Contributor

Use base64 to fix #72

However, this is a breaking change, we could not read the origin data any more.

Should we also bump INDEX_VERSION? And what about migration?

Maybe we could provide a deserializer, which could deserialize both 2 different data type (array and string) to Vec, but there is no way to reuse existing Vec visitor, I guess we have to copy and paste, kind of dirty.

Any other concerns or thoughts?

@zkat

zkat commented May 10, 2024

Copy link
Copy Markdown
Owner

Yes, this is a breaking change, and yes, you'll have to bump INDEX_VERSION.

In general, I don't worry too much about migration because cacache is intended to be a cache, not persistent storage, so if you can't just throw everything away, you're probably using it wrong.

@ShuiRuTian

Copy link
Copy Markdown
Contributor Author

Sounds good.

I just fixed and bumped INDEX_VERSION, but I did not bump the version of this package, I guess it's more proper to leave this work to the real owner.

@zkat

zkat commented May 12, 2024

Copy link
Copy Markdown
Owner

Yeah, I'll do that next time I do a semver-major release :)

@zkat zkat added the semver-major Semver-breaking change label May 12, 2024
@ShuiRuTian

Copy link
Copy Markdown
Contributor Author

Hi @zkat, maybe we could release another major version? It's about 6 months since last release.

@ShuiRuTian

Copy link
Copy Markdown
Contributor Author

@zkat ping~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-major Semver-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"raw_metadata" is not raw after serialization

2 participants