@mikro-orm/core 7.0.0-dev.134 → 7.0.0-dev.135

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/core",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.134",
4
+ "version": "7.0.0-dev.135",
5
5
  "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.",
6
6
  "exports": {
7
7
  "./package.json": "./package.json",
@@ -828,7 +828,7 @@ export class UnitOfWork {
828
828
  if (Utils.isCollection(ref)) {
829
829
  ref.getItems(false).some(item => {
830
830
  const cs = this.changeSets.get(Reference.unwrapReference(item));
831
- const isScheduledForInsert = cs && cs.type === ChangeSetType.CREATE && !cs.persisted;
831
+ const isScheduledForInsert = cs?.type === ChangeSetType.CREATE && !cs.persisted;
832
832
  if (isScheduledForInsert) {
833
833
  this.scheduleExtraUpdate(changeSet, [prop]);
834
834
  return true;
@@ -837,7 +837,7 @@ export class UnitOfWork {
837
837
  });
838
838
  }
839
839
  const cs = this.changeSets.get(Reference.unwrapReference(ref));
840
- const isScheduledForInsert = cs && cs.type === ChangeSetType.CREATE && !cs.persisted;
840
+ const isScheduledForInsert = cs?.type === ChangeSetType.CREATE && !cs.persisted;
841
841
  if (isScheduledForInsert) {
842
842
  this.scheduleExtraUpdate(changeSet, [prop]);
843
843
  }
package/utils/Utils.js CHANGED
@@ -123,7 +123,7 @@ export function parseJsonSafe(value) {
123
123
  }
124
124
  export class Utils {
125
125
  static PK_SEPARATOR = '~~~';
126
- static #ORM_VERSION = '7.0.0-dev.134';
126
+ static #ORM_VERSION = '7.0.0-dev.135';
127
127
  /**
128
128
  * Checks if the argument is instance of `Object`. Returns false for arrays.
129
129
  */