@mikro-orm/postgresql
7.2.11 · 20 Nov 2026MIT1.3M / weekRepositoryHomepagenpmAtom feed
250 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
5.8.7
5 Oct 2023Reading the note…
5.8.6
2 Oct 2023Reading the note…
5.8.5
30 Sep 2023Reading the note…
5.8.4
27 Sep 2023Reading the note…
5.8.3
24 Sep 2023Reading the note…
5.8.2
20 Sep 2023Reading the note…
5.8.1
12 Sep 2023Reading the note…
5.8.0
10 Sep 2023core: fix assigning collection items with
updateNestedEntities: false
mikro-orm.io/blog/mikro-orm-5-8-released
Bug Fixes
core: default baseUrl value to '.' when registering ts-node (#4680) (cc0fc5f), closes #4679
core: ensure partial loading respects advanced mapped type methods (72554fd), closes #4622
core: fix assigning collection items with
updateNestedEntities: falsecore: fix metadata cache for
@Check()with callback signature (44d973e), closes #4505core: fix removing entity that has an inverse relation with M:1
ownerproperty (fbed4a6), closes #4578core: ignore null values of unknown properties in
assign()(a600f55), closes #4566core: map property names to column names in
qb.onConflict()(e38d126), closes #4483core: remove old items from 1:m collections via
set()even if not initializedcore: respect explicit schema name of pivot tables (af74491), closes #4516
core: respect filters with joined loading strategy (#4683) (847c35a), closes #704 #2440
core: support calling
em.findAndCount()on virtual entities withorderBy(7f328ac), closes #4628core: support calling
em.insertMany()with empty array (2f65bc8), closes #4640core: use join on conditions for
populateWhere(#4682) (99177cc), closes #3871entity-generator: respect
precisionandscalein numeric column typemysql: fix extra updates on entities with non-primary autoincrement property (5d6ebe3), closes #4577
query-builder: apply join condition to the target entity in M:N relations (c78d812), closes #4644
query-builder: make
QBFilterQuerytype more strictschema: respect
columnTypeon enum properties
Features
cli: add
--drop-dbflag tomigration:freshandschema:fresh(cf1db80), closes #4569core: add
clearoption toem.transactional()core: add
Collection.isEmpty()methodcore: add
Collection.slice()methodcore: add
Collectionhelpersmap/filter/reduce/exists/findFirst/indexBy(3ba33ac), closes #4592core: allow disabling duplicate entities discovery validation
core: allow enabling result cache globally (5876c99), closes #4656
core: allow fine-grained control over
em.upsert()(#4669) (ab0ddee), closes #4325 #4602core: allow global config option for
disableIdentityMap(ef32b14), closes #4653core: respect
batchSizeinem.upsertMany()(4a21c33), closes #4421entity-generator: allow skipping some tables or columns (e603108), closes #4584
migrations: add
Migration.getEntityManager()helper (79af75c), closes #4605mongo: support indexes on embedded properties (040896e), closes #2129
sql: add
readOnlyoption toem.begin()andem.transactional()sql: allow specifying query comments
5.7.14
27 Jul 2023Reading the note…
5.7.13
16 Jul 2023Reading the note…
5.7.12
10 Jun 2023Reading the note…
5.7.11
1 Jun 2023Reading the note…
5.7.10
23 May 2023Reading the note…
5.7.9
22 May 2023Reading the note…
5.7.8
21 May 2023Reading the note…
5.7.7
14 May 2023Reading the note…
5.7.6
13 May 2023Reading the note…
5.7.5
9 May 2023Reading the note…
5.7.4
1 May 2023Reading the note…
5.7.3
28 Apr 2023Reading the note…
5.7.2
25 Apr 2023Reading the note…
5.7.1
25 Apr 2023Reading the note…
5.7.0
23 Apr 2023Bug Fixes
core: clean up bidirectional references after removal of entity (bfd3840), closes #4234
core: detect
JsonTypebased oncolumnType(#4252) (2e01622), closes #4229core: do not try to propagate changes to
mapToPkrelations (7028890), closes #4254core: fix mapping of joined relations with buffer PKs (8e9e7ee), closes #4219
core: merge env vars with explicit configuration recursively (392a623), closes #4235
core: prevent tuple type properties from being converted to array when serializing entities
core: propagate changes from extra updates back to the original changeset (77f5c14), closes #4245
core: rework JSON value processing (#4194) (5594c46), closes #4193
mariadb: use
json_extractwhen querying JSON fieldsquery-builder: fix pagination when PK uses
BigIntType(b789031), closes #4227query-builder: support
onConflict().ignore()without parameters (3a3b0bd), closes #4224schema: fix comparing default value of JSON properties (41277a1), closes #4212
Features
core: allow disabling transactions (#4260) (8e8bc38), closes #3747 #3992
- Deprecated
core: deprecate
persist/flush/removemethods fromEntityRepository(#4259) (eba4563), closes #3989 core: validate repository type in
repo.populate()andrepo.assign()(301bdf8), closes #3989migrations: add support for custom migration names
mongo: allow setting weights on index (299b188), closes #4172
Performance Improvements
5.6.16
4 Apr 2023Reading the note…
5.6.15
18 Mar 2023Reading the note…
5.6.14
12 Mar 2023Reading the note…
5.6.13
1 Mar 2023Reading the note…
5.6.12
26 Feb 2023Reading the note…
5.6.11
17 Feb 2023Reading the note…
5.6.10
17 Feb 2023Reading the note…
5.6.9
10 Feb 2023Reading the note…
5.6.8
25 Jan 2023Reading the note…
5.6.7
13 Jan 2023Reading the note…
5.6.6
10 Jan 2023Reading the note…
5.6.5
9 Jan 2023Reading the note…
5.6.4
4 Jan 2023Reading the note…
5.6.3
28 Dec 2022Reading the note…
5.6.2
25 Dec 2022Reading the note…
5.6.1
20 Dec 2022Reading the note…
5.6.0
9 Dec 2022Bug Fixes
- Deprecated
core: deprecate
typeoption in favour of driver exports (7180f23), closes #3743 core: do not mark entities as populated via
em.merge()(bfa4962), closes #3812core: do not process mapped types twice in
em.upsert()(434d417), closes #3787core: ensure correct result in
ChangeSet.getPrimaryKey(true)(2e74a34), closes #3737core: fix query execution inside hooks sometimes hanging
core: make
ChangeSet.getPrimaryKey()response stable- Removed
core: remove
readonlyfrom properties ofFilterQuery(2a2a13d), closes #3836 core: return
Ref & LoadedReferencefromref()(c85e507), closes #3840core: serialize not managed relations as populated (89b4dab), closes #3788
core: support
hiddenflag on primary keysembeddables: respect explicit
nullonly for object embeddables (6e0bedf), closes #3772mysql: ensure bigint columns are mapped to string (d3d50ba), closes #3739
mysql: respect
auto_increment_incrementwhen batch inserting (516db6d), closes #3828postgres: quote array literal items containing a comma (5ffa81c), closes #3810
postgres: use
postgresas the management db name + allow override (eab1668), closes #3769query-builder: fix cloning QB in some cases (c3b4c20), closes #3720
query-builder: fix querying for a composite FK when target is joined (dec4c9c), closes #3738
query-builder: respect case-insensitive regexp flag (1a1d381), closes #3801
query-build: fix query execution inside hooks sometimes hanging
schema: ensure database exists before dropping schema (fd4c416), closes #3713
ts: allow string dates in
em.create()
Features
cli: added option to generate cache via ts-node (#3796) (268bd68), closes github.com/mikro-orm/mikro-orm/discussions/3795
core: add
em.upsertManycore: add
serialize()helper for explicit serializationcore: allow creating entity from PK via
rel()andref()(#3837) (72ca8e7), closes #3835core: ensure database exists automatically
core: introduce ORM extensions
Performance Improvements
5.5.3
10 Nov 2022Reading the note…
5.5.2
7 Nov 2022Reading the note…
5.5.1
5 Nov 2022Reading the note…
5.5.0
23 Oct 2022- Breaking
It is no longer possible to do
collection.add(...items)with a generic array - it only works with a tuple. The solution is to docollection.add(items)instead, which will type check and is also more performant (no array copies). cli: fix using
npx --workspacewithmikro-orm-esmcli: improve success message of
schema:update/dropcommands
Bug Fixes
cli: fix using
npx --workspacewithmikro-orm-esmcli: improve success message of
schema:update/dropcommandscore: always compare boolean properties as booleans (c30c680), closes #3576
core: do not ignore
defaultoption in version propertiescore: do not ignore falsy version values like
0core: fix assigning objects to collections
core: fix changing 1:1 relations value (7b6e6f7), closes #3614
core: fix removing entities with complex composite keys (6d6e9f4), closes #3543
core: fix validation of EM param in
assign(6572a59), closes #3571core: hydrate
mapToPkproperties with the PK valuecore: improve entity path detection with SWC 1.3.4+
core: merge entity automatically via
em.create(E, {}, { managed: true })(24d206f), closes #3571core: propagate entity removal to collection properties
core: rework handling of orphan removal for 1:m collections (925c798), closes #3564
core: serialize embedded JSON properties correctly when used in inline embeddable (feef8b3), closes #3519
mongo: fix populating 1:1 owners from inverse side
query-builder: support top level
$notoperator in join condition
Features
core: add
defineConfighelpercore: add
em.refresh(entity)methodcore: add
em.upsert()method (#3525) (3285cdb), closes #3515core: add
MikroORMandOptionsexports to each driver packagecore: add the
offsetintoFindOneOptionscore: automatically detect
src/dist/buildfolders and adjust configurationcore: enable
persistOnCreateby defaultcore: maintain identity for the
Referencewrapper (da1a0ef), closes #3582core: provide
metaandpropon custom mapped type instance (c1251d0), closes #3538core: track changes on entity references
core: validate missing items in enum definition
core: validate missing types in
EntitySchemadefinition (0716566), closes #3603migrations: allow configuring snapshot name (4bbe355), closes #3562
mongo: do not expand array queries to
$inoperator when nested inside$eqpostgres: add
qb.distinctOn()supportquery-builder: validate modification of finalized QB (b23f015), closes #3534
schema: add ability to ignore specific column changes (#3503) (05fb1ce), closes #1904 #1904
schema: try to infer runtime default values automatically
sqlite: enable returning statements in both SQLite drivers
Performance Improvements
core: don't propagate serialization context to hidden relations
core: improve support for large collections
schema: improve schema inspection speed in SQL drivers
Type-level breaking changes
- Breaking
It is no longer possible to do
collection.add(...items)with a generic array - it only works with a tuple. The solution is to docollection.add(items)instead, which will type check and is also more performant (no array copies).
5.4.2
12 Sep 2022Reading the note…
5.4.1
8 Sep 2022Reading the note…
5.4.0
1 Sep 2022cli: allow working with mongo migrations via CLI
core: allow embedded properties inside virtual entities
Bug Fixes
cli: allow working with mongo migrations via CLI
core: allow embedded properties inside virtual entities
core: allow using
$neoperator on embedded properties (89706b6), closes #3430core: always use dynamic import, don't depend on
MIKRO_ORM_DYNAMIC_IMPORTScore: compile with
module: 'Node16'to have real dynamic importscore: fix optimistic locking for entities with custom type on PK (e36bac5), closes #3440
core: lock entities in
flush()to get around race conditions withPromise.all(b62799a), closes #2934 #3383core: respect serialization options like
hiddenon embeddables (d198e44), closes #3429core: support result caching on virtual entities
core: update to TypeScript 4.8 and improve
EntityDTOtypecore: use acorn instead of escaya for extraction of method params
knex: support
em.count()on virtual entitiespostgres: fix escaping of special chars in string arrays
query-builder: allow using alias for delete queries (aa19a85), closes #3366
query-builder: support more operators in join conditions
reflection: do not override user defined
nullableattributereflection: fix array property type inference
Features
core: add
MikroORM.reconnect()methodcore: add
schema/migrator/seedershortcuts toMikroORMclassentity-generator: add import extension for referenced entities
knex: add options params to
create+assignmethods within EntityRepository
5.3.1
4 Aug 2022Reading the note…
5.3.0
1 Aug 2022entity-generator: ensure stable order of generated entities
Bug Fixes
core: do not trigger auto flush from inside flush hooks (e3f34aa), closes #3345
entity-generator: ensure stable order of generated entities
postgres: fix having non-PK serial column next to a non-serial PK (6c589b0), closes #3350
query-builder: fix
qb.insert()/update()on embeddables in inline modeschema: respect explicit
columnTypewhen comparing columns (f0a20fa), closes #3317schema: respect schema when renaming columns in postgres
sqlite: throw
ForeignKeyConstraintViolationExceptionwhere appropriate
Features
Add support for full text searches
core: add
$existsmongodb operator with SQL fallback tois not null(112f2be), closes #3295core: add
disableContextResolutionoption toem.fork()(94442f9), closes #3338core: add support for virtual entities
core: add validation when using non-discovered entities in
em.populate()core: improve autocomplete for
columnTypecore: improve autocomplete for
type,onUpdateIntegrityandonDeleteentity-generator: allow defining entities with
EntitySchemainstead of decoratorsmongo: add support for migrations in mongo driver
mongo: allow reusing mongo client via
driverOptions(df59ebf), closes #3352
5.2.4
25 Jul 2022Reading the note…
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.