@owlmeans/marketing-consent-postgres 0.1.18-rc.0 → 0.1.18-rc.10

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
@@ -6,7 +6,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
6
6
  your project's skill store (`.agents/skills/`):
7
7
 
8
8
  ```sh
9
- npx @owlmeans/agent-skills@^0.1.18-rc.33
9
+ npx @owlmeans/agent-skills@^0.1.18-rc.44
10
10
  ```
11
11
 
12
12
  The embedded files are version-matched to this package release. Do not edit them
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
3
  "package": "@owlmeans/marketing-consent-postgres",
4
- "version": "0.1.18-rc.0",
5
- "generatedAt": "2026-09-22T17:37:10.922Z",
4
+ "version": "0.1.18-rc.10",
5
+ "generatedAt": "2026-09-30T09:41:02.831Z",
6
6
  "canonicalRepo": "https://github.com/owlmeans/common",
7
7
  "entries": [
8
8
  {
@@ -8,7 +8,7 @@ user-invocable: false
8
8
  # @owlmeans/marketing-consent-postgres
9
9
 
10
10
  **Layer:** Infra extension
11
- **Install:** `"@owlmeans/marketing-consent-postgres": "^0.1.18-rc.0"` in `dependencies` (peers `pg`, `ajv`)
11
+ **Install:** `"@owlmeans/marketing-consent-postgres": "^0.1.18-rc.10"` in `dependencies` (peers `pg`, `ajv`)
12
12
 
13
13
  The Postgres counterpart to `@owlmeans/server-marketing-consent`'s two resources. This package is
14
14
  for a **generated target project**, which runs Postgres — the platform's own equivalent for
@@ -46,9 +46,9 @@ that accidentally reshapes `decisions` into something path-addressable).
46
46
 
47
47
  ## Indexes
48
48
 
49
- - `idx_mc_state_subject` — `{ columns: ['subject'], unique: true }`: one state row per subject,
50
- the same invariant `subjectKey(subject)` being the record's own `id` already gives on the Mongo
51
- side.
49
+ - `idx_mc_state_subject` — `{ columns: ['subject'], unique: true }`: one state row per subject.
50
+ The service addresses a person's row by `subject` (the row's `id` is minted by Postgres), so
51
+ this index is what makes that address unique, and what a racing first save collides on.
52
52
  - `idx_mc_state_user` — `{ columns: ['userId'] }`: lookups across a user's profiles/entities.
53
53
  - `idx_mc_log_subject_key` — `{ columns: ['subject', 'key', 'decidedAt'] }`: a subject's history
54
54
  for one consent key, newest first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/marketing-consent-postgres",
3
- "version": "0.1.18-rc.0",
3
+ "version": "0.1.18-rc.10",
4
4
  "license": "MIT",
5
5
  "description": "Postgres-backed resources for @owlmeans/marketing-consent — the state and log tables of a generated target project, compiled from the shared AJV schema in @owlmeans/server-marketing-consent.",
6
6
  "type": "module",
@@ -23,11 +23,11 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@owlmeans/context": "^0.1.18-rc.29",
27
- "@owlmeans/marketing-consent": "^0.1.18-rc.0",
28
- "@owlmeans/postgres-resource": "^0.1.18-rc.31",
29
- "@owlmeans/resource": "^0.1.18-rc.31",
30
- "@owlmeans/server-marketing-consent": "^0.1.18-rc.0"
26
+ "@owlmeans/context": "^0.1.18-rc.32",
27
+ "@owlmeans/marketing-consent": "^0.1.18-rc.6",
28
+ "@owlmeans/postgres-resource": "^0.1.18-rc.38",
29
+ "@owlmeans/resource": "^0.1.18-rc.37",
30
+ "@owlmeans/server-marketing-consent": "^0.1.18-rc.10"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "ajv": "*",
@@ -35,8 +35,8 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@owlmeans/dep-config": "workspace:*",
38
- "@owlmeans/test": "^0.1.18-rc.29",
39
- "@owlmeans/test-integration": "^0.1.18-rc.26",
38
+ "@owlmeans/test": "^0.1.18-rc.33",
39
+ "@owlmeans/test-integration": "^0.1.18-rc.30",
40
40
  "@types/bun": "^1.4.0",
41
41
  "@types/pg": "^8.20.4",
42
42
  "ajv": "^8.17.1",
@@ -61,7 +61,7 @@ describe('@owlmeans/marketing-consent-postgres — resources against a real cont
61
61
  mode: 'opt-in', decidedAt: '2026-01-01T00:00:00.000Z', source: 'settings'
62
62
  },
63
63
  {
64
- key: 'trackers.advertising', granted: false, revisedAt: '2026-01-01T00:00:00.000Z',
64
+ key: 'data.profiling', granted: false, revisedAt: '2026-01-01T00:00:00.000Z',
65
65
  mode: 'opt-out', decidedAt: '2026-01-01T00:00:00.000Z', source: 'settings'
66
66
  }
67
67
  ],
@@ -77,7 +77,7 @@ describe('@owlmeans/marketing-consent-postgres — resources against a real cont
77
77
  mode: 'opt-in', decidedAt: '2026-01-01T00:00:00.000Z', source: 'settings'
78
78
  },
79
79
  {
80
- key: 'trackers.advertising', granted: false, revisedAt: '2026-01-01T00:00:00.000Z',
80
+ key: 'data.profiling', granted: false, revisedAt: '2026-01-01T00:00:00.000Z',
81
81
  mode: 'opt-out', decidedAt: '2026-01-01T00:00:00.000Z', source: 'settings'
82
82
  }
83
83
  ])