From 4df7f2e75619a6ecfe0a94ad9f04914c24589278 Mon Sep 17 00:00:00 2001 From: librarian <57712678+LibraryLibrarian@users.noreply.github.com> Date: Mon, 18 Aug 2025 06:53:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7?= =?UTF-8?q?=E3=83=B30.1.4-beta=20=E3=83=AA=E3=83=AA=E3=83=BC=E3=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ネットワークの安定性向上のため、リトライポリシーと`retry()`ユーティリティを追加 - OAuthサーバー情報取得、トークン交換、MiAuthチェックAPI、ユーザー取得APIにリトライを適用 - デフォルトのネットワーキングタイムアウトを設定(接続10秒、送信20秒、受信20秒) - `/api/i`リクエストのスタイルを変更し、トークンをJSONボディで送信 - 使用されていない設定モデルを削除し、ドキュメントを更新 --- CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ad28ce..529b8f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.4-beta] - 2025-08-18 + +### Added +- Network stability improvements: + - Introduced `RetryPolicy` and `retry()` utility (`lib/src/net/retry.dart`) + - Applied retry to OAuth server info fetch, token exchange, MiAuth check API, and `/api/i` user fetch +- Default networking timeouts (overridable): connect 10s / send 20s / receive 20s + - `MisskeyOAuthClient`, `MisskeyMiAuthClient`, and `MisskeyAuthManager` now accept timeout overrides +- Documentation: + - Added API doc comments for `AccountKey`, `StoredToken`, `AccountEntry`, `TokenStore`, `SecureTokenStore`, and `MisskeyAuthManager` + +### Changed +- `/api/i` request now follows common Misskey style: send token in JSON body with `{"i": ""}` (instead of Authorization header) +- `Dio` now receives Map bodies directly (Dio handles JSON encoding internally) + +### Removed +- Unused/duplicated config model: `lib/src/models/auth_config.dart` +- Accidental `lib/main.dart` (prevented dartdoc pollution; example retains its own main) + ## [0.1.3-beta] - 2025-08-15 ### Added