@pgpmjs/core 3.0.2 → 3.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
@@ -1,4 +1,4 @@
1
- # @launchql/core
1
+ # @pgpmjs/core
2
2
 
3
3
  <p align="center" width="100%">
4
4
  <img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
@@ -9,12 +9,12 @@
9
9
  <img height="20" src="https://github.com/constructive-io/constructive/actions/workflows/run-tests.yaml/badge.svg" />
10
10
  </a>
11
11
  <a href="https://github.com/constructive-io/constructive/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
12
- <a href="https://www.npmjs.com/package/@launchql/core"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=packages%2Fcore%2Fpackage.json"/></a>
12
+ <a href="https://www.npmjs.com/package/@pgpmjs/core"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/constructive?filename=packages%2Fcore%2Fpackage.json"/></a>
13
13
  </p>
14
14
 
15
15
  ## Overview
16
16
 
17
- LaunchQL Core is the main package for LaunchQL, providing tools for database migrations, package management, and package scaffolding. It includes functionality for:
17
+ pgpm Core is the main package for pgpm, providing tools for database migrations, package management, and package scaffolding. It includes functionality for:
18
18
 
19
19
  - Managing PostgreSQL extensions and modules
20
20
  - Deploying, reverting, and verifying migrations
@@ -73,18 +73,18 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
73
73
 
74
74
  ### 🔁 Streaming & Uploads
75
75
 
76
+ * [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.
77
+ * [etag-stream](https://github.com/constructive-io/constructive/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
78
+ * [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.
79
+ * [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.
76
80
  * [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.
77
- * [launchql/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.
78
- * [launchql/etag-stream](https://github.com/constructive-io/constructive/tree/main/packages/etag-stream): **🔄 ETag computation** via Node stream transformer during upload or transfer.
79
- * [launchql/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.
80
- * [launchql/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.
81
81
  * [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.
82
82
 
83
83
  ### 🧰 CLI & Codegen
84
84
 
85
85
  * [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.
86
86
  * [@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.
87
- * [constructive-io/constructive-gen](https://github.com/constructive-io/constructive/tree/main/packages/launchql-gen): **✨ Auto-generated GraphQL** mutations and queries dynamically built from introspected schema data.
87
+ * [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.
88
88
  * [@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.
89
89
  * [@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.
90
90
 
@@ -16,8 +16,12 @@ export interface BoilerplateQuestion {
16
16
  type?: 'text' | 'list' | 'checkbox';
17
17
  /** Options for list or checkbox types */
18
18
  options?: string[];
19
+ /** Static default value when no resolver is provided */
20
+ default?: any;
19
21
  /** Source to derive default value from (e.g., "git.user.name", "npm.whoami") */
20
22
  defaultFrom?: string;
23
+ /** Auto-set value from resolver, skipping the prompt entirely */
24
+ setFrom?: string;
21
25
  }
22
26
  /**
23
27
  * Configuration for a single boilerplate template.
@@ -15,7 +15,7 @@ export interface DeployOptions {
15
15
  modulePath: string;
16
16
  /**
17
17
  * Target change name or tag (e.g., "changeName" or "@tagName").
18
- * Note: Project name is already resolved upstream by LaunchQLPackage.
18
+ * Note: Project name is already resolved upstream by PgpmPackage.
19
19
  */
20
20
  toChange?: string;
21
21
  useTransaction?: boolean;
@@ -31,7 +31,7 @@ export interface RevertOptions {
31
31
  modulePath: string;
32
32
  /**
33
33
  * Target change name or tag (e.g., "changeName" or "@tagName").
34
- * Note: Project name is already resolved upstream by LaunchQLPackage.
34
+ * Note: Project name is already resolved upstream by PgpmPackage.
35
35
  */
36
36
  toChange?: string;
37
37
  useTransaction?: boolean;
@@ -41,7 +41,7 @@ export interface VerifyOptions {
41
41
  modulePath: string;
42
42
  /**
43
43
  * Target change name or tag (e.g., "changeName" or "@tagName").
44
- * Note: Project name is already resolved upstream by LaunchQLPackage.
44
+ * Note: Project name is already resolved upstream by PgpmPackage.
45
45
  */
46
46
  toChange?: string;
47
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM Package and Migration Tools",
6
6
  "main": "index.js",
@@ -46,25 +46,25 @@
46
46
  "makage": "^0.1.8"
47
47
  },
48
48
  "dependencies": {
49
- "@pgpmjs/env": "^2.8.0",
50
- "@pgpmjs/logger": "^1.3.1",
51
- "@pgpmjs/server-utils": "^2.8.2",
52
- "@pgpmjs/types": "^2.12.0",
49
+ "@pgpmjs/env": "^2.8.2",
50
+ "@pgpmjs/logger": "^1.3.3",
51
+ "@pgpmjs/server-utils": "^2.8.4",
52
+ "@pgpmjs/types": "^2.12.2",
53
53
  "@pgsql/types": "^17.6.2",
54
- "create-gen-app": "^0.3.5",
54
+ "create-gen-app": "^0.3.6",
55
55
  "csv-to-pg": "^2.0.10",
56
56
  "glob": "^13.0.0",
57
- "komoji": "^0.7.8",
57
+ "komoji": "^0.7.11",
58
58
  "parse-package-name": "^1.0.0",
59
59
  "pg": "^8.16.3",
60
- "pg-cache": "^1.6.2",
61
- "pg-env": "^1.2.1",
60
+ "pg-cache": "^1.6.4",
61
+ "pg-env": "^1.2.2",
62
62
  "pgsql-deparser": "^17.12.2",
63
63
  "pgsql-parser": "^17.9.2",
64
- "yanse": "^0.1.7"
64
+ "yanse": "^0.1.8"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@pgsql/types": "^17.6.1"
68
68
  },
69
- "gitHead": "0f810b087435df60801bfa63d4f780e95acb6d02"
69
+ "gitHead": "4326e2092d0c57901e898560974d502d626c42cb"
70
70
  }