pgpm 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -377,10 +377,10 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
377
377
 
378
378
  ### 🧪 Testing
379
379
 
380
- * [pgsql-test](https://github.com/constructive-io/constructive/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
381
- * [supabase-test](https://github.com/constructive-io/constructive/tree/main/packages/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
382
- * [graphile-test](https://github.com/constructive-io/constructive/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
383
- * [pg-query-context](https://github.com/constructive-io/constructive/tree/main/packages/pg-query-context): **🔒 Session context injection** to add session-local context (e.g., `SET LOCAL`) into queries—ideal for setting `role`, `jwt.claims`, and other session settings.
380
+ * [pgsql-test](https://github.com/constructive-io/constructive/tree/main/postgres/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
381
+ * [supabase-test](https://github.com/constructive-io/constructive/tree/main/postgres/supabase-test): **🧪 Supabase-native test harness** preconfigured for the local Supabase stack—per-test rollbacks, JWT/role context helpers, and CI/GitHub Actions ready.
382
+ * [graphile-test](https://github.com/constructive-io/constructive/tree/main/graphile/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
383
+ * [pg-query-context](https://github.com/constructive-io/constructive/tree/main/postgres/pg-query-context): **🔒 Session context injection** to add session-local context (e.g., `SET LOCAL`) into queries—ideal for setting `role`, `jwt.claims`, and other session settings.
384
384
 
385
385
  ### 🧠 Parsing & AST
386
386
 
@@ -394,25 +394,25 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
394
394
 
395
395
  ### 🚀 API & Dev Tools
396
396
 
397
- * [launchql/server](https://github.com/constructive-io/constructive/tree/main/packages/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
398
- * [launchql/explorer](https://github.com/constructive-io/constructive/tree/main/packages/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
397
+ * [@constructive-io/graphql-server](https://github.com/constructive-io/constructive/tree/main/graphql/server): **⚡ Express-based API server** powered by PostGraphile to expose a secure, scalable GraphQL API over your Postgres database.
398
+ * [@constructive-io/graphql-explorer](https://github.com/constructive-io/constructive/tree/main/graphql/explorer): **🔎 Visual API explorer** with GraphiQL for browsing across all databases and schemas—useful for debugging, documentation, and API prototyping.
399
399
 
400
400
  ### 🔁 Streaming & Uploads
401
401
 
402
- * [etag-hash](https://github.com/constructive-io/constructive/tree/main/packages/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
403
- * [etag-stream](https://github.com/constructive-io/constructive/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
404
- * [uuid-hash](https://github.com/constructive-io/constructive/tree/main/packages/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
405
- * [uuid-stream](https://github.com/constructive-io/constructive/tree/main/packages/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
406
- * [launchql/s3-streamer](https://github.com/constructive-io/constructive/tree/main/packages/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
407
- * [launchql/upload-names](https://github.com/constructive-io/constructive/tree/main/packages/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
402
+ * [etag-hash](https://github.com/constructive-io/constructive/tree/main/streaming/etag-hash): **🏷️ S3-compatible ETags** created by streaming and hashing file uploads in chunks.
403
+ * [etag-stream](https://github.com/constructive-io/constructive/tree/main/streaming/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
404
+ * [uuid-hash](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-hash): **🆔 Deterministic UUIDs** generated from hashed content, great for deduplication and asset referencing.
405
+ * [uuid-stream](https://github.com/constructive-io/constructive/tree/main/streaming/uuid-stream): **🌊 Streaming UUID generation** based on piped file content—ideal for upload pipelines.
406
+ * [@constructive-io/s3-streamer](https://github.com/constructive-io/constructive/tree/main/streaming/s3-streamer): **📤 Direct S3 streaming** for large files with support for metadata injection and content validation.
407
+ * [@constructive-io/upload-names](https://github.com/constructive-io/constructive/tree/main/streaming/upload-names): **📂 Collision-resistant filenames** utility for structured and unique file names for uploads.
408
408
 
409
409
  ### 🧰 CLI & Codegen
410
410
 
411
- * [pgpm](https://github.com/constructive-io/constructive/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
412
- * [@launchql/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing LaunchQL projects—supports database scaffolding, migrations, seeding, code generation, and automation.
413
- * [launchql-gen](https://github.com/constructive-io/constructive/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
414
- * [@launchql/query-builder](https://github.com/constructive-io/constructive/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
415
- * [@launchql/query](https://github.com/constructive-io/constructive/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
411
+ * [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
412
+ * [@constructive-io/cli](https://github.com/constructive-io/constructive/tree/main/packages/cli): **🖥️ Command-line toolkit** for managing Constructive projects—supports database scaffolding, migrations, seeding, code generation, and automation.
413
+ * [@constructive-io/graphql-codegen](https://github.com/constructive-io/constructive/tree/main/graphql/codegen): **✨ GraphQL code generation** (types, operations, SDK) from schema/endpoint introspection.
414
+ * [@constructive-io/query-builder](https://github.com/constructive-io/constructive/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
415
+ * [@constructive-io/graphql-query](https://github.com/constructive-io/constructive/tree/main/graphql/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
416
416
 
417
417
  ## Credits
418
418
 
package/commands/env.js CHANGED
@@ -26,9 +26,9 @@ Examples:
26
26
  pgpm env --supabase Print Supabase env exports
27
27
  eval "$(pgpm env)" Load default Postgres env into shell
28
28
  eval "$(pgpm env --supabase)" Load Supabase env into shell
29
- pgpm env lql deploy --database db1 Run command with default Postgres env
29
+ pgpm env pgpm deploy --database db1 Run command with default Postgres env
30
30
  pgpm env createdb mydb Run command with default Postgres env
31
- pgpm env --supabase lql deploy --database db1 Run command with Supabase env
31
+ pgpm env --supabase pgpm deploy --database db1 Run command with Supabase env
32
32
  pgpm env --supabase createdb mydb Run command with Supabase env
33
33
  `;
34
34
  const SUPABASE_PROFILE = {
@@ -18,10 +18,10 @@ const subcommandMap = {
18
18
  const migrateUsageText = `
19
19
  Migrate Commands:
20
20
 
21
- launchql migrate init Initialize migration tracking in database
22
- launchql migrate status Show current migration status
23
- launchql migrate list List all changes (deployed and pending)
24
- launchql migrate deps Show change dependencies
21
+ pgpm migrate init Initialize migration tracking in database
22
+ pgpm migrate status Show current migration status
23
+ pgpm migrate list List all changes (deployed and pending)
24
+ pgpm migrate deps Show change dependencies
25
25
 
26
26
  Options:
27
27
  --help, -h Show this help message
@@ -24,9 +24,9 @@ Examples:
24
24
  pgpm env --supabase Print Supabase env exports
25
25
  eval "$(pgpm env)" Load default Postgres env into shell
26
26
  eval "$(pgpm env --supabase)" Load Supabase env into shell
27
- pgpm env lql deploy --database db1 Run command with default Postgres env
27
+ pgpm env pgpm deploy --database db1 Run command with default Postgres env
28
28
  pgpm env createdb mydb Run command with default Postgres env
29
- pgpm env --supabase lql deploy --database db1 Run command with Supabase env
29
+ pgpm env --supabase pgpm deploy --database db1 Run command with Supabase env
30
30
  pgpm env --supabase createdb mydb Run command with Supabase env
31
31
  `;
32
32
  const SUPABASE_PROFILE = {
@@ -13,10 +13,10 @@ const subcommandMap = {
13
13
  const migrateUsageText = `
14
14
  Migrate Commands:
15
15
 
16
- launchql migrate init Initialize migration tracking in database
17
- launchql migrate status Show current migration status
18
- launchql migrate list List all changes (deployed and pending)
19
- launchql migrate deps Show change dependencies
16
+ pgpm migrate init Initialize migration tracking in database
17
+ pgpm migrate status Show current migration status
18
+ pgpm migrate list List all changes (deployed and pending)
19
+ pgpm migrate deps Show change dependencies
20
20
 
21
21
  Options:
22
22
  --help, -h Show this help message
package/esm/index.js CHANGED
@@ -29,7 +29,9 @@ export const options = {
29
29
  minimistOpts: {
30
30
  alias: {
31
31
  v: 'version',
32
- h: 'help'
32
+ h: 'help',
33
+ 'from-branch': 'fromBranch',
34
+ 'template-path': 'templatePath'
33
35
  }
34
36
  }
35
37
  };
package/index.js CHANGED
@@ -69,7 +69,9 @@ exports.options = {
69
69
  minimistOpts: {
70
70
  alias: {
71
71
  v: 'version',
72
- h: 'help'
72
+ h: 'help',
73
+ 'from-branch': 'fromBranch',
74
+ 'template-path': 'templatePath'
73
75
  }
74
76
  }
75
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostgreSQL Package Manager - Database migration and package management CLI",
6
6
  "main": "index.js",
@@ -29,7 +29,7 @@
29
29
  "build:dev": "makage build --dev",
30
30
  "dev": "ts-node ./src/index.ts",
31
31
  "lint": "eslint . --fix",
32
- "test": "jest",
32
+ "test": "jest --passWithNoTests",
33
33
  "test:watch": "jest --watch"
34
34
  },
35
35
  "devDependencies": {
@@ -45,18 +45,18 @@
45
45
  "ts-node": "^10.9.2"
46
46
  },
47
47
  "dependencies": {
48
- "@pgpmjs/core": "^3.0.4",
49
- "@pgpmjs/env": "^2.8.2",
50
- "@pgpmjs/logger": "^1.3.3",
51
- "@pgpmjs/types": "^2.12.2",
48
+ "@pgpmjs/core": "^3.0.6",
49
+ "@pgpmjs/env": "^2.8.4",
50
+ "@pgpmjs/logger": "^1.3.4",
51
+ "@pgpmjs/types": "^2.12.4",
52
52
  "appstash": "^0.2.6",
53
53
  "create-gen-app": "^0.3.6",
54
54
  "find-and-require-package-json": "^0.8.2",
55
55
  "inquirerer": "^2.1.14",
56
56
  "js-yaml": "^4.1.0",
57
57
  "minimist": "^1.2.8",
58
- "pg-cache": "^1.6.4",
59
- "pg-env": "^1.2.2",
58
+ "pg-cache": "^1.6.6",
59
+ "pg-env": "^1.2.3",
60
60
  "semver": "^7.6.2",
61
61
  "shelljs": "^0.10.0",
62
62
  "yanse": "^0.1.8"
@@ -73,5 +73,5 @@
73
73
  "pg",
74
74
  "pgsql"
75
75
  ],
76
- "gitHead": "4326e2092d0c57901e898560974d502d626c42cb"
76
+ "gitHead": "22cfe32e994e26a6490e04e28bab26d1e7e6345c"
77
77
  }