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

Add support for MikroORM v6 #2630

Closed
Yousef4410 opened this issue Mar 15, 2024 · 2 comments · Fixed by #2673
Closed

Add support for MikroORM v6 #2630

Yousef4410 opened this issue Mar 15, 2024 · 2 comments · Fixed by #2673

Comments

@Yousef4410
Copy link

Yousef4410 commented Mar 15, 2024

Is your feature request related to a problem? Please describe.

Using tsed with recent versions of mikro orm (6+) leads to issues like below. This is because MikroORM has renamed that function to create and it can now be awaited.
TypeError: core_1.RequestContext.createAsync is not a function

in this file: packages/orm/mikro-orm/src/services/MikroOrmContext.ts

From Docs:
const ret = await RequestContext.createAsync(em, async () => { ... })
now becomes
const ret = await RequestContext.create(em, async () => { ... })

Describe the solution you'd like

Updating dependencies to work with recent versions of mikro orm

Describe alternatives you've considered

No response

Additional context

No response

Acceptance criteria

No response

@derevnjuk derevnjuk self-assigned this Mar 24, 2024
derevnjuk added a commit to derevnjuk/tsed that referenced this issue Apr 23, 2024
derevnjuk added a commit to derevnjuk/tsed that referenced this issue Apr 23, 2024
derevnjuk added a commit to derevnjuk/tsed that referenced this issue Apr 23, 2024
Copy link

🎉 Are you happy?

If you appreciated the support, know that it is free and is carried out on personal time ;)

A support, even a little bit makes a difference for me and continues to bring you answers!

github opencollective

@Romakita
Copy link
Collaborator

🎉 This issue has been resolved in version 7.67.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

3 participants