Skip to content

Conversation

@dahlia
Copy link
Member

@dahlia dahlia commented May 26, 2025

No description provided.

@dahlia dahlia added this to the Fedify 1.6 milestone May 26, 2025
@dahlia dahlia requested a review from Copilot May 26, 2025 03:59
@dahlia dahlia self-assigned this May 26, 2025
@dahlia dahlia added the type/enhancement Improvements to existing features label May 26, 2025
Copy link

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

This PR introduces the new Context.federation property to allow access to the Federation object within test contexts and dispatcher callbacks. Key changes include:

  • Adding a federation parameter in createContext, createRequestContext, and related functions.
  • Updating test files to instantiate and pass the federation object.
  • Enhancing documentation and release notes to describe the new property.

Reviewed Changes

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

Show a summary per file
File Description
fedify/webfinger/handler.test.ts Updated tests to include a federation instance
fedify/testing/context.ts Modified context creation to accept and expose federation
fedify/nodeinfo/handler.test.ts Updated tests to pass federation to createRequestContext
fedify/federation/middleware.test.ts Added assertions to ensure context.federation is set
fedify/federation/handler.test.ts Updated multiple tests to provide federation in context
fedify/federation/context.ts Added federation property to the Context interface
docs/manual/federation.md Updated documentation to cover Context.federation usage
CHANGES.md Documented release notes regarding Context.federation

@dahlia dahlia merged commit ae79e3c into fedify-dev:main May 26, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement Improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant