@sqb/migrator 4.26.1 → 5.0.1

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.
@@ -1,8 +1,8 @@
1
1
  import { Connection } from 'postgrejs';
2
- import { StrictOmit } from 'ts-gems';
2
+ import type { StrictOmit } from 'ts-gems';
3
3
  import type { DbMigratorOptions } from '../db-migrator.js';
4
4
  import { MigrationAdapter } from '../migration-adapter.js';
5
- import { Migration, MigrationPackage, MigrationTask } from '../migration-package.js';
5
+ import { type Migration, MigrationPackage, type MigrationTask } from '../migration-package.js';
6
6
  import { MigrationStatus } from '../types.js';
7
7
  export declare class PgMigrationAdapter extends MigrationAdapter {
8
8
  protected _connection: Connection;
package/db-migrator.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ClientConfiguration } from '@sqb/connect';
2
2
  import { AsyncEventEmitter } from 'strict-typed-events';
3
3
  import { MigrationAdapter } from './migration-adapter.js';
4
- import { MigrationPackage, MigrationPackageConfig } from './migration-package.js';
4
+ import { MigrationPackage, type MigrationPackageConfig } from './migration-package.js';
5
5
  export interface DbMigratorOptions {
6
6
  connection: ClientConfiguration;
7
7
  migrationPackage: MigrationPackage | MigrationPackageConfig;
@@ -1,4 +1,4 @@
1
- import { PartialSome, StrictOmit } from 'ts-gems';
1
+ import type { PartialSome, StrictOmit } from 'ts-gems';
2
2
  import type { MigrationAdapter } from './migration-adapter.js';
3
3
  export interface MigrationPackage {
4
4
  name: string;
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "name": "@sqb/migrator",
3
3
  "description": "Database migrator for SQB",
4
- "version": "4.26.1",
4
+ "version": "5.0.1",
5
5
  "author": "Panates",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
8
8
  "cross-dirname": "^0.1.0",
9
9
  "fast-glob": "^3.3.3",
10
10
  "strict-typed-events": "^2.8.0",
11
- "ts-gems": "^3.11.6",
11
+ "ts-gems": "^3.12.0",
12
12
  "tslib": "^2.8.1"
13
13
  },
14
14
  "peerDependencies": {
15
- "@sqb/builder": "^4.26.1",
16
- "@sqb/connect": "^4.26.1",
17
- "@sqb/postgres": "^4.26.1"
15
+ "@sqb/builder": "^5.0.1",
16
+ "@sqb/connect": "^5.0.1",
17
+ "@sqb/postgres": "^5.0.1"
18
18
  },
19
19
  "type": "module",
20
20
  "module": "./index.js",