@mikro-orm/knex 6.1.7-dev.5 → 6.1.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.1.7-dev.5",
3
+ "version": "6.1.7",
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",
@@ -63,9 +63,9 @@
63
63
  "sqlstring": "2.3.3"
64
64
  },
65
65
  "devDependencies": {
66
- "@mikro-orm/core": "^6.1.6"
66
+ "@mikro-orm/core": "^6.1.7"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.1.7-dev.5"
69
+ "@mikro-orm/core": "^6.0.0"
70
70
  }
71
71
  }
@@ -751,7 +751,7 @@ class QueryBuilder {
751
751
  ];
752
752
  core_1.RawQueryFragment.cloneRegistry = this.rawFragments;
753
753
  for (const prop of Object.keys(this)) {
754
- if (reset.includes(prop)) {
754
+ if (reset.includes(prop) || prop === '_helper') {
755
755
  continue;
756
756
  }
757
757
  qb[prop] = properties.includes(prop) ? core_1.Utils.copy(this[prop]) : this[prop];
@@ -762,6 +762,7 @@ class QueryBuilder {
762
762
  qb._fields = [...this._fields];
763
763
  }
764
764
  qb._aliases = { ...this._aliases };
765
+ qb._helper.aliasMap = qb._aliases;
765
766
  qb.finalized = false;
766
767
  return qb;
767
768
  }