@mikro-orm/migrations-mongodb 7.0.0-dev.65 → 7.0.0-dev.67

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/Migrator.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { type MigrationParams, type RunnableMigration } from 'umzug';
2
- import { type Constructor, type IMigrator, type MikroORM, type MigratorEvent, type MaybePromise } from '@mikro-orm/core';
2
+ import { type Constructor, type IMigrator, type MaybePromise, type MigratorEvent, type MikroORM } from '@mikro-orm/core';
3
3
  import type { EntityManager } from '@mikro-orm/mongodb';
4
4
  import type { Migration } from './Migration.js';
5
5
  import { MigrationStorage } from './MigrationStorage.js';
package/Migrator.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Umzug } from 'umzug';
1
+ import { Umzug, } from 'umzug';
2
2
  import { join } from 'node:path';
3
3
  import { Utils, } from '@mikro-orm/core';
4
4
  import { MigrationRunner } from './MigrationRunner.js';
@@ -164,7 +164,7 @@ export class Migrator {
164
164
  return name.match(/^\d{14}$/) ? this.options.fileName(name) : name;
165
165
  }
166
166
  prefix(options) {
167
- if (Utils.isString(options) || Array.isArray(options)) {
167
+ if (typeof options === 'string' || Array.isArray(options)) {
168
168
  return { migrations: Utils.asArray(options).map(name => this.getMigrationFilename(name)) };
169
169
  }
170
170
  if (!options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/migrations-mongodb",
3
3
  "type": "module",
4
- "version": "7.0.0-dev.65",
4
+ "version": "7.0.0-dev.67",
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",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/mongodb": "7.0.0-dev.65",
53
+ "@mikro-orm/mongodb": "7.0.0-dev.67",
54
54
  "mongodb": "6.20.0",
55
55
  "umzug": "3.8.2"
56
56
  },
@@ -58,6 +58,6 @@
58
58
  "@mikro-orm/core": "^6.6.1"
59
59
  },
60
60
  "peerDependencies": {
61
- "@mikro-orm/core": "7.0.0-dev.65"
61
+ "@mikro-orm/core": "7.0.0-dev.67"
62
62
  }
63
63
  }