Skip to content

Conversation

@TheBjoRedCraft
Copy link
Member

  • Introduced methods registerListener, fireEvent, and subscribe in SurfCoreApi.
  • Added surf-event-util with inline utility for event subscriptions.
  • Updated SurfCoreApiImpl to integrate with SurfEventBus for event handling.
  • Bumped version to 1.21.11-1.1.5-SNAPSHOT.

- Introduced methods `registerListener`, `fireEvent`, and `subscribe` in `SurfCoreApi`.
- Added `surf-event-util` with inline utility for event subscriptions.
- Updated `SurfCoreApiImpl` to integrate with `SurfEventBus` for event handling.
- Bumped version to `1.21.11-1.1.5-SNAPSHOT`.
@TheBjoRedCraft TheBjoRedCraft self-assigned this Jan 24, 2026
Copilot AI review requested due to automatic review settings January 24, 2026 18:05
@TheBjoRedCraft TheBjoRedCraft requested a review from a team January 24, 2026 18:06
Copy link
Contributor

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

Adds public event-handling support to SurfCoreApi, allowing consumers to register annotated listeners, subscribe to events, and fire events across the network.

Changes:

  • Extend SurfCoreApi with registerListener, subscribe, and fireEvent.
  • Wire SurfCoreApiImpl to delegate event operations to SurfEventBus.
  • Add a typed Kotlin convenience extension for SurfCoreApi.subscribe<T>() and bump project version.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
surf-core-core/surf-core-core-common/src/main/kotlin/dev/slne/surf/core/core/common/event/SurfEventBus.kt Minor formatting-only change (blank line).
surf-core-core/surf-core-core-common/src/main/kotlin/dev/slne/surf/core/core/common/SurfCoreApiImpl.kt Implements the new event API by delegating to surfEventBus.
surf-core-api/surf-core-api-common/src/main/kotlin/dev/slne/surf/core/api/common/util/surf-event-util.kt Adds subscribe<T>() convenience extension for typed subscriptions.
surf-core-api/surf-core-api-common/src/main/kotlin/dev/slne/surf/core/api/common/SurfCoreApi.kt Exposes event listener registration, subscription, and firing via the public API.
gradle.properties Version bump to 1.21.11-1.1.5-SNAPSHOT.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants