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

fix!: Privatise entities and improve typing #40

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

mikeymike
Copy link
Contributor

@mikeymike mikeymike commented Feb 16, 2024

  • Most entities are private constructors
    • Request shared classes are public
  • Removed @internal to prevent IDE warnings
  • Made Events use their respective Event class
    • These are correctly made private while Event is @internal
  • Made enums final where they previously were not

BREAKING CHANGE: Allowing extension of enums was not intended this is now removed, any reliance on this will break

BREAKING CHANGE: Most entities are now private constructors, using these was not intended API, reliance on this will break

@mikeymike mikeymike requested a review from a team February 16, 2024 17:19
@mikeymike mikeymike force-pushed the fix/entity-internal-constructors branch 2 times, most recently from 8b021ba to 25754fe Compare February 19, 2024 16:57
- Most entities are private constructors
  - Request shared classes are public
- Removed `@internal` to prevent IDE warnings
- Made Events use their respective Event class
  - These are correctly made private while Event is `@internal`
- Made enums final where they previously were not

BREAKING CHANGE: Allowing extension of enums was not intended this is
now removed, any reliance on this will break

BREAKING CHANGE: Most entities are now private constructors, using
these was not intended API, reliance on this will break
@mikeymike mikeymike force-pushed the fix/entity-internal-constructors branch from 25754fe to 085c275 Compare February 20, 2024 09:13
@mikeymike mikeymike merged commit 0b9f1ff into main Feb 20, 2024
3 checks passed
@mikeymike mikeymike deleted the fix/entity-internal-constructors branch February 20, 2024 12:14
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