@mikro-orm/sql 7.1.15-dev.2 → 7.1.15-dev.4

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/sql",
3
- "version": "7.1.15-dev.2",
3
+ "version": "7.1.15-dev.4",
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",
@@ -53,7 +53,7 @@
53
53
  "@mikro-orm/core": "^7.1.14"
54
54
  },
55
55
  "peerDependencies": {
56
- "@mikro-orm/core": "7.1.15-dev.2"
56
+ "@mikro-orm/core": "7.1.15-dev.4"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">= 22.17.0"
@@ -397,7 +397,10 @@ export class QueryBuilder {
397
397
  * @internal
398
398
  */
399
399
  scheduleFilterCheck(path) {
400
- this.#state.autoJoinedPaths.push(path);
400
+ // deduplicate so filters forming a relation cycle cannot reschedule an already visited path forever
401
+ if (!this.#state.autoJoinedPaths.includes(path)) {
402
+ this.#state.autoJoinedPaths.push(path);
403
+ }
401
404
  }
402
405
  /**
403
406
  * @internal