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
-
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/search
Breaking changes 💔
全取得の際の引数
all
がget_all
に変更されます。影響を受けるのはキーワード引数を使用していた方です。位置引数を使用していた方は特に問題ありません。
NoteManager.get
メソッドが削除されました何故あったのか分かりませんが、Managerの責務から逸脱しているためです
NoteActionsに関する変更
NoteActions.get
NoteActions.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_followers
FederationActions.get_following
FederationActions.get_users
AdminAnnouncementActions.gets
AdminRoleModelActions.get_users
AdminAdvertisingActions.get_list
AdminActions.get_moderation_logs
NoteActions.get_replies
NoteActions.gets
FileActions.get_files
ClientFolderActions.get_files
DriveActions.get_folders
Pagination
クラスが追加されましたFollowRequest
クラスが削除されましたThis discussion was created from the release v0.5.0.
Beta Was this translation helpful? Give feedback.
All reactions