- Upgrade to dart 2.17
- Default theme fields
- Add
LeaveAdminendpoint (thanks @ilpianista)
- Remove
TransferSiteendpoint (thanks @ilpianista) - Remove site creator (thanks @LouisMarotta)
- Endpoints related to lemmy
v0.15.0
- Bump
freezeddependency to1.0.0
- Add
GetUnreadCountendpoint - Add
honeypotfields
- Add reporting API
- Marked model constructors as
const
- Add show post notifs option
- Add
ResolveObjectendpoint - Add
GetSiteMetadataendpoint - Add
ModTransferCommunity - Add blocking actions
- Models with
instanceHostnow take it explicitly in the constructor
- new stuff from lemmy v0.11.0
Jwthas a different constructor and now provides acopyWithmethod
- API v3
- Null safety
- Removed API v1. It didn't even work properly and lemmy completely removed thus no point in keeping
- Websocket joins!
communityJoin,userJoin,postJoin, andmodJoincan be used to listen to particular events SortTypehas now anewCommentssortPostAggregateshas now anewestCommentTimeNecroproperty and has correctlyDateTimetypes instead ofString
- All
DateTimeobjects are now explicitly UTC time - All queries have now constant constructors
GetReplies.sortis now ofSortTypetypeshowNsfwfromRegisterquery is now correctly a boolean instead of a string
FullSiteView.federatedInstancesnow has a different structure
- Added
MostCommentstoSortType
- Added new Lemmy
v0.9.1fields
- V2 Lemmy api is now available. The use has changed to make
lemmy_api_clientmuch easier and less tedious to maintain
- Clients are now split between v1 (
package:lemmy_api_client/v1.dart) and v2 (package:lemmy_api_client/v2.dart) Pictrsis now inpackage:lemmy_api_client/pictrs.dart
- All models are now generated with
freezed+json_serializable. This unlocks a handy.copyWith()method on all models and make all models data classes (which means they can be compared with==value wise). Models are now more null-safe makinglemmy_api_clientmore ready for null-safety
Usermodel now uses enums for its fields
- Fixed v0.8.4 (third time's the charm?)
- Fixed v0.8.3
- Fixed v0.8.2
- All models are now augmented with a
instanceHostproperty that shows where did the response come from. Very useful when dealing with multiple instances at once and not knowing what object belongs to what instance.
- Added
localvariant toPostListingType
- Pict-rs upload requires auth
- Pict-rs v0.2
- Exporting pictrs models
- Error handling in pictrs delete method
- Added
uploadanddeletepictrs endpoints
- Removed statically typed errors, now every error is forwarded by
LemmyApiExceptionwith a i18n message
GET /comment/list
- Added missing auth field in
getPost - Correctly decoding utf8 bodies
- type on
Searchmodel is now an enum
myVoteis now an enum
savePostnow usesPUTinstead ofPOST
- Added
RateLimitException
- Changed
UnknownResponseExceptiontoUnknownResponseErrorand exposed it as a public member
- Added rest of the user endpoints:
POST /user/ban
- Added rest of the site endpoints:
PUT /site/configPOST /sitePUT /sitePOST /site/transfer
- Added rest of the post endpoints:
POST /post/stickyPOST /post/locked
- Added rest of the community endpoints:
POST /communityPUT /communityPOST /community/ban_userPOST /community/modPOST /community/deletePOST /community/removePOST /community/transfer
- Added rest of the misc endpoints:
POST /admin/addGET /modlog
- Renamed FullPost to FullPostView
- Moved toJson from UserView to User
- Jwt and User is serializable to json
- Changed examples to reflect changes
- Renamed
LemmyAPItoLemmyApi - Endpoints that return a jwt now return a parsed jwt instead of just a raw one
- Exporting all models
- lowered meta semver range
- examples for pub.dev
- Works on the web
- Logo now is displayed on pub.dev
POST /commentPUT /commentPOST /comment/deletePOST /comment/removePOST /comment/mark_as_read~~POST~~ PUT /comment/savePOST /comment/likeGET /communityGET /community/listPOST /community/followGET /user/followed_communitiesGET /categoriesPOST /postGET /postGET /post/listPOST /post/likePUT /postPOST /post/deletePOST /post/removePOST /post/saveGET /siteGET /site/config~~POST~~ GET /searchPUT ~~/save_user_settings~~ /user/save_user_settingsPOST /user/loginGET /userGET /user/repliesGET ~~/user/mentions~~ /user/mentionPOST /user/mention/mark_as_readGET /private_message/listPOST /private_messagePUT /private_messagePOST /private_message/deletePOST /private_message/mark_as_readPOST /user/mark_all_as_readPOST /user/delete_account
- First release of
lemmy_api_client. Contains an http interface for the lemmy API for the "core" endpoints (mod/admin endpoints are coming soon)