Overview
This issue tracks the removal of all deprecated APIs that need to be removed in Fedify 2.0.0 as part of the major version cleanup.
APIs to Remove
1. Federation Configuration
2. Document Loader
3. Handle Property Support
Remove { handle: string } option support from:
SharedInboxKeyDispatcher return type
Context.getDocumentLoader() parameter
Context.sendActivity() parameter
Context.forwardActivity() parameter
All related type definitions and runtime handling code
Locations:
packages/fedify/src/federation/callback.ts:201,207
packages/fedify/src/federation/context.ts:229,379,395,605,626
packages/fedify/src/federation/middleware.ts:739,1364,2021,2024,2029-2034,2194,2202-2205,2811,2820-2823
Migration: Use { identifier: string } or { username: string } instead
4. CLI Commands
Implementation Notes
Code Changes Required
Remove all deprecated properties, interfaces, and functions
Remove all runtime deprecation warnings related to these APIs
Update all internal code that might still be using these deprecated APIs
Remove all test cases specifically for deprecated APIs
Update type exports to exclude removed interfaces
Documentation Updates
Update migration guide for 2.0
Remove deprecated API references from all documentation
Add clear migration paths in the changelog
Breaking Changes
All removals listed above are breaking changes and should be clearly documented in:
CHANGES.md under version 2.0.0
Migration guide from 1.x to 2.0
Release notes
Testing
Overview
This issue tracks the removal of all deprecated APIs that need to be removed in Fedify 2.0.0 as part of the major version cleanup.
APIs to Remove
1. Federation Configuration
Remove
documentLoaderproperty fromFederationOptionsinterface: fix: Remove documentLoader property from FederationOptions interface #393packages/fedify/src/federation/federation.ts:680documentLoaderFactoryinsteadRemove
contextLoaderproperty fromFederationOptionsinterfacepackages/fedify/src/federation/federation.ts:687contextLoaderFactoryinsteadRemove
CreateFederationOptions<TContextData>interfacepackages/fedify/src/federation/middleware.ts:113FederationOptionsdirectly2. Document Loader
fetchDocumentLoader()functionpackages/fedify/src/runtime/docloader.ts:398getDocumentLoader()instead3. Handle Property Support
{ handle: string }option support from:SharedInboxKeyDispatcherreturn typeContext.getDocumentLoader()parameterContext.sendActivity()parameterContext.forwardActivity()parameterpackages/fedify/src/federation/callback.ts:201,207packages/fedify/src/federation/context.ts:229,379,395,605,626packages/fedify/src/federation/middleware.ts:739,1364,2021,2024,2029-2034,2194,2202-2205,2811,2820-2823{ identifier: string }or{ username: string }instead4. CLI Commands
fedify nodecommand aliaspackages/cli/src/nodeinfo.ts:43-47fedify nodeinfoinsteadImplementation Notes
Code Changes Required
Documentation Updates
Breaking Changes
All removals listed above are breaking changes and should be clearly documented in:
Testing