1.18.0 performance items: tests, the reference budget gate tightened (JS 195 kB, 404 without its exception, TTL check), docs (performance.md, AGENT.md, iapl-performance, module pages, api.md), changelog: what changes for an existing site
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d628839235
commit
f0127ac1b8
+2
-1
@@ -617,8 +617,9 @@ to add the hook to a config. Nothing to migrate.
|
||||
|
||||
| Item | Value |
|
||||
|---|---|
|
||||
| Option | `consentLog?: boolean \| { retentionDays?: number; collectionOverrides?: CollectionOverride }` (type `ConsentLogOptions`) |
|
||||
| Option | `consentLog?: boolean \| { retentionDays?: number; ttlIndex?: boolean; collectionOverrides?: CollectionOverride }` (type `ConsentLogOptions`) |
|
||||
| `retentionDays` | default `1095` (3 years) |
|
||||
| `ttlIndex` | 1.18.0, MongoDB: default `true` — a TTL index (`iapl_ttl` on the hidden date `iaplTtlFrom`) deletes records older than `retentionDays` by itself, also when no new record comes; kept at the current retention at every start; `false` drops it at the next start (the purge after a new record stays). Postgres / SQLite: not used, no column |
|
||||
| `collectionOverrides` | changes `consent-records`: an object merges `access` / `admin` / `hooks` key by key (your keys win), other keys replace; a function `(collection) => collection` takes over (keep the slug — the endpoint writes to it) |
|
||||
| Collection | `consent-records` (`CONSENT_LOG_SLUG`), group *Privacy*; fields `consentId` (index), `version`, `choices.{necessary,functional,analytics,marketing}`, `createdAt` |
|
||||
| Collection access | `read` / `delete` — admin (without `access`, i.e. no roles: any logged-in account — narrow it with `collectionOverrides`); `create` / `update` — nobody through the API (written only by the endpoint, `overrideAccess`) |
|
||||
|
||||
Reference in New Issue
Block a user