BotBeat
...
← Back

> ▌

MikroORM (Open Source Project)MikroORM (Open Source Project)
PRODUCT LAUNCHMikroORM (Open Source Project)2026-04-07

MikroORM v7 Released: Unchained with Zero Dependencies and Native ESM Support

Key Takeaways

  • ▸MikroORM core now has zero runtime dependencies, significantly improving bundle size and serverless cold start performance
  • ▸Knex replaced with Kysely for query execution while MikroORM handles query building, providing better control over SQL generation
  • ▸Native ESM support and removal of hard Node.js coupling expand framework compatibility and flexibility
Source:
Hacker Newshttps://mikro-orm.io/blog/mikro-orm-7-released↗

Summary

After 18 months of active development, MikroORM v7 has been released as a major update to the popular Node.js ORM library. The release achieves a significant milestone by reducing the @mikro-orm/core package to zero runtime dependencies, dropping critical packages like knex, dotenv, esprima, reflect-metadata, dataloader, and globby. This architectural shift dramatically improves bundle size and cold start times, making it particularly beneficial for serverless environments.

A major technical overhaul replaces knex with Kysely for query execution while MikroORM handles its own query building, providing developers with full control over generated SQL. The update introduces native ESM support and removes hard coupling to Node.js, expanding the framework's flexibility. Additional improvements include the defineEntity helper with full type inference, balanced loading strategies, transaction propagation support, and enhanced filter improvements on relations.

The @mikro-orm/knex package has been renamed to @mikro-orm/sql, consolidating shared SQL driver logic. For developers with existing knex dependencies, a new @mikro-orm/knex-compat package provides migration assistance. These changes represent a fundamental restructuring aimed at improving performance, maintainability, and developer experience across the MikroORM ecosystem.

  • New defineEntity helper provides full type inference and automatic Kysely typing without manual interface definitions

Editorial Opinion

MikroORM v7 represents a thoughtful evolution of the ORM landscape by prioritizing performance and developer experience through aggressive dependency reduction. The move to zero core dependencies sets a strong example for maintainable open-source infrastructure, particularly benefiting the serverless and edge computing communities. However, the breaking changes and shift away from knex require careful migration planning for existing users.

MLOps & InfrastructureProduct LaunchOpen Source

Comments

Suggested

AnthropicAnthropic
RESEARCH

Understanding Prompt Caching from First Principles: How Claude's Caching Mechanism Works

2026-04-07
axiosaxios
POLICY & REGULATION

Critical Supply Chain Attack Compromises Popular Axios NPM Package with Remote Access Trojan

2026-04-07
RailwayRailway
UPDATE

Railway Completes Major Frontend Migration from Next.js to Vite + TanStack Router

2026-04-07
← Back to news
© 2026 BotBeat
AboutPrivacy PolicyTerms of ServiceContact Us