@adminiumjs/manifest 0.3.82 → 0.3.84

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/dist/schema.js CHANGED
@@ -53,6 +53,7 @@ import { fromTemplateIssues, fromTemplateSchema } from './from-template.js';
53
53
  import { expiryNoticeIssues, expiryNoticeSchema } from './expiry-notice.js';
54
54
  import { recordClassIssues, recordClassesSchema } from './record-classes.js';
55
55
  import { expireIssues, expireSchema } from './expire.js';
56
+ import { retiredIssues, retiredSchema } from './retired.js';
56
57
  import { holdersIssues, holdersSchema } from './holders.js';
57
58
  import { automationIssues, manifestAutomationsSchema } from './automations.js';
58
59
  import { changeGuardIssues, changeGuardsSchema } from './change-guards.js';
@@ -1297,6 +1298,8 @@ export const requiredTableSchema = z
1297
1298
  expire: expireSchema.optional(),
1298
1299
  /** Who holds a row of value, and when it stops being worth anything: what "delete my details" keeps and for how long (see `holders.ts`). */
1299
1300
  holders: holdersSchema.optional(),
1301
+ /** Columns the app no longer declares, kept in the table: made optional, and turned into links, by the update that brings them (see `retired.ts`). */
1302
+ retired: retiredSchema.optional(),
1300
1303
  })
1301
1304
  .strict()
1302
1305
  .refine((t) => new Set(t.columns.map((c) => c.ref)).size === t.columns.length, { message: 'duplicate column ref in table', path: ['columns'] })
@@ -4268,6 +4271,8 @@ export const appManifestSchema = z
4268
4271
  }
4269
4272
  for (const issue of appSeedIssues(m))
4270
4273
  ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
4274
+ for (const issue of retiredIssues(m))
4275
+ ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
4271
4276
  for (const issue of savedAppIssues(m))
4272
4277
  ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
4273
4278
  for (const issue of requiredAppIssues(m))
@@ -4353,6 +4358,8 @@ export const addOnManifestSchema = z
4353
4358
  // From its floor on, an add-on's foreign keys name its own tables only; older manifests keep pointing at the database's.
4354
4359
  for (const issue of hostReferenceIssues(m))
4355
4360
  ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
4361
+ for (const issue of retiredIssues(m))
4362
+ ctx.addIssue({ code: 'custom', message: issue.message, path: issue.path });
4356
4363
  // Add-ons released before the floor keep the page refs they shipped with.
4357
4364
  if (m.pages !== undefined || compareSemver(m.compatibility.minAdminiumVersion, ADD_ON_INSTALL_FLOOR) >= 0) {
4358
4365
  for (const issue of addOnPageRefIssues(m))