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 +17 -17
- package/commands/env.js +2 -2
- package/commands/migrate.js +4 -4
- package/esm/commands/env.js +2 -2
- package/esm/commands/migrate.js +4 -4
- package/esm/index.js +3 -1
- package/index.js +3 -1
- package/package.json +9 -9
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/
|
|
381
|
-
* [supabase-test](https://github.com/constructive-io/constructive/tree/main/
|
|
382
|
-
* [graphile-test](https://github.com/constructive-io/constructive/tree/main/
|
|
383
|
-
* [pg-query-context](https://github.com/constructive-io/constructive/tree/main/
|
|
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
|
-
* [
|
|
398
|
-
* [
|
|
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/
|
|
403
|
-
* [etag-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
404
|
-
* [uuid-hash](https://github.com/constructive-io/constructive/tree/main/
|
|
405
|
-
* [uuid-stream](https://github.com/constructive-io/constructive/tree/main/
|
|
406
|
-
* [
|
|
407
|
-
* [
|
|
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/
|
|
412
|
-
* [@
|
|
413
|
-
* [
|
|
414
|
-
* [@
|
|
415
|
-
* [@
|
|
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
|
|
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
|
|
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 = {
|
package/commands/migrate.js
CHANGED
|
@@ -18,10 +18,10 @@ const subcommandMap = {
|
|
|
18
18
|
const migrateUsageText = `
|
|
19
19
|
Migrate Commands:
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
package/esm/commands/env.js
CHANGED
|
@@ -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
|
|
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
|
|
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 = {
|
package/esm/commands/migrate.js
CHANGED
|
@@ -13,10 +13,10 @@ const subcommandMap = {
|
|
|
13
13
|
const migrateUsageText = `
|
|
14
14
|
Migrate Commands:
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "1.0.
|
|
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.
|
|
49
|
-
"@pgpmjs/env": "^2.8.
|
|
50
|
-
"@pgpmjs/logger": "^1.3.
|
|
51
|
-
"@pgpmjs/types": "^2.12.
|
|
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.
|
|
59
|
-
"pg-env": "^1.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": "
|
|
76
|
+
"gitHead": "22cfe32e994e26a6490e04e28bab26d1e7e6345c"
|
|
77
77
|
}
|