@cosmicdrift/kumiko-bundled-features 0.413.0 → 0.413.1

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.
@@ -35,8 +35,8 @@ export function createDataRetentionFeature() {
35
35
  // Cross-feature API for the forget flow and cleanup job
36
36
  r.exposesApi("retention.policyFor");
37
37
  r.queryHandler(policyForQuery);
38
- // Autonomous retention cleanup. perTenant fan-out (one run per
39
- // active tenant, like soft-delete-cleanup): runRetentionCleanup's raw
38
+ // Autonomous retention cleanup. perTenant fan-out (one run per active
39
+ // tenant plus the system tenant, like soft-delete-cleanup): runRetentionCleanup's raw
40
40
  // query helpers need the unfiltered runner, so the handler declares
41
41
  // escapeHatch and reaches for ctx.db.unsafeRaw(). Without this cron,
42
42
  // retention rules are configured but never enforced.
@@ -44,6 +44,7 @@ export function createDataRetentionFeature() {
44
44
  name: "retention-cleanup",
45
45
  trigger: { maintenance: true },
46
46
  perTenant: true,
47
+ includeSystemTenant: true,
47
48
  concurrency: "skip",
48
49
  escapeHatch: {
49
50
  reason: "retention cleanup runs raw deletes and preset lookups; every statement filters by this run's tenantId",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-bundled-features",
3
- "version": "0.413.0",
3
+ "version": "0.413.1",
4
4
  "description": "Built-in features — tenant, user, auth, delivery. The stuff you'd rewrite anyway, already typed.",
5
5
  "license": "MIT",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -614,9 +614,9 @@
614
614
  }
615
615
  },
616
616
  "dependencies": {
617
- "@cosmicdrift/kumiko-framework": "0.413.0",
618
- "@cosmicdrift/kumiko-renderer": "0.413.0",
619
- "@cosmicdrift/kumiko-types": "0.413.0",
617
+ "@cosmicdrift/kumiko-framework": "0.413.1",
618
+ "@cosmicdrift/kumiko-renderer": "0.413.1",
619
+ "@cosmicdrift/kumiko-types": "0.413.1",
620
620
  "@mollie/api-client": "^4.6.0",
621
621
  "@node-rs/argon2": "^2.2.2",
622
622
  "@tiptap/core": "^3.32.2",
@@ -1254,19 +1254,19 @@
1254
1254
  "LICENSE"
1255
1255
  ],
1256
1256
  "devDependencies": {
1257
- "@cosmicdrift/kumiko-locale-de": "0.413.0",
1258
- "@cosmicdrift/kumiko-locale-es": "0.413.0",
1259
- "@cosmicdrift/kumiko-locale-fr": "0.413.0",
1260
- "@cosmicdrift/kumiko-locale-it": "0.413.0",
1261
- "@cosmicdrift/kumiko-renderer-mail-html": "0.413.0",
1262
- "@cosmicdrift/kumiko-testing": "0.413.0",
1257
+ "@cosmicdrift/kumiko-locale-de": "0.413.1",
1258
+ "@cosmicdrift/kumiko-locale-es": "0.413.1",
1259
+ "@cosmicdrift/kumiko-locale-fr": "0.413.1",
1260
+ "@cosmicdrift/kumiko-locale-it": "0.413.1",
1261
+ "@cosmicdrift/kumiko-renderer-mail-html": "0.413.1",
1262
+ "@cosmicdrift/kumiko-testing": "0.413.1",
1263
1263
  "@testing-library/user-event": "^14.6.8",
1264
1264
  "@types/sanitize-html": "^2.16.2",
1265
1265
  "jsqr": "^1.4.0",
1266
1266
  "unpdf": "^1.9.1"
1267
1267
  },
1268
1268
  "peerDependencies": {
1269
- "@cosmicdrift/kumiko-testing": "0.413.0"
1269
+ "@cosmicdrift/kumiko-testing": "0.413.1"
1270
1270
  },
1271
1271
  "peerDependenciesMeta": {
1272
1272
  "@cosmicdrift/kumiko-testing": {
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": "0.413.1",
4
+ "type": "fix",
5
+ "title": "Retention cleanup, upload sweep and soft-delete cleanup reach the system tenant",
6
+ "detail": "Jobs with `perTenant: true` can set `includeSystemTenant: true` to get one more run with `SYSTEM_TENANT_ID` after the active tenants (no duplicate if the app's `getActiveTenantIds` already returns it). `data-retention:job:retention-cleanup`, `files:job:sweep-orphaned-uploads` and `soft-delete:job:cleanup` set it, so helpdesk requests, replies and their attachments are deleted after `keepFor`. The retention run applies to every entity with a `retention` rule whose rows sit in the system tenant (for example download attempts or custom-field values written in a SystemAdmin session); they now expire after their declared `keepFor` like in any other tenant. Other per-tenant jobs (tenant inactivity, billing, workflows, reindex, inbound-mail retention) keep running for active tenants only. The soft-delete cleanup computes its grace cutoff from the job clock instead of the wall clock. Setting `includeSystemTenant` without `perTenant` fails at boot."
7
+ },
2
8
  {
3
9
  "version": "0.407.0",
4
10
  "type": "fix",
@@ -1,4 +1,16 @@
1
1
  [
2
+ {
3
+ "version": "0.413.1",
4
+ "type": "improvement",
5
+ "title": "helpdesk sample: complete same-origin contact page",
6
+ "detail": "`samples/apps/use-all-bundled/public/helpdesk-contact.html` (with `.js` and `.css`) loads `/helpdesk/client.js`, builds the form from `load()` (kinds, optional phone), submits with proof of work and a hidden honeypot field and shows the sent, rate-limited and failed states. Two Playwright specs cover a real submit that reaches the SystemAdmin inbox and a honeypot submit that stores nothing."
7
+ },
8
+ {
9
+ "version": "0.413.1",
10
+ "type": "fix",
11
+ "title": "helpdesk recipe: client script same-origin, notes-history listed as required",
12
+ "detail": "The recipe comment embedded `/helpdesk/client.js` from another origin, but the client posts to the relative paths `/api/query` and `/api/write` without cookies, so the page has to share the app's origin or forward `/api` to the app on its own origin. The recipe and its README now say so and list `notes-history` with `config`, `delivery`, `user-data-rights` and `files` as required features."
13
+ },
2
14
  {
3
15
  "version": "0.413.0",
4
16
  "type": "breaking",