pgsql-test 2.15.3 → 2.16.0

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/admin.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PgTestConnectionOptions } from '@launchql/types';
1
+ import { PgTestConnectionOptions } from '@pgpmjs/types';
2
2
  import { PgConfig } from 'pg-env';
3
3
  import { SeedAdapter } from './seed/types';
4
4
  export declare class DbAdmin {
package/admin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DbAdmin = void 0;
4
- const logger_1 = require("@launchql/logger");
4
+ const logger_1 = require("@pgpmjs/logger");
5
5
  const child_process_1 = require("child_process");
6
6
  const fs_1 = require("fs");
7
7
  const pg_env_1 = require("pg-env");
package/connect.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PgTestConnectionOptions } from '@launchql/types';
1
+ import { PgTestConnectionOptions } from '@pgpmjs/types';
2
2
  import { PgConfig } from 'pg-env';
3
3
  import { DbAdmin } from './admin';
4
4
  import { PgTestConnector } from './manager';
package/connect.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getConnections = exports.getPgRootAdmin = void 0;
4
- const env_1 = require("@launchql/env");
4
+ const env_1 = require("@pgpmjs/env");
5
5
  const crypto_1 = require("crypto");
6
6
  const pg_cache_1 = require("pg-cache");
7
7
  const pg_env_1 = require("pg-env");
@@ -1,4 +1,4 @@
1
- import type { PgTestClientContext } from '@launchql/types';
1
+ import type { PgTestClientContext } from '@pgpmjs/types';
2
2
  /**
3
3
  * Generate SQL statements to set PostgreSQL session context variables
4
4
  * Uses SET LOCAL ROLE for the 'role' key and set_config() for other variables
package/esm/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Logger } from '@launchql/logger';
1
+ import { Logger } from '@pgpmjs/logger';
2
2
  import { execSync } from 'child_process';
3
3
  import { existsSync } from 'fs';
4
4
  import { getPgEnvOptions } from 'pg-env';
package/esm/connect.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getConnEnvOptions } from '@launchql/env';
1
+ import { getConnEnvOptions } from '@pgpmjs/env';
2
2
  import { randomUUID } from 'crypto';
3
3
  import { teardownPgPools } from 'pg-cache';
4
4
  import { getPgEnvOptions, } from 'pg-env';
package/esm/manager.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Logger } from '@launchql/logger';
1
+ import { Logger } from '@pgpmjs/logger';
2
2
  import { Pool } from 'pg';
3
3
  import { getPgEnvOptions } from 'pg-env';
4
4
  import { DbAdmin } from './admin';
package/esm/seed/csv.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { pipeline } from 'node:stream/promises';
2
- import { Logger } from '@launchql/logger';
2
+ import { Logger } from '@pgpmjs/logger';
3
3
  import { parse } from 'csv-parse';
4
4
  import { createReadStream, createWriteStream, existsSync } from 'fs';
5
5
  import { from as copyFrom, to as copyTo } from 'pg-copy-streams';
@@ -1,5 +1,5 @@
1
- import { LaunchQLPackage } from '@launchql/core';
2
- import { getEnvOptions } from '@launchql/env';
1
+ import { PgpmPackage } from '@pgpmjs/core';
2
+ import { getEnvOptions } from '@pgpmjs/env';
3
3
  /**
4
4
  * Standalone helper function to deploy LaunchQL package
5
5
  * @param config - PostgreSQL configuration
@@ -7,7 +7,7 @@ import { getEnvOptions } from '@launchql/env';
7
7
  * @param cache - Whether to enable caching (defaults to false)
8
8
  */
