Repository navigation
feat!: 1.0.0 に向けた公開 API の整理 - #126
Merged
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Codex Sol <noreply@openai.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
1.0.0 の安定版で固まる公開 API のうち、本体の仕様と合わない箇所や、後から変えると破壊的変更になる箇所を整理。破壊的変更を含む。
変更
引数の検査
twoFactor.updateKeyのnameを必須に変更(本体のrequired: ['name', 'credentialId']に合わせる)(破壊的変更)assertからArgumentErrorに変更。対象はnotes.searchByTag、users.searchByUsernameAndHost(検査を新設)、adminDrive.showFile、adminEmoji.update。リリースビルドでも送信前に検査する(破壊的変更)例外
MisskeyApiExceptionにkindとinfoを追加。本体がエラーで返す分類と追加情報(INVALID_PARAMの不正な引数など)を取り出せるINVALID_PARAM(HTTP 400)もMisskeyValidationExceptionに変換。statusCodeは実際の値を持つnotes.showは存在しないノートを 404 ではなく 400 のNO_SUCH_NOTEで返すため、MisskeyNotFoundExceptionで捕まえる例を直した戻り値の型付け(破壊的変更)
account.pages/pageLikes/apps/authorizedAppsとadminDrive.showFileが、型のないMapではなくモデルを返すように変更。新しいモデルはMisskeyPageLike、MisskeyAccessToken、MisskeyAuthorizedApp、MisskeyAdminDriveFile未知の値(破壊的変更)
MisskeyNoteVisibilityとMisskeyRelayStatusにunknownを追加。未知の値をpublic/requestingとして扱わないApShowResultにApShowUnknownを追加。User/Note以外の種別でFormatExceptionを投げない削除(破壊的変更)
MetaApi.supports()を削除(後継はhasMetaKey()/isEndpointAvailable())MisskeyFederationInstance.isSensitiveMedia、MisskeyDriveFile.isAiGenerated、MisskeyUser.isLimited/mutualLinkSections、MisskeyAnnouncement.isActive/forExistingUsers/userId、MisskeyNoteDraft.updatedAt公開 API の境界
@internalを付与。内部の HTTP クライアントを受け取るため、利用者はMisskeyClient経由で使うMisskeyClient(httpClientAdapter:)が dio 5.x の型を受け取ること、dio のメジャー更新は本パッケージの破壊的変更になることをドキュメントに明記確認
dart analyze・dart test成功