Skip to content

Convert DefaultPlugin to a plugin group#282

Merged
waynemwashuma merged 1 commit into
wimaengine:devfrom
waynemwashuma:change-default-plugins-to-group
Mar 12, 2026
Merged

Convert DefaultPlugin to a plugin group#282
waynemwashuma merged 1 commit into
wimaengine:devfrom
waynemwashuma:change-default-plugins-to-group

Conversation

@waynemwashuma
Copy link
Copy Markdown
Collaborator

@waynemwashuma waynemwashuma commented Mar 12, 2026

Objective

Refactor DefaultPlugin to use the PluginGroup instead of registering plugins manually through the App instance.

Solution

DefaultPlugin has been converted into a PluginGroup.

Showcase

Applications can now load all core plugins through a single plugin group. This enables users to add, remove or modify default plugins before registration.

const defaults = new DefaultPlugin()

defaults.remove(typeid(TimePlugin))
defaults.add(new TimePlugin())

app.registerPlugin(default)

Migration guide

No changes are required for most applications.

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@waynemwashuma waynemwashuma self-assigned this Mar 12, 2026
@waynemwashuma waynemwashuma added the type:enhancement New feature or request label Mar 12, 2026
@waynemwashuma waynemwashuma merged commit c9ec56f into wimaengine:dev Mar 12, 2026
7 checks passed
@waynemwashuma waynemwashuma deleted the change-default-plugins-to-group branch March 12, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:misc type:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant