Skip to content

Conversation

@2chanhaeng
Copy link
Contributor

Summary

Remove deprecated @fedify/fedify/x/* modules.

Related Issue

Changes

  • Removed `packages/fedify/x/*
  • Removed examples/blog
  • Fixed docs
  • Fixed examples

Benefits

Without deprecated modules, now @fedify/fedify module is lighter than before.

Checklist

  • Did you add a changelog entry to the CHANGES.md?
  • Did you write some relevant docs about this change (if it's a new feature)?
  • Did you write a regression test to reproduce the bug (if it's a bug fix)?
  • Did you write some tests for this change (if it's a new feature)?
  • Did you run deno task test-all on your machine?

Additional Notes

After this issue and #466, the blog example should be recreated.

@issues-auto-labeler issues-auto-labeler bot added breaking change Breaking change component/federation Federation object related component/vocab Activity Vocabulary related difficulty/intermediate Intermediate level labels Oct 16, 2025
@2chanhaeng 2chanhaeng changed the base branch from main to next October 16, 2025 07:06
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @2chanhaeng, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on a significant refactoring and modularization of the Fedify project, aiming to create a lighter core library and improve adherence to ActivityPub standards. It introduces new dedicated packages for vocabulary management and relay functionality, while removing deprecated internal modules. These changes streamline the project structure, enhance maintainability, and provide clearer separation of concerns, preparing the groundwork for future development and improved compatibility across various JavaScript runtimes and web frameworks.

Highlights

  • Deprecated Module Removal: The deprecated @fedify/fedify/x/* modules have been completely removed, making the core @fedify/fedify package lighter and more focused. Integrations for Cloudflare Workers, Deno KV, Hono, and SvelteKit are now handled by their respective dedicated packages (e.g., @fedify/cfworkers).
  • New Vocabulary Packages: Modules related to ActivityPub vocabulary generation and runtime utilities have been extracted into two new packages: @fedify/vocab-runtime and @fedify/vocab-tools. This improves modularity and reduces coupling within the Fedify ecosystem.
  • NodeInfo Version Type Change: The software.version field in NodeInfo has been updated from a SemVer object to a string to better align with the NodeInfo specification, which allows for non-SemVer version strings.
  • Default Idempotency Strategy Update: The default activity idempotency strategy has changed from "per-origin" to "per-inbox" to conform with standard ActivityPub behavior, ensuring activities are deduplicated per inbox independently.
  • Federation Dispatcher Content Type Filtering: Federation dispatchers will now only trigger for requests that accept ActivityPub-compatible content types, improving compatibility for applications serving both HTML and ActivityPub content from the same URLs.
  • CLI Enhancements: The CLI has been significantly refactored, including the addition of a generate-vocab command for creating Activity Vocabulary classes from schema files, and improvements to the init and lookup commands for better developer experience.
  • New Relay Package: A new @fedify/relay package has been introduced, providing ActivityPub relay integration, including a MastodonRelay class for Mastodon-compatible relay protocols.
  • Blog Example Removal: The examples/blog project has been removed due to the deprecation of Fresh integration, with plans for it to be recreated in the future.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/build.yaml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively removes the deprecated @fedify/fedify/x/* modules, which is a great cleanup effort. The changes are consistent across the codebase, including documentation, configuration, and example files. I've found a couple of minor points to address: a small wording improvement in the changelog and a missing development dependency in packages/fedify.

dahlia
dahlia previously approved these changes Oct 16, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 31, 2025

The docs for this pull request have been published:

https://93b2f64e.fedify.pages.dev

@github-actions
Copy link
Contributor

The latest push to this pull request has been published to JSR and npm as a pre-release:

Package Version JSR npm
@fedify/fedify 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/cli 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/amqp 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/cfworkers 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/denokv 2.0.0-pr.467.1877+dc12636d JSR
@fedify/elysia 2.0.0-pr.467.1877+dc12636d npm
@fedify/express 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/h3 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/hono 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/koa 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/nestjs 2.0.0-pr.467.1877+dc12636d npm
@fedify/next 2.0.0-pr.467.1877+dc12636d npm
@fedify/postgres 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/redis 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/sqlite 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/sveltekit 2.0.0-pr.467.1877+dc12636d JSR npm
@fedify/testing 2.0.0-pr.467.1877+dc12636d JSR npm

@dahlia dahlia merged commit 0e18041 into fedify-dev:next Nov 1, 2025
10 checks passed
@2chanhaeng 2chanhaeng deleted the deprecate branch November 1, 2025 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaking change component/federation Federation object related component/vocab Activity Vocabulary related difficulty/intermediate Intermediate level

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove deprecated @fedify/fedify/x/* modules in Fedify 2.0

2 participants