v0.5.0 #86
yupix
announced in
Announcements
v0.5.0
#86
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Features ✨
Clientでasync with構文がサポートされました一時的にセッションを作成したい場合などに
loginメソッドやclose_sessionメソッドを使用するのは非常に手間であるため、一時的にセッションを作成したいといった場合におすすめします。一意のIDを持つモデルで比較演算がサポートされました
サポートされた演算は
__eq__と__ne__の2つです。一意のIDと判断しにくい物は現状サポートしていません。一意のIDがあるにもかかわらず、サポートされていないモデルがある際はIssueを作成してください。
File モデルに
apiプロパティーが追加されました今まではモデルに
apiプロパティーが無かったため、apiプロパティーからアクションにアクセスし、対象のメソッドに対してファイルIDなどといった引数を自分で渡す必要がありましたが、今後はモデルから直接実行できます。FileActionsにsaveメソッドが追加されました指定したパス、またはBufferにファイルをダウンロードできるようになりました。
パスを指定する場合
Bufferを指定する場合:
以下のエンドポイントがサポートされました
/api/admin/emoji/set-license-bulk/api/antennas/create/api/antennas/delete/api/antennas/list/api/antennas/notes/api/antennas/show/api/antennas/update/api/clips/create/api/clips/delete/api/clips/list/api/clips/show/api/clips/update/api/notes/clips/api/clips/add-note/api/clips/remove-note/api/clips/notes/api/clips/my-favorites/api/users/clips/api/channels/create/api/channels/featured/api/channels/follow/api/channels/followed/api/channels/owned/api/channels/show/api/channels/unfollow/api/channels/update/api/channels/favorite/api/channels/unfavorite/api/channels/my-favorites/api/channels/searchBreaking changes 💔
全取得の際の引数
allがget_allに変更されます。影響を受けるのはキーワード引数を使用していた方です。位置引数を使用していた方は特に問題ありません。
NoteManager.getメソッドが削除されました何故あったのか分かりませんが、Managerの責務から逸脱しているためです
NoteActionsに関する変更
NoteActions.getNoteActions.fetchメソッドにおいてnote_idが optionalになっているのはおかしいため必須の引数に変更しましたFixed 🛠️
all引数が存在しないが、 built-inのallが存在することで動作していた箇所が修正されましたClientNoteActionsにおいてnote_idが無かった場合の例外処理が無かった為追加Other notable changes 📜
is_explorableを使用できるようになりました。server_rulesパラメータが使用できるようになりました13.11.3以降のバージョン(13.11.3は含みません)を使用している場合は必須であり、それ以前のバージョンを使用している場合は指定するとエラーが発生する可能性があります。NoteActions.get_repliesがClientNoteActions.getripliesに移動され、ClientNoteActionsでも使用可能になりました。(NoteActionsはClientNoteActionsを継承しているため今後とも使用できます)FederationActions.get_followersFederationActions.get_followingFederationActions.get_usersAdminAnnouncementActions.getsAdminRoleModelActions.get_usersAdminAdvertisingActions.get_listAdminActions.get_moderation_logsNoteActions.get_repliesNoteActions.getsFileActions.get_filesClientFolderActions.get_filesDriveActions.get_foldersPaginationクラスが追加されましたFollowRequestクラスが削除されましたThis discussion was created from the release v0.5.0.
Beta Was this translation helpful? Give feedback.
All reactions