This repository was archived by the owner on Aug 15, 2025. It is now read-only.
(see #617)
Major changes in this version include:
- An overhaul of how errors are handled and error cases, including JSON error support (#607)
- A new API for ignoring users + updates to the
Relationship
struct (#606) - Several internal changes and fixes
Public API changes
- changes to
ChorusError
:ReceivedErrorCode
is nowReceivedError
, which contains a more specific error objectInvalidFormBody
has been removedInvalidResponse
now contains the response's HTTP status
- due to the ratelimiter changes,
Instance
methods that send API requests now need an&mut self
reference - to avoid cloning
Instance
s, auth routes (login, register and mfa) now take a clonedShared<Instance>
. The best practice way to handleInstance
s is now to callinto_shared()
, storeShared<Instance>
instead ofInstance
and call.clone()
on theArc
when creating newChorusUser
s - new fields in the
Relationship
struct:is_spam_request
,stranger_request
,origin_application_id
anduser_ignored
Additions
ChorusUser::bulk_remove_relationships
ChorusUser::ignore_user
ChorusUser::unignore_user
- JSON Error and Api error types
Bugfixes
- #616 -
Instance
s are no longer cloned when logging into or registering accounts
Internal changes
- #607 (refactoring the internal ratelimiter and request logic, making it support requests without a
ChorusUser
) - #608 by @zicklag (updating internal self-updating struct logic, removing an unsafe block for safer code)
- #612 and #613 by @bitfl0wer (improving CI, more checks for security)
- #614 (updating the url of discord userdoccers links in documentation)
- several dependency bumps