-
Notifications
You must be signed in to change notification settings - Fork 87
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
Refactor: reworked core exports #1491
Refactor: reworked core exports #1491
Conversation
Oops, looks like you forgot to add a changeset.
This command will prompt you for a change description and generate a changeset file. You can read more about changesets here. Remember that you should use the version bump that is appropriate for the change you are making:
If you are unsure about which version bump to use, please ask in the comments and we will help you out. |
f2572cf
to
18f0435
Compare
/integration sha=00adf90abd8b29bb0f3eb46c9462a07ff6e9612a |
⌛ Integration tests are running... Check their status here 👈 |
✅ Integration tests have finished successfully! |
00adf90
to
d2e57fe
Compare
/integration sha=d2e57fecc55aaaf0644d6804b485b6b12ef4ed27 |
⌛ Integration tests are running... Check their status here 👈 |
✅ Integration tests have finished successfully! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Cleanup of exported methods of the core package to avoid extra levels of indirection. The core index interface has not changed, but I've moved the implementation of the static methods from the
booster.ts
file to theindex.ts
to avoid a level of indirection. TheBoosterApp
type was made redundant as it was just describing theBooster
class signature.Changes
index.ts
Booster
object directly without proxying it through theBoosterApp
typeBoosterApp
type, as theBooster
object already exports the correct signature. This type was used only to type-check loading user apps from the CLI, and while the type was exported, it was not used in practice. Users use theBooster
singleton exported by the core package instead.Booster
class, as they were never exported; thus, removing them is not a breaking change.