Releases: neet/masto.js
Releases Β· neet/masto.js
1.3.4
1.3.3
1.3.2
1.3.1
New features π
- Endorsement API setter supported (
pinAccount,unpinAccount) - Add
replies_countto Status entity interface - Fetching account who reblogged/favourited status supported (
fetchStatusRebloggedBy,fetchStatusFavouritedBy) - Many endpoints that returns data with pagination are now returns Async Iterable
Fixes β
fetchAccountsInListwere renamed tofetchListAccountFilterContextTypesand some interfaces were renamed- Fix streaming API connection error
1.3.0
New features π
- V2 search API supported
- Endorsements API supported (partially right now)
Breaking changes π£
new Mastodon()now requires argumentsurl,streamingUrlandtokenstreamis no longer exported. UsestreamUser,streamPublicTimeline,streamCommunityTimeline,streamTagTimelineandstreamListTimelineinstead.- Those streaming related functions now return
EventEmitterinstead ofWebSocket.connection. You can subscribe events viaonmethod. Here's example fetchTimelineis no longer exported. UsefetchHomeTimeline,fetchPublicTimeline,fetchCommunityTimeline,fetchListTimelineandfetchTagTimelineinstead.- Those timeline related functions plus
fetchAccountStatusesandfetchFavouritedStatusesare now returnAsyncIterableIteratorinstead ofStatus[]. Here's new example.
Updates π§
- Some type of arguments/objects are improved
- Some types are now more strict
- Bug fixes
1.2.0
New features:
- User recommendation API (mastodon/mastodon#7918)
- Instance activity/peers API (mastodon/mastodon#6125)
- Filtering API (mastodon/mastodon#7905)
Breaking changes:
stream()now returnsPromise<WebSocket.connection>for error handling (#1)deleteList()has been renamed toremoveList()deleteStatus()has been renamed toremoveStatus()
Fixes:
- Some type definition of entities have updated