9
9
  export async function deployLaunchql(config, cwd, cache = false) {
10
- const proj = new LaunchQLPackage(cwd ?? process.cwd());
10
+ const proj = new PgpmPackage(cwd ?? process.cwd());
11
11
  if (!proj.isInModule())
12
12
  return;
13
13
  await proj.deploy(getEnvOptions({
package/manager.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PgTestConnector = void 0;
4
- const logger_1 = require("@launchql/logger");
4
+ const logger_1 = require("@pgpmjs/logger");
5
5
  const pg_1 = require("pg");
6
6
  const pg_env_1 = require("pg-env");
7
7
  const admin_1 = require("./admin");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgsql-test",
3
- "version": "2.15.3",
3
+ "version": "2.16.0",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "pgsql-test offers isolated, role-aware, and rollback-friendly PostgreSQL environments for integration tests — giving developers realistic test coverage without external state pollution",
6
6
  "main": "index.js",
@@ -60,16 +60,16 @@
60
60
  "makage": "^0.1.8"
61
61
  },
62
62
  "dependencies": {
63
- "@launchql/core": "^2.18.3",
64
- "@launchql/env": "^2.6.1",
65
- "@launchql/logger": "^1.2.1",
66
- "@launchql/server-utils": "^2.7.2",
67
- "@launchql/types": "^2.10.1",
63
+ "@pgpmjs/core": "^3.0.0",
64
+ "@pgpmjs/env": "^2.7.0",
65
+ "@pgpmjs/logger": "^1.3.0",
66
+ "@pgpmjs/server-utils": "^2.8.0",
67
+ "@pgpmjs/types": "^2.11.0",
68
68
  "csv-parse": "^6.1.0",
69
69
  "pg": "^8.16.3",
70
- "pg-cache": "^1.5.2",
70
+ "pg-cache": "^1.6.0",
71
71
  "pg-copy-streams": "^7.0.0",
72
72
  "pg-env": "^1.2.1"
73
73
  },
74
- "gitHead": "d20ccff8c779259574a23e93abbae51234695db5"
74
+ "gitHead": "e4d5396a5d9154f4886176bb00c2b460b0f320e5"
75
75
  }
package/roles.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PgTestConnectionOptions, RoleMapping } from '@launchql/types';
1
+ import { PgTestConnectionOptions, RoleMapping } from '@pgpmjs/types';
2
2
  /**
3
3
  * Default role mapping configuration
4
4
  */
package/seed/csv.js CHANGED
@@ -5,7 +5,7 @@ exports.csv = csv;
5
5
  exports.copyCsvIntoTable = copyCsvIntoTable;
6
6
  exports.exportTableToCsv = exportTableToCsv;
7
7
  const promises_1 = require("node:stream/promises");
8
- const logger_1 = require("@launchql/logger");
8
+ const logger_1 = require("@pgpmjs/logger");
9
9
  const csv_parse_1 = require("csv-parse");
10
10
  const fs_1 = require("fs");
11
11
  const pg_copy_streams_1 = require("pg-copy-streams");
package/seed/launchql.js CHANGED
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deployLaunchql = deployLaunchql;
4
4
  exports.launchql = launchql;
5
- const core_1 = require("@launchql/core");
6
- const env_1 = require("@launchql/env");
5
+ const core_1 = require("@pgpmjs/core");
6
+ const env_1 = require("@pgpmjs/env");
7
7
  /**
8
8
  * Standalone helper function to deploy LaunchQL package
9
9
  * @param config - PostgreSQL configuration
@@ -11,7 +11,7 @@ const env_1 = require("@launchql/env");
11
11
  * @param cache - Whether to enable caching (defaults to false)
12
12
  */
13
13
  async function deployLaunchql(config, cwd, cache = false) {
14
- const proj = new core_1.LaunchQLPackage(cwd ?? process.cwd());
14
+ const proj = new core_1.PgpmPackage(cwd ?? process.cwd());
15
15
  if (!proj.isInModule())
16
16
  return;
17
17
  await proj.deploy((0, env_1.getEnvOptions)({
package/seed/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PgTestConnectionOptions } from '@launchql/types';
1
+ import { PgTestConnectionOptions } from '@pgpmjs/types';
2
2
  import { PgConfig } from 'pg-env';
3
3
  import { DbAdmin } from '../admin';
4
4
  import { PgTestClient } from '../test-client';
package/test-client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Client, QueryResult } from 'pg';
2
2
  import { PgConfig } from 'pg-env';
3
- import { AuthOptions, PgTestConnectionOptions } from '@launchql/types';
3
+ import { AuthOptions, PgTestConnectionOptions } from '@pgpmjs/types';
4
4
  import { type JsonSeedMap } from './seed/json';
5
5
  import { type CsvSeedMap } from './seed/csv';
6
6
  export type PgTestClientOpts = {