@mikro-orm/knex 6.4.14-dev.1 → 6.4.14-dev.11

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.4.14-dev.1",
3
+ "version": "6.4.14-dev.11",
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",
@@ -66,7 +66,7 @@
66
66
  "@mikro-orm/core": "^6.4.13"
67
67
  },
68
68
  "peerDependencies": {
69
- "@mikro-orm/core": "6.4.14-dev.1",
69
+ "@mikro-orm/core": "6.4.14-dev.11",
70
70
  "better-sqlite3": "*",
71
71
  "libsql": "*",
72
72
  "mariadb": "*"
@@ -689,10 +689,7 @@ class QueryBuilder {
689
689
  }
690
690
  const query = this.toQuery()._sql;
691
691
  const cached = await this.em?.tryCache(this.mainAlias.entityName, this._cache, ['qb.execute', query.sql, query.bindings, method]);
692
- if (cached?.data === null && method === 'get' && this.type === enums_1.QueryType.SELECT) {
693
- return null;
694
- }
695
- if (cached?.data) {
692
+ if (cached?.data !== undefined) {
696
693
  return cached.data;
697
694
  }
698
695
  const write = method === 'run' || !this.platform.getConfig().get('preferReadReplicas');