@payloadcms/db-mongodb pins mongoose 8.24.1 (one critical, two high, two moderate advisories, fixed by 8.24.7) and @lexical/headless 0.50 brings happy-dom 20.x (two high, fixed by 21.0.4). Payload 3.93.0 fixes neither. - reference/package.json (and so the starter): pnpm.overrides for mongoose (~8.24.10) and happy-dom (^21.0.4); pnpm audit --prod on the reference is clean - root package.json: the happy-dom override for the plugin's own dev tree - ipal-doctor: transitive-min reports mongoose 8.x < 8.24.7 (error) and happy-dom < 21.0.4 (warning) from the lockfile and prints the override line; DoctorContext.installedAll(name) - AGENT.md §4 item 12, ipal-setup, ipal-upgrade, doctor.md, README, CHANGELOG Co-Authored-By: Claude Fable 5.2 <[email protected]>
27 KiB
name, description
| name | description |
|---|---|
| ipal-upgrade | Upgrades an existing project to the latest @intecion/ipal-kit and replaces hand-written code that the plugin now provides — proxy, route handlers, consent wrapper, language switcher, rich text parser, form logic, noindex, redirects, env validation, privacy link label, 404 page, CTA field zoo. Use when the user asks to update ipal-kit, migrate an older project, or clean up duplicated logic in a project. |
ipal-upgrade
What changed in the version: node_modules/@intecion/ipal-kit/docs/CHANGELOG.md (the
"Requires project changes" sections — do all of them). List of changes: …/docs/dev/PROGRAMISTA.md §6.
Rule: when the plugin provides something the project has written by hand — remove the local version.
1. Update the package
pnpm add @intecion/ipal-kit@latest
pnpm payload generate:importmap # new admin panel components from the plugin (e.g. RowLabel)
rm -rf .next
Copy the skills again (AGENT.md §14) — they may have changed.
Postgres with migrations: new plugin fields (e.g. privacyLinkLabel) →
pnpm payload migrate:create.
1a. AGENT.md §0b set
After the update, a full ipal-audit shows a "missing: …" section — the missing items of
the MANDATORY SET (GEO: llms-full, Markdown, MCP; R2; Turnstile through
getTurnstileConfig…). Wire each one according to PROGRAMISTA §2 — it is part of the update,
not an extra. Skip one only with a client decision in AGENTS.md (ipal-audit-skip:).
1.8.x → 1.9.0 (PROGRAMISTA §6, items 17–21): twoFactor.plugin required;
getTurnstileConfig instead of turnstileSiteKey (with both keys set the token is
required — check that every form has the widget); clientIp(await headers()) in
the form action + IPAL_IP_HEADER in the production env; buildR2Storage wired.
→ 1.9.2 (PROGRAMISTA §6, items 28–33) — import instead of code, start with item 28 (security):
a custom FormRenderer passed the Emails tab (company addresses) to the HTML → a block with <RenderForm> +
formClasses.ts, remove the renderer. Then: layout → SiteProviders, page and 404 → createPageRoute /
createNotFoundPage, GEO routes → re-exports from lib/content, src/fields/section*.ts and
lib/navigation.ts → buildSection*Field, resolveNav, resolveLink. Check every item in
the browser (form: submission + email; page: 200, 404, metadata). Postgres: migrate:create
(new form field types and texts in Notifications).
→ 1.11.0 (PROGRAMISTA §6, items 34–37): remove the workarounds — a copy of publicForm (→ RenderForm values /
prepareBuilderForm), manual remotePatterns/dangerouslyAllowLocalIP (→ buildImagesConfig()), conditional
storage in ipalEnvRules, a custom product JSON-LD graph (→ pageJsonLd.entries + buildProductJsonLd),
a custom RenderBlocks for h1 (→ isFirst). Links to posts: buildLinkField({ relationTo: [...] }) with a data migration.
→ 1.11.1 (PROGRAMISTA §6, items 38–45): remove the workarounds (WORKAROUND ipal-kit comments) — the
NEXT_RUNTIME condition around the revalidatePath injected into buildRevalidateHook (a global's own afterChange hook keeps it — ipal-nav), the form focus guard, a custom theme (→ ThemeScript/ThemeSwitcher),
a custom table of contents (→ extractHeadings + TableOfContents + headingIds), catching notFound for a redirect
(→ onMissing: 'redirectHome'), background colour only for JPEG in <Media>, a custom type instead of CmsLink['appearance']
(→ per-shape types from generate:types: CmsLink, CmsLinkPlain, CmsLinkNoLabel, CmsLinkPlainNoLabel; style: LinkAppearance). Cookie banner: buttons.save →
buttons.savePreferences — in migrate:create choose rename for the column to keep the texts.
→ 1.12.3 (PROGRAMISTA §6, item 46): Postgres/SQLite: migrate:create (new Cookie banner group →
detailLabels, only new columns — no rename). A custom cookie settings window or a cookie list added to
the banner → <CookieBanner settings="detailed"> and remove the copy. With detailed: Cookies → Cookie list filled in
(scan, ipal-consent-check) and Detail labels in every language.
→ 1.13.0 (PROGRAMISTA §6, item 47; CHANGELOG "What projects must update" — do all 7, in order):
- Project without
access(norolesfield): every logged-in account can now use the plugin's admin and editor features (Site integrations, settings globals, test e-mail, stats, consent records, forms, form submissions); before, nobody could through the API. Check who can log in (grep -rn "auth:" src/collections, open sign-up, customer accounts). Untrusted accounts → addaccess(roles), or narrow withglobalOverrides,forms.formOverrides/forms.formSubmissionOverrides,consentLog.collectionOverrides,stats.collectionOverrides. Verify: log in as a non-staff account →GET /api/globals/site-integrationsis 403. - Project with
access: plainuseraccounts can no longer edit Site settings, Cookie banner, Notifications or forms, or create/delete users. List staff accounts in the panel (Users → Roles) and give themeditor/admin, or loosen withglobalOverrides,forms.formOverrides.access,access.authAccess. Verify: an editor saves Site settings. - Postgres/SQLite:
pnpm payload migrate:create→migrate(Site settings → Search engines:search_verification_*,ai_crawlers_policy, theai_crawlers_rulestable, localizedllms_intro). Withenabled: falsethe migration now keeps (or restores) the plugin's tables — check it has no DROP TABLE. MongoDB: nothing. pnpm payload generate:importmap,pnpm ipal:skills,rm -rf .next.- Behaviour to check (grep the project, fix what applies):
getSettings/getSiteShellread atdepth: 1(code that reads a relation of a relation →createContentHelpers({ settingsDepth: 2 }));sitemap()throws at runtime instead of returning[](sitemapRouteanswers 503); atwoFactor.collectionSlugother thanadmin.userstops startup (allowCollectionMismatch: true); requests without a client IP share one limited bucket (proxy hides the IP →IPAL_IP_HEADER, orsetUnknownIpFactor);RenderRichTextturns unsafe link URLs into#(safeLinks). - Review the new options with the user (AGENT.md §7.1):
consentMode: 'basic',revalidatePath,turnstileHostnames, Site settings → Search engines (verification codes, or keep DNS verification),app/robots.ts→export { getRobots as default }+force-dynamic,createSearchRoute({ …, isPathVisible }),access.firstUserAdmin. - Remove the workarounds: a plugin after
ipalKitthat addsafterChangeor access to the plugin globals →ipalKit({ revalidatePath })/globalOverrides; a hand-written global revalidation hook →buildGlobalRevalidateHook({ revalidatePath });consentFieldNamepassed only because the option was ignored →forms.consentFieldNameworks now; your own seed guard / upsert code →@intecion/ipal-kit/seed(createSeeder).
Every upgrade — Next.js 16.4.5 or later (AGENT.md §4 item 11): pnpm ls next sharp; below 16.4.5 →
pnpm add [email protected] [email protected] sharp@^0.35.5, rm -rf .next, build, redeploy on Coolify
(a new image ships the fixed next and sharp). Check: pnpm exec ipal-doctor → no next-min finding; pnpm dev
prints no security-upgrade warning.
Every upgrade — dependency advisories (AGENT.md §4 item 12): pnpm audit --prod; with payload 3.90.x add the
dompurify, graphql-scalars, happy-dom, mongoose and undici overrides to pnpm.overrides, pnpm install, audit
again. MongoDB sites need the mongoose one now: @payloadcms/db-mongodb pins 8.24.1 (up to Payload 3.93.0), which has
a critical advisory (GHSA-pcrw-h46h-c93h) and four more, all fixed in 8.24.7:
"happy-dom@<21.0.4": "^21.0.4",
"mongoose@>=8 <8.24.7": "~8.24.10"
Then pnpm install, pnpm build, commit package.json and the lockfile, redeploy on Coolify (the new image ships the
fixed packages; no data or schema change, no migration). Check: pnpm audit --prod → no high or critical (the
deepmerge low has no fix yet); pnpm why mongoose happy-dom → 8.24.7 or later, 21.0.4 or later;
pnpm exec ipal-doctor → no transitive-min finding; the panel opens and a document saves.
→ 1.14.0 (PROGRAMISTA §6, items 48–49; CHANGELOG "What projects must update" — do all 8, in order):
pnpm payload generate:importmap—@intecion/ipal-kit/admin#FaviconCheck(hint under Site settings → Site icon) and theRowLabelentries are injected into every project; thenpnpm ipal:skills,rm -rf .next. Check: pick a 32×32 PNG as the site icon → a warning appears under the field; saving still works.- Node.js 20.9 or later (the plugin's
nodemailer10 needs it) — check the Coolify build image and.nvmrc/engines. Removenodemailerand@types/nodemailerfrom the project's ownpackage.jsonif someone added them (the plugin's copy is the onemailAdapteruses). Check: Site integrations → E-mail sending → send a test e-mail over SMTP (and over Microsoft Graph when the project uses it). - Next.js — the "Every upgrade — Next.js" step above (today 16.4.5 or later,
sharp@^0.35.5). - Dependency advisories — the "Every upgrade — dependency advisories" step above (
dompurify/graphql-scalars/undicioverrides on payload 3.90.x). Check:pnpm audit --prod→ no high or critical. - Cookie list kept by hand → offer
cookieScanner: true(+crawl: truewithIPAL_COOKIE_SCAN_URL,IPAL_COOKIE_SCAN_TOKENand the site in the service'sIPAL_CRAWLER_SITES, cookie-scanner.md); an own image modal →lightbox: true+<SiteProviders lightbox>(PROGRAMISTA item 48). Turning either on → Postgres/SQLitemigrate:create→migrate. Without them: no schema change. - Admin languages: English and Polish by default when the project sets no
i18n.supportedLanguages. Ask the client; English only →i18n: { supportedLanguages: { en } }. Own admin texts →i18n.translations.<lang>.ipal. - Frontend texts: validator messages are full sentences and
pllocales get Polish fallbacks — grep the project's tests and code for the old strings ('required','invalid email') and update them. - Sidebar:
roles(users) and Cookies → Consent version moved to the sidebar — update editor instructions. Nothing else to change: the statistics tab title, the cookie scanner's integration names and the maintenance notice's close button follow the language by themselves.
→ 1.14.2 (PROGRAMISTA §6, item 51; 2FA setup loop; security.md) — required with 2FA on:
pnpm payload generate:importmap— the plugin swaps@clocklimited/payload-2fa/rsc#TOTPProviderfor@intecion/ipal-kit/admin#TotpRedirectProvider; commitimportMap.js,rm -rf .next, redeploy on Coolify. Check: log in as a new admin (or a throwaway one) →/admin/setup-totp?back=%2Fadminwith the QR code, no reloading; after the code → back on/admin. A project that wrote its ownx-pathnameproxy rule for/adminas a workaround can drop it.
→ 1.14.1 (PROGRAMISTA §6, item 50; X-Powered-By, CSP; security.md) — nothing required, recommended in this order:
- Hide
X-Powered-By—next.config.ts:export default withPayload(withSecurityConfig(nextConfig))(importwithSecurityConfigfrom@intecion/ipal-kit); remove a hand-writtenpoweredByHeader: falseor a header override if the project had one. Check:curl -sI localhost:3000/pl | grep -i x-powered-by→ nothing (also on/adminand/api/health). - CSP, report-only first — no CSP yet, or a hand-written one →
buildSecurityHeaders({ csp: { mode: 'report-only', reportUri: '/api/csp-report', r2Url: process.env.R2_PUBLIC_URL, <flags for what the site loads> } }), the admin rule{ source: '/admin/:path*', headers: buildAdminCspHeaders({ mode: 'report-only', reportUri: '/api/csp-report' }) }after the site-wide one, andsrc/app/api/csp-report/route.ts=export const POST = createCspReportRoute(). Flags: what the panel's Site integrations and the code load (analytics, metaPixel, linkedIn, tiktok, clarity, turnstile, youtube, googleMaps); anything else →extra. Check:curl -sI localhost:3000/pl | grep -iE 'content-security-policy-report-only|reporting-endpoints'; the main pages and/adminin a browser, accept the cookie banner → no[Report Only]lines in the console. Deploy. - Enforce later — after a few days of clean
[csp]lines in the Coolify logs:mode: 'enforce'in both places, redeploy, check the pages again. Record the date inAGENTS.md→ "Project decisions".
→ 1.14.3 (PROGRAMISTA §6, item 52; cookie approval; cookie-scanner.md) — only with cookieScanner:
pnpm payload generate:importmap—@intecion/ipal-kit/admin#CookieApprovalViewand@intecion/ipal-kit/admin#CookieCrawlAlert(the dashboard reminder, also withoutcrawl); commitimportMap.js.- Postgres/SQLite:
pnpm payload migrate:create→migrate(cookie_review.changeenum + index,cookie_review.needs_description); check the migration only adds columns. MongoDB: nothing. - Tell the editors about Approve cookies (
/admin/cookie-approval, linked from the scan box on Privacy → Cookie review and from the dashboard): tick, Approve and add, then describe the ones marked Needs description. The client wants the old entry-by-entry review →cookieScanner: { approval: false }; unknown cookies in another category →approval: { unknownCategory }. - Behaviour: hand-typed Cookie list rows are looked up only while they have no review entry.
Check: run a scan → the cookies appear on
/admin/cookie-approval; approve one → it is in Cookies → Cookies in every language; the dashboard shows the reminder while cookies wait. WithoutcookieScanner: nothing.
→ 1.14.4 (PROGRAMISTA §6, item 53; cookie languages and one Cookies entry; consent.md, cookie-scanner.md):
pnpm payload generate:importmap— withcookieScanner:@intecion/ipal-kit/admin#CookieReviewTaband (withcrawl)@intecion/ipal-kit/admin#CookieSiteCheckTab; commitimportMap.js. No migration.- Ask the client about the two new defaults (both overridable): empty languages of the cookie texts fill
themselves from the language an editor writes in (
ipalKit({ fillEmptyLocales: false })to turn it off); withcookieScannerthe cookie screens become one Cookies entry with Review and approve and Site check tabs (cookieScanner: { adminLayout: 'separate' }for the old entries). - Editor instructions and screenshots: Cookie banner is now Cookies. Check: one Cookies entry in the admin navigation; its tabs list the review entries and the site check; type a cookie purpose in one language and save → the other languages show it, and a language with its own text keeps it.
→ 1.14.6 (1.14.5 was never published; PROGRAMISTA §6, item 54; CHANGELOG 1.14.5 "What projects must update" — do all 7, in order):
- Cookie storage type (Postgres/SQLite):
pnpm payload migrate:create cookie-storage-type→migrate(only addscookie_settings_cookies.storage, defaultcookie, andcookie_settings_locales.detail_labels_storage). Existing rows become Cookie: set the type of local/session-storage rows by hand. MongoDB: nothing. - Theme key: code that reads
localStorage.getItem('ipal-theme')→THEME_STORAGE_KEY/documentThemeStorageKey(); a project that also runs next-themes and wants separate keys →ipalKit({ theme: { storageKey } }). Visitors keep their choice (moved before first paint). - Cookie list: after the next Scan cookies, approve the new theme entry; remove an old ipal-theme row.
- Panel link preview (
adminMeta,agency): nothing required. Remove a hand-writtenadmin.metathat only set the panel title, description,openGraphorrobots: noindex(youradmin.metakeys still win). The credit reads "Technology support: Intecion.com" —agency: falseorwhiteLabel: { credit: false }to remove it. Check:curl -s $URL/admin/login | grep -E 'og:|robots', open$URL/api/ipal/admin-og, paste an/adminlink in Slack. - Dependency advisories: the "Every upgrade — dependency advisories" step above, now with the
graphql-scalarsoverride; Node.js 22 recommended with it. - Title separator / GraphQL fix: Site settings → Title separator now stores
names (
pipe,endash,hyphen,middot,slash) instead of|,–… (which broke/api/graphqlwith 500). Postgres:pnpm payload migrate:create title-separator, then in the generated file add${sql.raw(titleSeparatorSql())}right after the firstALTER TABLE "site_settings" ALTER COLUMN "title_separator" SET DATA TYPE text;inupand${sql.raw(titleSeparatorSql({ direction: 'down' }))}at the same place indown(import { titleSeparatorSql } from '@intecion/ipal-kit'). Without it the migration fails withinvalid input value for enumand rolls back. SQLite / MongoDB: nothing required. Old values keep working, and MongoDB is rewritten at start. A project with its own separator options (globalOverrides): use values matching/^[_A-Za-z][_A-Za-z0-9]*$/. Check:curl -s -X POST $URL/api/graphql -H 'content-type: application/json' -d '{"query":"{ SiteSetting { titleSeparator } }"}'→ 200, and the browser tab shows the same separator. Project code that readssettings.titleSeparatoritself now gets a name: usetitleSeparatorChar(). → 1.15.0 design tokens (opt-in, design-tokens.md → "Migrating an existing site"): nothing breaks without it. To adopt: add the four@imports (§6.11) andsrc/design/tokens.ts(template.agents/skills/ipal-setup/resources/tokens.ts), map the current@themecolours/fonts/radius onto the roles, keep the old names as aliases in a marked legacy block, delete the--ipal-*-darkblock kept only for the cookie banner,pnpm exec ipal-tokens, then replace old utilities anddark:colour classes file by file (ipal-auditlists them) and remove the legacy block. next/font variables become--font-family-body/--font-family-heading. Check:ipal-tokens --check, the site in both themes. Only with the owner's decision ("Project decisions": which sites migrate when). pnpm ipal:skills(new agent rules: architecture questions first, ipal-kit first). Optional with the owner's consent:pnpm exec ipal-skills --external.
→ 1.15.0 (PROGRAMISTA §6, item 55; CHANGELOG 1.15.0 "What projects must update" — do all 10, in order):
- Seeding after launch: production seed scripts and Coolify jobs need
SEED_ONLY="pages:kontakt,…"(dry run first, back up); a run without it on production now stops. A full re-seed only with the owner's OK:IPAL_SEED_ALLOW_FULL=1. Update seed scripts copied from older templates (ipal-site,ipal-form). - Optional: database names
<domain without dots>_prod/_dev+ipalEnvRules({ databaseName: true })(warns only). - Optional: the design-token standard (design-tokens.md → "Migrating an existing site"). A site that styles the
cookie banner only through
--ipal-*-dark: check the banner in the dark theme. - Optional: the block library, block by block (block-library.md); after turning blocks on:
pnpm generate:types,pnpm payload generate:importmap, Postgres/SQLitemigrate:create. - CookieButton lifts above the footer — check a site with its own fixed footer bar;
avoid={false}keeps it fixed. pnpm ipal:skills(new ipal-doctor; updated ipal-reference, ipal-setup, ipal-site, ipal-audit).- Run
pnpm exec ipal-doctor(and--url https://<site>), fix or silence each finding with a reason inipal-doctor.json.IPAL_DOCTOR_TOKEN(≥ 32 characters) only if the deep check runs against production. - Nothing for the exact dependency pins (
nodemailer10.3.1 and three more) beyondpnpm install. - Pages saved before 1.15.0 keep their stored meta description: re-save a page whose description was empty (the section header now fills it).
- New sites:
ipal-kit create(project-starter.md); single-language / non-pldefault sites still go through ipal-setup. Check:pnpm exec ipal-doctor --strict→ 0 errors, 0 warnings;pnpm build; a production seed withoutSEED_ONLYstops with "full seed refused".
→ 1.15.1 (PROGRAMISTA §6, item 56; seed exit guard; seeding.md) — nothing required, recommended:
- Every seed script:
import { createSeeder, guardSeedExit } from '@intecion/ipal-kit/seed'andguardSeedExit()as the first statement, beforegetPayload(); the script ends withseed.summary()(theipal-site/ipal-formtemplates show it).pnpm ipal:skillsfor the updated templates. - Check: run the seed with
SEED_DRY_RUN=1locally → exit 0; in Coolify's Terminal after a seed,echo $?→0(a1with[seed] ended …means the run stopped early — run it again).
→ 1.15.2 (PROGRAMISTA §6, item 57; ipal-doctor route groups; doctor.md) — nothing required:
pnpm ipal:skills; remove a temporarylayout-requiredsilence inipal-doctor.jsonadded for a route group with another name or anotFoundView.tsx.- Two frontend candidates reported →
"layout": { "frontend": "src/app/(<group>)" }inipal-doctor.json. Check:pnpm exec ipal-doctor --strict→ nolayout-requiredfinding for the site's own route group.
→ 1.15.3 (PROGRAMISTA §6, item 58; ipal-audit, bilingual panel labels; ipal-audit skill) — nothing required:
pnpm ipal:skills, so the updatedaudit.shandpolish-literals.mjsreach the project.- Remove a temporary
i18n-literalssilence oripal-audit-skipadded because ofadminText()/{ en, pl }labels. Check:pnpm exec ipal-doctor --strict→ noi18n-literalsfinding for a schema file's bilingual labels; Polish text in a.tsxcomponent is still reported.
→ 1.15.4 (PROGRAMISTA §6, item 59; seeding whole localized arrays; seeding.md) — nothing required:
- Did a seed write a whole localized array (
{ pl: [...], en: [...] }for form fields, a pagelayout, a global array) and the panel shows only the last language? A plain re-run skips existing records (create-only): rewrite them locally withSEED_UPDATE=1 pnpm seedand check every language in the panel. - Live site, only the affected records:
SEED_ONLY="forms:<title>,pages:<slug>" SEED_UPDATE=1 IPAL_SEED_ALLOW_PROD_UPDATE=1 SEED_DRY_RUN=1 pnpm seed, back up the database (Coolify), then the same withoutSEED_DRY_RUN. Records an editor changed since seeding are skipped (skip (edited)) — fix them in the panel. - A global array:
fillGlobalfills empty fields only — clear the field in the panel before the run, or fix it by hand. Check: the panel shows the seeded rows in every language; a second run reportsskip, not new rows.
→ 1.15.5 (PROGRAMISTA §6, item 60; required fields with references in seeds; seeding.md) — nothing required:
- A seed that failed with "The following field is invalid: … > Layout" for a page whose required layout links to
another page or a form: run it again — the record is now created complete (
SEED_DRY_RUN=1first). - The dry run is stricter: a
{ $form }/{ $page }to a record that neither exists nor is seeded earlier in the run is an error. Seed that record first or create it in the panel. - A "cycle of required links" error: make one of the two links optional, or seed one of the pages first.
Check:
SEED_DRY_RUN=1 pnpm seedreports 0 errors; the real run creates the same records.
→ 1.16.0 (PROGRAMISTA §6, item 61; files on forms, e-mailed and never stored; forms.md "Files") — nothing required:
pnpm ipal:skills. Existing forms need nothing; withoutforms.attachmentsnothing changes. No import map change.- Only if the site wants files on a form (ask the owner):
ipalKit({ forms: { attachments: true } }), a File field on the form (panel or seed —ipal-formskill), one e-mail of that form with a fixed recipient (no{{field}}),pnpm generate:types; Postgres/SQLite:pnpm payload migrate:create(additive). Add theformClasseskeysfile,help,fileList,fileItem,fileRemove; fill Form messages → Files for languages other than en/pl. - A hand-built upload path for a form (own collection, bucket, route): replace it with the File field and remove it (after the owner confirms nothing else uses the stored files).
- Deploy: a proxy body limit of at least 12 MB on
/api/ipal/forms/submit(Coolify's Traefik: none by default; nginx:client_max_body_size 12m;). Mail: Graph needsMail.ReadWritelimited to the forms mailbox for files of 3 MB and more, or SMTP settings in Site integrations; otherwise the limit is about 2.8 MB. Check: Site integrations → "Send test e-mail" with the 10 MB file arrives; a form submission with a file arrives with the attachment, and the submission shows File delivery: Sent; with Graph, no draft or Sent Items copy is left in the sender mailbox a minute later.
→ 1.16.1 (PROGRAMISTA §6, item 62; Next.js minimum 16.4.5, GHSA-mfr8-8qww-v76h; AGENT.md §4 item 11) — required for every site below Next.js 16.4.5:
pnpm add [email protected] [email protected],rm -rf .next,pnpm build; commitpackage.jsonand the lockfile, redeploy on Coolify (the new image ships the fixed Next.js).pnpm ipal:skills(updatedipal-setup/ipal-upgrade). Check:pnpm ls next→ 16.4.6;pnpm exec ipal-doctor→ nonext-minfinding;pnpm devprints no security warning.
2. Inventory (no code changes)
What changed for projects between your old and new plugin version is exactly the reference site's diff —
git diff v<old> v<new> -- reference/ in the ipal-kit repo (or the two docs/agent/reference-site/INDEX.md files):
every file a project must touch, already done once and tested in the plugin's CI.
For every item in the PROGRAMISTA §6 table show evidence (grep / file) of whether
it applies to the project. Run the ipal-audit skill (--quick) and attach the result.
Result: a prioritised to-do list — carry it out right away. Stop
only before an irreversible change (data migration with content → ipal-migrate-fields,
changing published slugs).
3. Item by item
One item = one change = one commit:
- read the docs file it points to,
- replace the local code with the plugin function, remove the old code (do not keep both),
pnpm build— it passes before you take the next item.
Items that rename fields in the database (e.g. the ctaLabel → links refactor)
need a data migration before the old fields are removed — ask
the user whether the project already has content.
4. Finish
A full ipal-audit with no errors, then pnpm exec ipal-doctor (after pnpm exec ipal-skills and
pnpm payload generate:importmap): no new errors against the report before the upgrade (skill ipal-doctor;
new rules come with new versions — read each finding, fix or record the owner's decision in ipal-doctor.json with a
reason). Before the upgrade, pnpm dlx --package=@intecion/ipal-kit@latest ipal-doctor --offline shows what the newest
rules will report. Then the list of things to check in the admin panel.