Skip to content
This repository was archived by the owner on May 28, 2022. It is now read-only.

Commit dc072cb

Browse files
committed
Merge branch 'release/v3.9.9'
2 parents e68b287 + 60c8596 commit dc072cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+3696
-2664
lines changed

CHANGELOG.md

Lines changed: 94 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,39 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
99

10+
## [v3.9.9] 2022-02-19
11+
12+
### Added
13+
14+
- added `ActiveUsersChartPayload` class
15+
- added `DriveLocalChartPayload` class
16+
- added `DriveRemoteChartPayload` class
17+
- added `DriveChartPayload` class
18+
- added `RawDriveLocalChart` class
19+
- added `RawDriveRemoteChart` class
20+
- added `RawDriveChart` class
21+
- added `RawActiveUsersChart` class
22+
- added `ChartManager` class
23+
- added `get_user` method to`FollowRequestManager` class
24+
- feat: ClientActionsクラスに`chart`変数を追加
25+
- `Context` クラスを追加しました
26+
27+
### Changed
28+
29+
- Changed the attribute `i` to `user` to access the bot itself
30+
- モデルに `__slots__` を定義しました
31+
- 副次的な効果としてメモリの使用量などが低下します
32+
33+
### Fixed
34+
35+
- `FollowManager` クラスの `remove` メソッドがうまく動かない
36+
1037
## [v3.3.0] 2022-01-25
1138

1239
### Added
1340

1441
- `get_files` メソッドを追加しました。
15-
- **It will be changed to a generator in the next update.**
42+
- **It will be changed to a generator in the next update.**
1643

1744
## [v3.2.1] 2022-01-24
1845

@@ -29,17 +56,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2956
### Fixed
3057

3158
- 以下の Note クラスのメソッドで note_id が必須になっていたのを修正
32-
- `add_clips`
33-
- `create_renote`
34-
- `create_quote`
35-
- `get_note`
36-
- `get_replies`
37-
- `get_reaction`
38-
- `delete`
59+
- `add_clips`
60+
- `create_renote`
61+
- `create_quote`
62+
- `get_note`
63+
- `get_replies`
64+
- `get_reaction`
65+
- `delete`
3966
- 以下の引数が正常な動作になりました
40-
- `noExtractMentions`
41-
- `noExtractHashtags`
42-
- `noExtractEmojis`
67+
- `noExtractMentions`
68+
- `noExtractHashtags`
69+
- `noExtractEmojis`
4370

4471
## [v3.1.0] 2022-01-23
4572

@@ -90,28 +117,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
90117
- 内部変更: `UserActions``ClientActions` のメソッドを別クラスに分割
91118
- Allow only property-based access to most data classes.
92119
- **BREAKING CHANGE**: `User` クラスのプロパティーを以下のように変更
93-
- `name` -> `nickname`
94-
- `username` -> `name`
120+
- `name` -> `nickname`
121+
- `username` -> `name`
95122
- **BREAKING CHANGE**: `User` クラスの `follow` `unfollow` メソッドを削除
96-
- 今後は `User` クラスの `action` メソッドから `add` `remove` メソッドを使用できます
123+
- 今後は `User` クラスの `action` メソッドから `add` `remove` メソッドを使用できます
97124
- **BREAKING CHANGE**: モデル名の変更 `Following` -> `Follower`
98125
- **BREAKING CHANGE**: モデル名の変更 `Follower` -> `Followee`
99126
- **BREAKING CHANGE**: モデルの\_state 属性を\_\_state に変更
100127
- **BREAKING CHANGE**: `Following` クラスのメソッドを以下のとおりに変更
101-
- `accept_request` -> `accept`
102-
- `reject_request` -> `reject`
103-
- `follow` -> `add`
104-
- `remove_follow` -> `remove`
128+
- `accept_request` -> `accept`
129+
- `reject_request` -> `reject`
130+
- `follow` -> `add`
131+
- `remove_follow` -> `remove`
105132

106133
## Removed
107134

108135
- Unused class UserDetails
109-
- from now on use `RawUserDetails`
136+
- from now on use `RawUserDetails`
110137
- Unused file view.py
111138
- **BREAKING CHANGE**: removed `post_note` method
112-
- from now on use `self.client.note.send`
139+
- from now on use `self.client.note.send`
113140
- **BREAKING CHANGE**: removed `note_delete` method
114-
- from now on use `self.client.note.delete`
141+
- from now on use `self.client.note.delete`
115142

116143
## [v2.1.0-alpha] 2021-12-30
117144

@@ -165,13 +192,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
165192
### Changed
166193

