@pgpm/utils 0.13.0 → 0.14.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.
Files changed (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +16 -16
  3. package/package.json +8 -8
package/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  The MIT License (MIT)
2
2
 
3
3
  Copyright (c) 2025 Dan Lynch <pyramation@gmail.com>
4
- Copyright (c) 2025 Interweb, Inc.
4
+ Copyright (c) 2025 Constructive
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,29 +1,29 @@
1
1
  # @pgpm/utils
2
2
 
3
3
  <p align="center" width="100%">
4
- <img height="250" src="https://raw.githubusercontent.com/launchql/launchql/refs/heads/main/assets/outline-logo.svg" />
4
+ <img height="250" src="https://raw.githubusercontent.com/constructive-io/constructive/refs/heads/main/assets/outline-logo.svg" />
5
5
  </p>
6
6
 
7
7
  <p align="center" width="100%">
8
- <a href="https://github.com/launchql/pgpm-modules/actions/workflows/ci.yml">
9
- <img height="20" src="https://github.com/launchql/pgpm-modules/actions/workflows/ci.yml/badge.svg" />
8
+ <a href="https://github.com/constructive-io/pgpm-modules/actions/workflows/ci.yml">
9
+ <img height="20" src="https://github.com/constructive-io/pgpm-modules/actions/workflows/ci.yml/badge.svg" />
10
10
  </a>
11
- <a href="https://github.com/launchql/pgpm-modules/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/@pgpm/utils"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/pgpm-modules?filename=packages%2Futils%2Futils%2Fpackage.json"/></a>
11
+ <a href="https://github.com/constructive-io/pgpm-modules/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/@pgpm/utils"><img height="20" src="https://img.shields.io/github/package-json/v/constructive-io/pgpm-modules?filename=packages%2Futils%2Futils%2Fpackage.json"/></a>
13
13
  </p>
14
14
 
15
- General utility functions for PostgreSQL extensions
15
+ General utility functions for PostgreSQL modules
16
16
 
17
17
  ## Overview
18
18
 
19
- `@pgpm/utils` provides essential utility functions and helper procedures used across LaunchQL extension modules. This package includes functions for error handling, data masking, and singleton pattern enforcement. These utilities form the foundation for building robust PostgreSQL extensions with consistent error handling and data protection patterns.
19
+ `@pgpm/utils` provides essential utility functions and helper procedures used across pgpm modules. This package includes functions for error handling, data masking, and singleton pattern enforcement. These utilities form the foundation for building robust PostgreSQL modules with consistent error handling and data protection patterns.
20
20
 
21
21
  ## Features
22
22
 
23
23
  - **Error Handling**: Throw custom exceptions with detailed messages
24
24
  - **Data Masking**: Mask sensitive data with padding characters
25
25
  - **Singleton Enforcement**: Ensure tables contain exactly one row
26
- - **Reusable Utilities**: Common functions used across multiple extensions
26
+ - **Reusable Utilities**: Common functions used across multiple modules
27
27
  - **Pure plpgsql**: No external dependencies required
28
28
 
29
29
  ## Installation
@@ -64,7 +64,7 @@ pgpm deploy
64
64
 
65
65
  ```bash
66
66
  # 1. Create a workspace
67
- pgpm init --workspace
67
+ pgpm init workspace
68
68
 
69
69
  # 2. Create your first module
70
70
  cd my-workspace
@@ -397,13 +397,13 @@ pnpm test
397
397
 
398
398
  ## Related Tooling
399
399
 
400
- * [pgpm](https://github.com/launchql/launchql/tree/main/packages/pgpm): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
401
- * [pgsql-test](https://github.com/launchql/launchql/tree/main/packages/pgsql-test): **📊 Isolated testing environments** with per-test transaction rollbacks—ideal for integration tests, complex migrations, and RLS simulation.
402
- * [supabase-test](https://github.com/launchql/launchql/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.
403
- * [graphile-test](https://github.com/launchql/launchql/tree/main/packages/graphile-test): **🔐 Authentication mocking** for Graphile-focused test helpers and emulating row-level security contexts.
404
- * [pgsql-parser](https://github.com/launchql/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
405
- * [libpg-query-node](https://github.com/launchql/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
406
- * [pg-proto-parser](https://github.com/launchql/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
400
+ * [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.
401
+ * [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.
402
+ * [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.
403
+ * [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.
404
+ * [pgsql-parser](https://github.com/constructive-io/pgsql-parser): **🔄 SQL conversion engine** that interprets and converts PostgreSQL syntax.
405
+ * [libpg-query-node](https://github.com/constructive-io/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
406
+ * [pg-proto-parser](https://github.com/constructive-io/pg-proto-parser): **📦 Protobuf parser** for parsing PostgreSQL Protocol Buffers definitions to generate TypeScript interfaces, utility functions, and JSON mappings for enums.
407
407
 
408
408
  ## Disclaimer
409
409
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pgpm/utils",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "General utility functions for PostgreSQL extensions",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
7
- "Interweb <developers@interweb.co>"
7
+ "Constructive <developers@constructive.io>"
8
8
  ],
9
9
  "keywords": [
10
10
  "postgresql",
@@ -21,18 +21,18 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/verify": "0.13.0"
24
+ "@pgpm/verify": "0.14.0"
25
25
  },
26
26
  "devDependencies": {
27
- "pgpm": "^0.2.0"
27
+ "pgpm": "^1.0.0"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
31
- "url": "https://github.com/launchql/pgpm-modules"
31
+ "url": "https://github.com/constructive-io/pgpm-modules"
32
32
  },
33
- "homepage": "https://github.com/launchql/pgpm-modules",
33
+ "homepage": "https://github.com/constructive-io/pgpm-modules",
34
34
  "bugs": {
35
- "url": "https://github.com/launchql/pgpm-modules/issues"
35
+ "url": "https://github.com/constructive-io/pgpm-modules/issues"
36
36
  },
37
- "gitHead": "e7de11be3a2fd806929adf48acc556d812c75aa6"
37
+ "gitHead": "7369638ab084da95b0cb00ec63ad236637f6ebe5"
38
38
  }