@mikro-orm/core 7.1.13-dev.6 → 7.1.13-dev.8
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/entity/EntityLoader.js +2 -3
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
package/entity/EntityLoader.js
CHANGED
|
@@ -670,9 +670,8 @@ export class EntityLoader {
|
|
|
670
670
|
}
|
|
671
671
|
return cond;
|
|
672
672
|
});
|
|
673
|
-
// partial extraction from `$or` is unsound
|
|
674
|
-
|
|
675
|
-
if (child.length > 0 && (op === '$and' || !toOne || child.length === where[op].length)) {
|
|
673
|
+
// partial extraction from `$or` is unsound — the parent may have matched via a dropped branch
|
|
674
|
+
if (child.length > 0 && (op === '$and' || child.length === where[op].length)) {
|
|
676
675
|
subCond[op] = child;
|
|
677
676
|
}
|
|
678
677
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "7.1.13-dev.
|
|
3
|
+
"version": "7.1.13-dev.8",
|
|
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
|
@@ -153,7 +153,7 @@ export function parseJsonSafe(value) {
|
|
|
153
153
|
/** Collection of general-purpose utility methods used throughout the ORM. */
|
|
154
154
|
export class Utils {
|
|
155
155
|
static PK_SEPARATOR = '~~~';
|
|
156
|
-
static #ORM_VERSION = '7.1.13-dev.
|
|
156
|
+
static #ORM_VERSION = '7.1.13-dev.8';
|
|
157
157
|
/**
|
|
158
158
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
159
159
|
*/
|