167194
- The following classes no longer inherit from `BaseModel`
168-
- Properties
169-
- Folder
170-
- File
171-
- Channel
172-
- PinnedNote
173-
- PinnedPage
174-
- FieldContent
195+
- Properties
196+
- Folder
197+
- File
198+
- Channel
199+
- PinnedNote
200+
- PinnedPage
201+
- FieldContent
175202
- internal change: optimizing import
176203
- internal change: Renamed `PinnedPage` to `PinnedNote`
177204
- **BREAKING CHANGE**: Moved the post_note method of ConnectionState to NoteActions
@@ -209,8 +236,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
209236
- add `favorite`, `add_to_clips`, `add_reaction` and `remove_favorite` method to `Note` class
210237
- add `favorite`, `add_note_to_clips`, `add_reaction_to_note` and `remove_favorite` method to `NoteAction` class
211238
- add class
212-
- NoteActions
213-
- ClientActions
239+
- NoteActions
240+
- ClientActions
214241

215242
### Fixed
216243

@@ -222,21 +249,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
222249

223250
- `Note` クラスに `reply` メソッドを追加しました
224251
- 以下のクラスを追加
225-
- MisskeyWebSocket
226-
- MisskeyClientWebSocketResponse
227-
- Route
228-
- HTTPClient
252+
- MisskeyWebSocket
253+
- MisskeyClientWebSocketResponse
254+
- Route
255+
- HTTPClient
229256
- Client に以下のメソッドを追加
230-
- post_chat
231-
- delete_chat
232-
- post_note
233-
- 今後のノート投稿はこちらを使用してください
234-
- delete_note
235-
- get_instance
236-
- fetch_instance
237-
- get_user
238-
- fetch_user
239-
- upload_file
257+
- post_chat
258+
- delete_chat
259+
- post_note
260+
- 今後のノート投稿はこちらを使用してください
261+
- delete_note
262+
- get_instance
263+
- fetch_instance
264+
- get_user
265+
- fetch_user
266+
- upload_file
240267
- `rich` を使ったデバッグ機能を追加しました
241268
- `file_upload` 関数を追加しました
242269
- `run` メソッドに `debug` 引数を追加しました
@@ -253,11 +280,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
253280

254281
- api 周りでのエラー出力が分かりやすくなりました
255282
- ~~今までの `Note` クラスに当たるものを `NoteContent` に変更し別途 `Note` クラスを作成させるようにしました~~
256-
- ~~これは不要なデータなどを生成しないようにすることが目的です。~~
283+
- ~~これは不要なデータなどを生成しないようにすることが目的です。~~
257284
- 部分的に Pydantic を廃止
258-
- 素直に使わないほうが部分的に楽だから
285+
- 素直に使わないほうが部分的に楽だから
259286
- `Drive` クラスの `upload` メソッドで例外 `InvalidParameters` を発生させるようにしました
260-
- これは`to_file`, `to_url` の両方がないと変数が定義されず、`Drive`クラスの生成に失敗する可能性があるからです。
287+
- これは`to_file`, `to_url` の両方がないと変数が定義されず、`Drive`クラスの生成に失敗する可能性があるからです。
261288
- `get_user` メソッドが 非同期になりました。
262289
- 内部変更: `utils.py` の一部を Cython を用いたものに変更
263290
- 内部変更: `DriveAction` を廃止し, `file_upload` を使用するように
@@ -275,8 +302,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
275302
- **破壊的変更**: `Reaction` クラスと `ReactionContent` を結合させました
276303
- **破壊的変更**: `Chat` クラスと `ChatContent` を結合させました
277304
- **破壊的変更**: `Drive` クラスの `upload` メソッドで使用できる引数名を変更、キーワード引数を強制するようにしました。
278-
- 引数名の変更は次の通りです `url` => `to_url`, `path` => `to_file`
279-
- 強制されるキーワード引数は次の通りです `force`, `is_sensitive`
305+
- 引数名の変更は次の通りです `url` => `to_url`, `path` => `to_file`
306+
- 強制されるキーワード引数は次の通りです `force`, `is_sensitive`
280307

281308
### Fixed
282309

@@ -287,21 +314,21 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
287314
### Removed
288315

289316
- `Router` クラスから以下のメソッドを削除しました
290-
- main_channel
291-
- home_time_line
292-
- local_time_line
293-
- global_time_line
317+
- main_channel
318+
- home_time_line
319+
- local_time_line
320+
- global_time_line
294321
- クラスの削除について
295-
- `ChatContent`
296-
- `ReactionContent`
297-
- `NoteContent`
298-
- `UserActions`
299-
- `UserProfile`
300-
- `UserProfile`にあったものは `User` に統合され、詳細な情報は `User` クラスの details オブジェクト(`UserDetails`) から取得可能です
322+
- `ChatContent`
323+
- `ReactionContent`
324+
- `NoteContent`
325+
- `UserActions`
326+
- `UserProfile`
327+
- `UserProfile`にあったものは `User` に統合され、詳細な情報は `User` クラスの details オブジェクト(`UserDetails`) から取得可能です
301328
- **破壊的変更**: `WebSocket` クラスを削除しました
302-
- 今後は aiohttp の `ws_connect` メソッドを使用します
329+
- 今後は aiohttp の `ws_connect` メソッドを使用します
303330
- **破壊的変更**: `requests` ライブラリを削除しました
304-
- 今後は aiohttp の `request` メソッドを使用します
331+
- 今後は aiohttp の `request` メソッドを使用します
305332

