Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaking: Rework event data. #30

Merged
merged 4 commits into from
Jul 26, 2023
Merged

breaking: Rework event data. #30

merged 4 commits into from
Jul 26, 2023

Conversation

milesj
Copy link
Collaborator

@milesj milesj commented Jul 26, 2023

Previously the event itself was mutable, so you could modify fields and treat htem as the event data. However in practice, this resulted in an event being immutable and mutable at the same time, causing a lot of issues.

This change splits event data into its own parameter, entirely distinct from the event. Now event is read only, while data is read/write. Because of this change, I also removed the return value logic, since it's no longer necessary.

@milesj milesj merged commit 1f1ea6a into master Jul 26, 2023
6 checks passed
@milesj milesj deleted the event-changes branch July 26, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant