Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiPACそのものはv13のみにし、他のバージョンはブランチを分けて開発する #94

Open
yupix opened this issue Oct 3, 2023 · 0 comments
Assignees
Labels
kind/Feature✨ This adds/improves/enhances a feature

Comments

@yupix
Copy link
Owner

yupix commented Oct 3, 2023

Summary

pip install mipac でインストールされるmipacは最新のMisskey公式に沿ったコードのみを提供するようにする

  • v11やv12はそれぞれ別々のブランチを作成する
  • 今まで通りのv11,v12,v13をサポートしたコードはブランチを切って残しておく

v11やv12を使うときはどうするか

pip install git+ でリポジトリとブランチを指定することで対象のバージョンを提供できるようにする

メリット

v13では既に廃止されているチャット等の機能が他のバージョンとの兼ね合いで削除できなかったりすることでコードの肥大化が起きているがそれを抑止できる。また、ライブラリ使用者としても既に削除されているエンドポイントのメソッドがあることによって、「存在すると思って使ったらエラーが起きた」みたいなことに繋がってしまうのを無くせる(DXの改善)

その他のメリット

  • バージョンの判別機構などを削除できる
  • configでバージョンやfork等の情報が要らなくなる
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/Feature✨ This adds/improves/enhances a feature
Projects
None yet
Development

No branches or pull requests

2 participants
@yupix and others