306333
## [v0.2.5] 2021-10-07
307334

@@ -321,7 +348,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
321348
### Changed
322349

323350
- **破壊的変更**: `commandFrameWork` を使用しない場合の bot モジュールの名前を client に変更しました
324-
- 主にこれは Discord.py に近づけるためと `commandFrameWork` の bot モジュールとの差別化を目的としています
351+
- 主にこれは Discord.py に近づけるためと `commandFrameWork` の bot モジュールとの差別化を目的としています
325352
- `on_mention` イベントの `.text` に自分自身のメンションを含まないように、必要な場合は `content` をご利用ください
326353
- デフォルトで接続するチャンネルを `globalTimeline` から `main` に変更しました。グローバルタイムラインを見る場合は `Router` をご利用ください
327354
- `add_poll` の引数位置が変更されています。ご注意ください
@@ -463,8 +490,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
463490
- Added Each event method.
464491

465492
[v0.2.5]: https://github.com/yupix/mi.py/compare/v0.1.0-5...v0.2.5
493+
466494
[v0.1.5]: https://github.com/yupix/mi.py/compare/v0.1.0-1a...v0.1.0-5
495+
467496
[v0.1.0-1a]: https://github.com/yupix/mi.py/compare/v0.1.0a...v0.1.0-1a
497+
468498
[v0.1.0a]: https://github.com/yupix/mi.py/compare/v0.0.1a...v0.1.0a
499+
469500
[v0.0.1a]: https://github.com/yupix/Mi.py/releases
501+
470502
[unreleased]: https://github.com/yupix/mi.py/compare/master...HEAD

README-ja.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# Mi.py
22

3+
<a><img src="https://img.shields.io/github/commit-activity/w/yupix/Mi.py"></a>
4+
<a><img src="https://img.shields.io/pypi/dm/Mi.py?label=PyPI"></a>
35
[![CodeFactor](https://www.codefactor.io/repository/github/yupix/mi.py/badge)](https://www.codefactor.io/repository/github/yupix/mi.py)
46
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/f5acd9da804d4a11b031d36dbd398067)](https://www.codacy.com/gh/yupix/Mi.py/dashboard?utm_source=github.com&utm_medium=referral&utm_content=yupix/Mi.py&utm_campaign=Badge_Grade)
57
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyupix%2FMi.py.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyupix%2FMi.py?ref=badge_shield)
6-
[![Join the chat at https://gitter.im/yupix/Mi.py](https://badges.gitter.im/yupix/Mi.py.svg)](https://gitter.im/yupix/Mi.py?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
78
<a href="https://discord.gg/CcT997U"><img src="https://img.shields.io/discord/530299114387406860?style=flat-square&color=5865f2&logo=discord&logoColor=ffffff&label=discord" alt="Discord server invite" /></a>
8-
<a><img src="https://img.shields.io/github/commit-activity/w/yupix/Mi.py"></a>
9+
[![Join the chat at https://gitter.im/yupix/Mi.py](https://badges.gitter.im/yupix/Mi.py.svg)](https://gitter.im/yupix/Mi.py?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
10+
911

1012
## 概要
1113

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Mi.py
22

3+
<a><img src="https://img.shields.io/github/commit-activity/w/yupix/Mi.py"></a>
4+
<a><img src="https://img.shields.io/pypi/dm/Mi.py?label=PyPI"></a>
35
[![CodeFactor](https://www.codefactor.io/repository/github/yupix/mi.py/badge)](https://www.codefactor.io/repository/github/yupix/mi.py)
46
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/f5acd9da804d4a11b031d36dbd398067)](https://www.codacy.com/gh/yupix/Mi.py/dashboard?utm_source=github.com&utm_medium=referral&utm_content=yupix/Mi.py&utm_campaign=Badge_Grade)
57
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fyupix%2FMi.py.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fyupix%2FMi.py?ref=badge_shield)
6-
[![Join the chat at https://gitter.im/yupix/Mi.py](https://badges.gitter.im/yupix/Mi.py.svg)](https://gitter.im/yupix/Mi.py?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
78
<a href="https://discord.gg/CcT997U"><img src="https://img.shields.io/discord/530299114387406860?style=flat-square&color=5865f2&logo=discord&logoColor=ffffff&label=discord" alt="Discord server invite" /></a>
8-
<a><img src="https://img.shields.io/github/commit-activity/w/yupix/Mi.py"></a>
9+
[![Join the chat at https://gitter.im/yupix/Mi.py](https://badges.gitter.im/yupix/Mi.py.svg)](https://gitter.im/yupix/Mi.py?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
910

1011
[日本語](./README-ja.md)
1112

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
# -- Project information -----------------------------------------------------
2020

2121
project = "Mi.py"
22-
copyright = "2021, yupix"
22+
copyright = "2022, yupix"
2323
author = "yupix"
2424

2525
# The full version, including alpha/beta/rc tags
26-
release = "2.1.1"
26+
release = "3.9.9"
2727

2828
# -- General configuration ---------------------------------------------------
2929

0 commit comments

Comments
 (0)