@mikro-orm/core 7.0.0-dev.116 → 7.0.0-dev.117

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.
@@ -822,7 +822,7 @@ export class MetadataDiscovery {
822
822
  const glue = object ? '~' : '_';
823
823
  for (const prop of Object.values(embeddable.properties)) {
824
824
  const name = (embeddedProp.embeddedPath?.join(glue) ?? embeddedProp.fieldNames[0] + glue) + prop.name;
825
- meta.properties[name] = Utils.copy(prop, false);
825
+ meta.properties[name] = Utils.copy(prop);
826
826
  meta.properties[name].name = name;
827
827
  meta.properties[name].embedded = [embeddedProp.name, prop.name];
828
828
  meta.propertyOrder.set(name, (order += 0.01));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.116",
4
+ "version": "7.0.0-dev.117",
5
5
  "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.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
@@ -13,6 +13,7 @@ export declare class RawQueryFragment {
13
13
  [Symbol.toPrimitive](hint: 'string'): RawQueryFragmentSymbol;
14
14
  get [Symbol.toStringTag](): string;
15
15
  toJSON(): string;
16
+ clone(): this;
16
17
  static isKnownFragmentSymbol(key: unknown): key is RawQueryFragmentSymbol;
17
18
  static hasObjectFragments(object: unknown): boolean;
18
19
  static isKnownFragment(key: unknown): key is RawQueryFragment | symbol;
@@ -33,6 +33,9 @@ export class RawQueryFragment {
33
33
  toJSON() {
34
34
  return `raw('${this.sql}')`;
35
35
  }
36
+ clone() {
37
+ return this;
38
+ }
36
39
  static isKnownFragmentSymbol(key) {
37
40
  return typeof key === 'symbol' && this.#rawQueryReferences.has(key);
38
41
  }
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.116';
126
+ static #ORM_VERSION = '7.0.0-dev.117';
127
127
  /**
128
128
  * Checks if the argument is instance of `Object`. Returns false for arrays.
129
129
  */