@mikro-orm/core 7.1.4-dev.15 → 7.1.4-dev.17

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/core",
3
- "version": "7.1.4-dev.15",
3
+ "version": "7.1.4-dev.17",
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",
@@ -62,7 +62,9 @@ export class IdentityMap {
62
62
  values() {
63
63
  const ret = [];
64
64
  for (const store of this.#registry.values()) {
65
- ret.push(...store.values());
65
+ for (const item of store.values()) {
66
+ ret.push(item);
67
+ }
66
68
  }
67
69
  return ret;
68
70
  }
@@ -77,7 +79,9 @@ export class IdentityMap {
77
79
  keys() {
78
80
  const ret = [];
79
81
  for (const [cls, store] of this.#registry) {
80
- ret.push(...[...store.keys()].map(hash => `${cls.name}-${hash}`));
82
+ for (const hash of store.keys()) {
83
+ ret.push(`${cls.name}-${hash}`);
84
+ }
81
85
  }
82
86
  return ret;
83
87
  }
package/utils/Utils.js CHANGED
@@ -141,7 +141,7 @@ export function parseJsonSafe(value) {
141
141
  /** Collection of general-purpose utility methods used throughout the ORM. */
142
142
  export class Utils {
143
143
  static PK_SEPARATOR = '~~~';
144
- static #ORM_VERSION = '7.1.4-dev.15';
144
+ static #ORM_VERSION = '7.1.4-dev.17';
145
145
  /**
146
146
  * Checks if the argument is instance of `Object`. Returns false for arrays.
147
147
  */