@mikro-orm/core 7.0.0-dev.319 → 7.0.0-dev.320

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.
@@ -22,7 +22,7 @@ export declare class EntityManager<Driver extends IDatabaseDriver = IDatabaseDri
22
22
  readonly config: Configuration;
23
23
  protected readonly driver: Driver;
24
24
  protected readonly metadata: MetadataStorage;
25
- protected readonly useContext: boolean;
25
+ private readonly useContext;
26
26
  protected readonly eventManager: EventManager;
27
27
  /** @internal */
28
28
  readonly '~entities'?: unknown;
@@ -33,7 +33,7 @@ export declare class EntityManager<Driver extends IDatabaseDriver = IDatabaseDri
33
33
  private readonly loaders;
34
34
  private readonly repositoryMap;
35
35
  private readonly entityLoader;
36
- protected readonly comparator: EntityComparator;
36
+ private readonly comparator;
37
37
  private readonly entityFactory;
38
38
  private readonly unitOfWork;
39
39
  private readonly resultCache;
@@ -9,7 +9,6 @@ import type { Platform } from '../platforms/Platform.js';
9
9
  import type { Collection } from '../entity/Collection.js';
10
10
  import { EntityManager } from '../EntityManager.js';
11
11
  import { DriverException } from '../exceptions.js';
12
- import type { Logger } from '../logging/Logger.js';
13
12
  import { MikroORM } from '../MikroORM.js';
14
13
  export declare abstract class DatabaseDriver<C extends Connection> implements IDatabaseDriver<C> {
15
14
  readonly config: Configuration;
@@ -18,7 +17,6 @@ export declare abstract class DatabaseDriver<C extends Connection> implements ID
18
17
  protected readonly connection: C;
19
18
  protected readonly replicas: C[];
20
19
  protected readonly platform: Platform;
21
- protected readonly logger: Logger;
22
20
  protected comparator: EntityComparator;
23
21
  protected metadata: MetadataStorage;
24
22
  protected constructor(config: Configuration, dependencies: string[]);
@@ -18,13 +18,11 @@ export class DatabaseDriver {
18
18
  connection;
19
19
  replicas = [];
20
20
  platform;
21
- logger;
22
21
  comparator;
23
22
  metadata;
24
23
  constructor(config, dependencies) {
25
24
  this.config = config;
26
25
  this.dependencies = dependencies;
27
- this.logger = this.config.getLogger();
28
26
  }
29
27
  async nativeUpdateMany(entityName, where, data, options) {
30
28
  throw new Error(`Batch updates are not supported by ${this.constructor.name} driver`);
@@ -11,13 +11,13 @@ export interface MatchingOptions<T extends object, P extends string = never> ext
11
11
  export declare class Collection<T extends object, O extends object = object> {
12
12
  readonly owner: O;
13
13
  [k: number]: T;
14
- protected readonly items: Set<T>;
15
- protected initialized: boolean;
16
- protected dirty: boolean;
17
- protected partial: boolean;
18
- protected snapshot: T[] | undefined;
14
+ private readonly items;
15
+ private initialized;
16
+ private dirty;
17
+ private partial;
18
+ private snapshot;
19
19
  private readonly?;
20
- protected _count?: number;
20
+ private _count?;
21
21
  private _property?;
22
22
  private _populated?;
23
23
  constructor(owner: O, items?: T[], initialized?: boolean);
@@ -163,7 +163,7 @@ export declare class Collection<T extends object, O extends object = object> {
163
163
  protected propagateToInverseSide(item: T, method: 'add' | 'remove' | 'takeSnapshot'): void;
164
164
  protected propagateToOwningSide(item: T, method: 'add' | 'remove' | 'takeSnapshot'): void;
165
165
  protected shouldPropagateToCollection(collection: Collection<O, T>, method: 'add' | 'remove' | 'takeSnapshot'): boolean;
166
- protected incrementCount(value: number): void;
166
+ private incrementCount;
167
167
  }
168
168
  export interface InitCollectionOptions<T, P extends string = never, F extends string = '*', E extends string = never> extends EntityLoaderOptions<T, F, E> {
169
169
  dataloader?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
- "version": "7.0.0-dev.319",
3
+ "version": "7.0.0-dev.320",
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
  "keywords": [
6
6
  "data-mapper",
package/utils/Utils.js CHANGED
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
123
123
  }
124
124
  export class Utils {
125
125
  static PK_SEPARATOR = '~~~';
126
- static #ORM_VERSION = '7.0.0-dev.319';
126
+ static #ORM_VERSION = '7.0.0-dev.320';
127
127
  /**
128
128
  * Checks if the argument is instance of `Object`. Returns false for arrays.
129
129
  */