this post was submitted on 21 Jun 2023
2 points (100.0% liked)

Lemmy Support

4661 readers
38 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I'm working on a little tool for Lemmy using the rust backend (lemmy_api_common crate 0.17.4).

I've tested it against some 0.17.4 instances with no issues, but yesterday I went to test it more thoroughly on the official testing instances and had JSON parsing issues. I realized later that these servers are currently running 0.18.X.

Is this a bug? Or are we expecting that even within the "v3" APIs that you'll have breaking changes between Lemmy versions?

you are viewing a single comment's thread
view the rest of the comments
[–] Jamie@jamie.moe 1 points 1 year ago

That's correct, they're the same datatypes the server uses all over. Though, I don't think keeping it up to date would be that bad unless they seriously change things around all at once. Particularly if you encapsulate the data well for the end library user.

My project is making wrapper libraries around all of the types and implementing things based on that.