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(mikro-orm.health): mikro-orm connection type is deprecated #2325

Merged

Conversation

StefanPrintezis
Copy link
Contributor

@StefanPrintezis StefanPrintezis commented Aug 9, 2023

Use the abstraction provided by MikroOrm to determine connection status.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

The current implementation relies on 'type' being present, which it no longer will be.

Issue Number: #2259

What is the new behavior?

Relying on the MikroOrm.connection.isConnected implementation, which functionally does the same thing, but moves the "supported driver concern" to the library implementing them by using it's abstraction on connections.

Does this PR introduce a breaking change?

  • Yes
  • No

We could be more strict about the current peerDep?
"@mikro-orm/core": "*",

Use the abstraction provided by MikroOrm to determine connection status.
@BrunnerLivio BrunnerLivio changed the base branch from master to 10.1.x September 14, 2023 15:00
@BrunnerLivio BrunnerLivio merged commit b77c08f into nestjs:10.1.x Sep 14, 2023
@BrunnerLivio
Copy link
Member

Thanks a lot, appreciate it! <3

BrunnerLivio pushed a commit that referenced this pull request Sep 14, 2023
Use the abstraction provided by MikroOrm to determine connection status.
BrunnerLivio pushed a commit that referenced this pull request Sep 14, 2023
Use the abstraction provided by MikroOrm to determine connection status.
resolves #2325
@BrunnerLivio
Copy link
Member

Released with v10.1.0 🎉

@StefanPrintezis StefanPrintezis deleted the feature/mikro-orm-is-connected branch September 15, 2023 05:23
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