@pgpm/stamps 0.28.0 → 0.28.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
@@ -203,7 +203,7 @@ The test suite validates:
203
203
 
204
204
  ## Related Tooling
205
205
 
206
- * [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.
206
+ * [pgpm](https://github.com/constructive-io/constructive/tree/main/pgpm/cli): **🖥️ PostgreSQL Package Manager** for modular Postgres development. Works with database workspaces, scaffolding, migrations, seeding, and installing database packages.
207
207
  * [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.
208
208
  * [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.
209
209
  * [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.
@@ -211,21 +211,6 @@ The test suite validates:
211
211
  * [libpg-query-node](https://github.com/constructive-io/libpg-query-node): **🌉 Node.js bindings** for `libpg_query`, converting SQL into parse trees.
212
212
  * [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.
213
213
 
214
- ### 📚 Documentation & Skills
215
-
216
- * [constructive-skills](https://github.com/constructive-io/constructive-skills): **📖 Platform documentation and AI agent skills** — feature catalog, blueprint reference, SDK guides, and deployment guides.
217
-
218
- Install skills for AI coding agents:
219
-
220
- ```bash
221
- # All platform skills (security, blueprints, codegen, billing, etc.)
222
- npx skills add constructive-io/constructive-skills
223
-
224
- # Individual repo skills (pgpm, testing, CLI, search, etc.)
225
- npx skills add https://github.com/constructive-io/constructive --skill pgpm
226
- npx skills add https://github.com/constructive-io/constructive --skill constructive-testing
227
- ```
228
-
229
214
  ## Disclaimer
230
215
 
231
216
  AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpm/stamps",
3
- "version": "0.28.0",
3
+ "version": "0.28.4",
4
4
  "description": "Timestamp utilities and audit trail functions for PostgreSQL",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "contributors": [
@@ -21,11 +21,11 @@
21
21
  "test:watch": "jest --watch"
22
22
  },
23
23
  "dependencies": {
24
- "@pgpm/jwt-claims": "0.28.0",
25
- "@pgpm/verify": "0.28.0"
24
+ "@pgpm/jwt-claims": "0.28.4",
25
+ "@pgpm/verify": "0.28.4"
26
26
  },
27
27
  "devDependencies": {
28
- "pgpm": "^4.23.2"
28
+ "pgpm": "^4.28.7"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/constructive-io/pgpm-modules/issues"
37
37
  },
38
- "gitHead": "d2ab7ca810ded086eb742eb8f0ca362b6212b97e"
38
+ "gitHead": "08979b82f1f68af396b540c6ce0cda4b438d34f0"
39
39
  }
@@ -1,33 +0,0 @@
1
- \echo Use "CREATE EXTENSION pgpm-stamps" to load this file. \quit
2
- CREATE SCHEMA stamps;
3
-
4
- GRANT USAGE ON SCHEMA stamps TO authenticated, anonymous;
5
-
6
- ALTER DEFAULT PRIVILEGES IN SCHEMA stamps
7
- GRANT EXECUTE ON FUNCTIONS TO authenticated;
8
-
9
- CREATE FUNCTION stamps.peoplestamps() RETURNS trigger AS $EOFCODE$
10
- BEGIN
11
- IF TG_OP = 'INSERT' THEN
12
- NEW.created_by = jwt_public.current_user_id();
13
- NEW.updated_by = jwt_public.current_user_id();
14
- ELSIF TG_OP = 'UPDATE' THEN
15
- NEW.created_by = OLD.created_by;
16
- NEW.updated_by = jwt_public.current_user_id();
17
- END IF;
18
- RETURN NEW;
19
- END;
20
- $EOFCODE$ LANGUAGE plpgsql;
21
-
22
- CREATE FUNCTION stamps.timestamps() RETURNS trigger AS $EOFCODE$
23
- BEGIN
24
- IF TG_OP = 'INSERT' THEN
25
- NEW.created_at = NOW();
26
- NEW.updated_at = NOW();
27
- ELSIF TG_OP = 'UPDATE' THEN
28
- NEW.created_at = OLD.created_at;
29
- NEW.updated_at = NOW();
30
- END IF;
31
- RETURN NEW;
32
- END;
33
- $EOFCODE$ LANGUAGE plpgsql;