@mikro-orm/knex 6.6.2-dev.8 → 6.6.2

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.
@@ -995,7 +995,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
995
995
  if (prop.kind === core_1.ReferenceKind.EMBEDDED && !prop.object) {
996
996
  return Object.entries(prop.embeddedProps).flatMap(([name, childProp]) => {
997
997
  const childFields = explicitFields ? core_1.Utils.extractChildElements(explicitFields, prop.name) : [];
998
- if (childFields.length > 0 && !this.shouldHaveColumn(prop.targetMeta, { ...childProp, name }, [], childFields)) {
998
+ if (!this.shouldHaveColumn(prop.targetMeta, { ...childProp, name }, [], childFields.length > 0 ? childFields : undefined)) {
999
999
  return [];
1000
1000
  }
1001
1001
  return this.mapPropToFieldNames(qb, childProp, tableAlias, childFields);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/knex",
3
- "version": "6.6.2-dev.8",
3
+ "version": "6.6.2",
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,10 +63,10 @@
63
63
  "sqlstring": "2.3.3"
64
64
  },
65
65
  "devDependencies": {
66
- "@mikro-orm/core": "^6.6.1"
66
+ "@mikro-orm/core": "^6.6.2"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.6.2-dev.8",
69
+ "@mikro-orm/core": "^6.0.0",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"