Skip to content

[zeus-bot] Upgrade to Inversify 7 #29

Description

@dustinlacewell

This is an AI generated summary, use as a heuristic only:

Migration Summary for bots/zeus

This summary outlines the necessary changes to migrate bots/zeus to Inversify v7, based on the analysis from the provided history.

BindingFluentSyntax API & Removed interfaces namespace

interfaces.Context is used in bots/zeus.

bots/zeus/src/services/GuildBinder.ts

interfaces.Context is used in a toDynamicValue callback.

.toDynamicValue((context: interfaces.Context) => {
//...

The import should be changed from:

import { type Container, inject, type interfaces } from "inversify";

to:

import { type Container, inject, ResolutionContext } from "inversify";

And the usage updated to:

.toDynamicValue((context: ResolutionContext) => {
//...

Custom metadata and middlewares

The Custom metadata and middlewares feature was removed in Inversify v7.

This change requires manual review of the codebase to determine if it was used. There is no reliable way to search for this feature automatically.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions