Skip to content

Support mastodon 4.4.0 #1327

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

Merged
merged 10 commits into from
Jul 14, 2025
Merged

Support mastodon 4.4.0 #1327

merged 10 commits into from
Jul 14, 2025

Conversation

neet
Copy link
Owner

@neet neet commented Jul 13, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings July 13, 2025 23:51
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds support for Mastodon 4.4.0 by exposing new tag and account endorsement endpoints, extending instance registration metadata, and updating filter and rule entities.

  • Expose feature/unfeature on Tags$SelectResource
  • Add account endorsement list and endorse/unendorse methods on Accounts$SelectResource
  • Extend account creation and instance registration types with dateOfBirth, minAge, and reasonRequired
  • Introduce blur action to filter registry and add translations to rules

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/mastodon/rest/v1/tags.ts Added feature and unfeature methods for hashtags
src/mastodon/rest/v1/accounts.ts Added dateOfBirth, endorsements list resource, endorse/unendorse methods
src/mastodon/entities/v2/instance.ts Added minAge and reasonRequired to instance registration
src/mastodon/entities/v2/filter.ts Added blur as a filter action
src/mastodon/entities/v1/rule.ts Added translations field on rules
Comments suppressed due to low confidence (4)

src/mastodon/rest/v1/accounts.ts:303

  • Use @param instead of @params for the JSDoc tag to match the style used elsewhere.
   * @params meta Metadata

src/mastodon/entities/v2/instance.ts:111

  • Remove the redundant "Description:" prefix in the JSDoc comment to stay consistent with neighboring comments.
  /** Description: A minimum age required to register, if configured. */

src/mastodon/rest/v1/tags.ts:28

  • Add unit or integration tests for feature/unfeature methods to ensure the new endpoints behave as expected.
  feature(meta?: HttpMetaParams): Promise<Tag>;

src/mastodon/rest/v1/accounts.ts:307

  • Include tests for endorse/unendorse methods to validate that account endorsements are correctly handled.
  endorse(meta?: HttpMetaParams): Promise<Relationship>;

Copy link

github-actions bot commented Jul 13, 2025

size-limit report 📦

Path Size
rest 3.7 KB (0%)
streaming 3.7 KB (0%)
oauth 3.69 KB (0%)

Copy link

pkg-pr-new bot commented Jul 13, 2025

Open in StackBlitz

npm i https://pkg.pr.new/neet/masto.js/masto@1327

commit: c551ecf

@neet neet force-pushed the support-mastodon-4.4.0 branch from a371f4c to c551ecf Compare July 14, 2025 00:57
@neet neet merged commit ef0e91b into main Jul 14, 2025
8 of 9 checks passed
@neet neet deleted the support-mastodon-4.4.0 branch July 14, 2025 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant