New:Socket for Asana Is Now Available.Learn more
Get Started

@mikro-orm/core

Package Overview
Dependencies
Maintainers
1
Versions
4772
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mikro-orm/core - npm Package Compare versions

Comparing version
7.1.15-dev.3
to
7.1.15-dev.4
+3
-1
entity/defineEntity.d.ts

@@ -115,3 +115,3 @@ import type { EntityManager } from '../EntityManager.js';

serializedPrimaryKey(serializedPrimaryKey?: boolean): PropertyChain<Value, Options>;
serializer(serializer: (value: Value, options?: SerializeOptions<any>) => any): PropertyChain<Value, Options>;
serializer(serializer: (value: SerializerValue<Value, Options>, options?: SerializeOptions<any>) => any): PropertyChain<Value, Options>;
serializedName(serializedName: string): PropertyChain<Value, Options>;

@@ -799,2 +799,4 @@ groups(...groups: string[]): PropertyChain<Value, Options>;

} ? Value[] : Value;
/** The runtime value passed to a custom serializer — the property value as stored on the entity (e.g. `Collection`/`Ref` for relations). Skips `MaybeMapToPk`, as its `Primary<Value>` branch is too costly for the type checker. */
type SerializerValue<Value, Options> = MaybeNullable<MaybeRelationRef<MaybeArray<Value, Options>, Options>, Options>;
type MaybeMapToPk<Value, Options> = Options extends {

@@ -801,0 +803,0 @@ mapToPk: true;

@@ -478,3 +478,3 @@ import { types } from '../types/index.js';

mappedBy(mappedBy) {
return new UniversalPropertyOptionsBuilder({ ...this['~options'], mappedBy });
return this.assignOptions({ mappedBy });
}

@@ -481,0 +481,0 @@ }

{
"name": "@mikro-orm/core",
"version": "7.1.15-dev.3",
"version": "7.1.15-dev.4",
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -156,3 +156,3 @@ import { clone } from './clone.js';

static PK_SEPARATOR = '~~~';
static #ORM_VERSION = '7.1.15-dev.3';
static #ORM_VERSION = '7.1.15-dev.4';
/**

@@ -159,0 +159,0 @@ * Checks if the argument is instance of `Object`. Returns false for arrays.