You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.3 KiB
3.3 KiB
0.13 (2018/08/27)
Features
-
Registrationnow duplicates theAppBuilderAPI, so you can replace:let app = App::builder(); app.client_name("test-client"); let registration = Registration::new("http://example.com") .register(app)?;with this:
let registration = Registration::new("http://example.com") .client_name("test-client") .build()?;You can still call use the
Registration&AppBuilderAPIs like before, but any App passed to.registerwill supercede anything app config set on theRegistrationobject itself.In future releases, this will become a hard error.
-
elefren::status_builder::StatusBuilder::new()now takes anything that implementsDisplayinstead of specifically an ownedString
Breaking Changes
- The
elefren::data::tomlmodule has been moved toelefren::helpers::toml - Because of the changes to
Registration, theelefren::apps::preludemodule has been removed. The types that are still necessary from that prelude have been moved toelefren::prelude, butelefren::apps::Appwill have to be imported separately elefren::entities::account::CredientialsBuilderhas been moved toelefren::entities::account::CredentialsBuilder(note the spelling difference)Registered::completenow takes a&strinstead of aString
Compatibility
elefren::entities::instance::Instancenow has themax_toot_charsproperty, for use with the Pleroma and Glitch-soc APIs
0.12 (2018/08/23)
Features
Page::items_iteradded, abstracts over "next_page" logicelefen::preludeandelefen::apps::preludemodules added to more easily import all necessary types- Helpers added to allow serialization & deseriasization of
Datatypes totoml
Breaking Changes
- Combined all parameters to
mastodon.statuses(exceptid) to their own type,StatusesRequest - All API methods on
Mastodontype moved into a trait,MastodonClient, to enable better mocking during tests Mastodon::from_data(Data)was changed toMastodon::from(Data)AppBuilderwas changed, useApp::builder()insteadRegistrationwas broken up to enable better registration flow
Documentation
- All API methods now have doc comments
- All docs were updated for the new breaking changes
Compatibility
- Login to pleroma instances was fixed
0.11
- Added more examples to
examplesdirectory. - Fixed
followandunfollowroutes. - Updated
movedfield to beBox<Account>.
0.10
- Added the ability to handle paged entities like favourites and such.(Only favourites in prerelease)
- Added optional
sourceandmovedfields toAccount. - Added
Sourcestruct to match with theAccount.sourcefield. - Added
CredientialsBuilderstruct for updating profile usingverify_credientials. - Attachment now handles being sent an empty object, which is converted
to
None. - Added ombed data fields to
Card. - Added
versionandurlsfields toInstance. - Added
id,muting_notifications, anddomain_blockingtoRelationship. - Added
emojis,language, andpinnedfields toStatus - Added
Emojistruct. - Added
ListandMentionstructs(matching routes not added yet). - Added example that prints your profile.
- Updated dependencies