@mikro-orm/migrations 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.
@@ -39,7 +39,7 @@ export class MigrationRunner {
39
39
  let queries = migration.getQueries();
40
40
  queries.unshift(...this.helper.getSchemaBeginning(charset, this.options.disableForeignKeys).split('\n'));
41
41
  queries.push(...this.helper.getSchemaEnd(this.options.disableForeignKeys).split('\n'));
42
- queries = queries.filter(sql => !Utils.isString(sql) || sql.trim().length > 0);
42
+ queries = queries.filter(sql => typeof sql !== 'string' || sql.trim().length > 0);
43
43
  return queries;
44
44
  }
45
45
  }
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 { DatabaseSchema, type EntityManager } from '@mikro-orm/knex';
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 { basename, join } from 'node:path';
3
3
  import { existsSync, writeFileSync } from 'node:fs';
4
4
  import { t, Type, UnknownType, Utils, } from '@mikro-orm/core';
@@ -298,7 +298,7 @@ export class Migrator {
298
298
  return name.match(/^\d{14}$/) ? this.options.fileName(name) : name;
299
299
  }
300
300
  prefix(options) {
301
- if (Utils.isString(options) || Array.isArray(options)) {
301
+ if (typeof options === 'string' || Array.isArray(options)) {
302
302
  return { migrations: Utils.asArray(options).map(name => this.getMigrationFilename(name)) };
303
303
  }
304
304
  if (!options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mikro-orm/migrations",
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,13 +50,13 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@mikro-orm/knex": "7.0.0-dev.65",
53
+ "@mikro-orm/knex": "7.0.0-dev.67",
54
54
  "umzug": "3.8.2"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@mikro-orm/core": "^6.6.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@mikro-orm/core": "7.0.0-dev.65"
60
+ "@mikro-orm/core": "7.0.0-dev.67"
61
61
  }
62
62
  }