@mikro-orm/mongodb 6.5.8 → 6.5.9-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { ObjectId } from 'bson';
2
- import { Platform, type IPrimaryKey, type Primary, type NamingStrategy, type Constructor, type EntityRepository, type EntityProperty, type PopulateOptions, type EntityMetadata, type IDatabaseDriver, type EntityManager, type Configuration, type MikroORM } from '@mikro-orm/core';
2
+ import { Platform, type IPrimaryKey, type Primary, type NamingStrategy, type Constructor, type EntityRepository, type EntityProperty, type PopulateOptions, type EntityMetadata, type IDatabaseDriver, type EntityManager, type Configuration, type MikroORM, type TransformContext } from '@mikro-orm/core';
3
3
  import { MongoExceptionConverter } from './MongoExceptionConverter';
4
4
  import { MongoSchemaGenerator } from './MongoSchemaGenerator';
5
5
  export declare class MongoPlatform extends Platform {
@@ -21,7 +21,7 @@ export declare class MongoPlatform extends Platform {
21
21
  usesImplicitTransactions(): boolean;
22
22
  convertsJsonAutomatically(): boolean;
23
23
  convertJsonToDatabaseValue(value: unknown): unknown;
24
- convertJsonToJSValue(value: unknown, prop: EntityProperty): unknown;
24
+ convertJsonToJSValue(value: unknown, context?: TransformContext): unknown;
25
25
  marshallArray(values: string[]): string;
26
26
  cloneEmbeddable<T>(data: T): T;
27
27
  shouldHaveColumn<T>(prop: EntityProperty<T>, populate: PopulateOptions<T>[], exclude?: string[]): boolean;
package/MongoPlatform.js CHANGED
@@ -63,7 +63,7 @@ class MongoPlatform extends core_1.Platform {
63
63
  convertJsonToDatabaseValue(value) {
64
64
  return core_1.Utils.copy(value);
65
65
  }
66
- convertJsonToJSValue(value, prop) {
66
+ convertJsonToJSValue(value, context) {
67
67
  return value;
68
68
  }
69
69
  marshallArray(values) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/mongodb",
3
- "version": "6.5.8",
3
+ "version": "6.5.9-dev.1",
4
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
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -65,6 +65,6 @@
65
65
  "@mikro-orm/core": "^6.5.8"
66
66
  },
67
67
  "peerDependencies": {
68
- "@mikro-orm/core": "^6.0.0"
68
+ "@mikro-orm/core": "6.5.9-dev.1"
69
69
  }
70
70
  }