1.18.0 upgrade notes
PROGRAMISTA §6 rows 83–87 now 1.18.0 (1.17.2 was never released alone) and new rows 88–94; iapl-upgrade blocks for speed and growth and for drafts in related documents, the 1.17.2 blocks as "→ 1.18.0 (from 1.17.2)"; every "since 1.17.2" in docs, comments and tests reads 1.18.0; reference skills, AGENTS.md and the reference index on 1.18.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
af98cfba96
commit
9b83cc600a
+12
-5
@@ -690,11 +690,18 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 80 | **1.17.1 — the sign-in look** — after the update the login and 2FA screens show a dark panel with the logo or the site's name; an editor cannot change the logo or name; forgot / reset password look as before | Nothing required. `whiteLabel: { signIn: false }` (old screens), `{ brandAccess: 'editor' }`, `{ signIn: { logoPlate: true } }` (a dark logo), `{ signIn: { svgLogo: false } }`; the other screens: `signIn: { allScreens: true }` + `pnpm payload generate:importmap`. No `serverURL` → no logo in the link preview: set it | `iapl-upgrade` "→ 1.17.1, the sign-in look", white-label.md "The sign-in screens" |
|
||||
| 81 | **1.17.1 — proxy matcher** — `iapl-doctor` warns `proxy-matcher`; pages such as `/administracja` or `/apis` get no locale redirect or proxy CSP | `src/proxy.ts`: `matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)']` (i18n.md "Next matcher") | `iapl-upgrade` "→ 1.17.1" |
|
||||
| 82 | **1.17.1 — e-mail: "Sending method" is a choice** — Site integrations → E-mail sending shows "IWSN (built-in)", "Own SMTP server" or "Microsoft Graph (deprecated)" as selected; or, on Postgres / SQLite, the start log says the column for `emailMethod` is missing and the Site integrations page does not open; or mail fails with `smtp-incomplete` / `graph-not-set-up` | MongoDB: nothing. Postgres / SQLite: `pnpm payload migrate:create`, commit, apply at start. Nothing changes until another option is picked and saved; a chosen method that cannot be used fails loudly (no other transport): fill in SMTP, set `GRAPH_*`, or pick another method | `iapl-upgrade` "→ 1.17.1, e-mail", email.md "Which transport a send takes" |
|
||||
| 83 | **1.17.2 — cookie button** — after the update the "cookie settings" button no longer sits above the footer; or the footer is about 40 px taller after a decision | Intended: the button stays in the bottom corner of the window on every page and never moves; while it is shown the footer gets just enough bottom padding for its last row to end above the button (measured; own padding counts; nothing before a decision or while the banner is open). Nothing to run. No room: `<CookieButton reserve={false} />`; amount by hand: `--ipal-cookie-button-space` on the footer; the placement before: `avoid={COOKIE_BUTTON_AVOID}`; other corner: `side="right"`; distance: `--ipal-cookie-button-offset` | consent.md "Where the cookie button sits", `iapl-upgrade` "→ 1.17.2, cookie button" |
|
||||
| 84 | **1.17.2 — version history** — `GET /api/<collection>/versions` as a visitor answered 500 (`Cannot find field for path at _status`, MongoDB `reading 'type'`) with `readVersions: readPublished()` | Update; nothing else. New code: `readVersions: readPublishedVersions()`; a `readVersions` of your own that wraps `readPublished()` must use `readPublishedVersions()` inside | CHANGELOG 1.17.2 point 1, access.md |
|
||||
| 85 | **1.17.2 — sign-in and panel actions** — a locked editor is told "incorrect" with the right password; or a panel button (mail Connect / Disconnect, test e-mail, cookie scan / approval) answers 403 behind a proxy; or rate limits now count an IPv6 home network as one visitor | Locked: wait 10 minutes or an admin unlocks; Payload's text back: `accounts: { lockedAnswer: 'payload' }`. 403 behind a proxy: set `serverURL`; off: `adminSameOrigin: false`. IPv6 per address: `setIpv6Grouping({ prefix: 128 })` | CHANGELOG 1.17.2 points 2, 3, 8; security.md |
|
||||
| 86 | **1.17.2 — REST submissions and jobs** — a customer account gets 403 on `POST /api/form-submissions`; a cron gets 401 on `/api/payload-jobs/run` | Submissions: use `submitForm` / `createSubmitAction`, or `formSubmissionOverrides.access.create`. Jobs: `CRON_SECRET` (16+ characters) in the app's env and `Authorization: Bearer …` from the cron, or an admin's API key; `jobsRunAccess: false` = Payload's default | CHANGELOG 1.17.2 points 4–5, `iapl-upgrade` "→ 1.17.2" |
|
||||
| 87 | **1.17.2 — consent version** — saving Cookies with a lower "Consent version" is refused ("cannot go down") | Raise it or leave it; a script with the Local API and `overrideAccess` may lower it; `cookieSettings: { allowLowerPolicyVersion: true }` restores the old freedom | CHANGELOG 1.17.2 point 7, consent.md |
|
||||
| 83 | **1.18.0 — cookie button** — after the update the "cookie settings" button no longer sits above the footer; or the footer is about 40 px taller after a decision | Intended: the button stays in the bottom corner of the window on every page and never moves; while it is shown the footer gets just enough bottom padding for its last row to end above the button (measured; own padding counts; nothing before a decision or while the banner is open). Nothing to run. No room: `<CookieButton reserve={false} />`; amount by hand: `--ipal-cookie-button-space` on the footer; the placement before: `avoid={COOKIE_BUTTON_AVOID}`; other corner: `side="right"`; distance: `--ipal-cookie-button-offset` | consent.md "Where the cookie button sits", `iapl-upgrade` "→ 1.17.2, cookie button" |
|
||||
| 84 | **1.18.0 — version history** — `GET /api/<collection>/versions` as a visitor answered 500 (`Cannot find field for path at _status`, MongoDB `reading 'type'`) with `readVersions: readPublished()` | Update; nothing else. New code: `readVersions: readPublishedVersions()`; a `readVersions` of your own that wraps `readPublished()` must use `readPublishedVersions()` inside | CHANGELOG 1.18.0 "From 1.17.2" point 1, access.md |
|
||||
| 85 | **1.18.0 — sign-in and panel actions** — a locked editor is told "incorrect" with the right password; or a panel button (mail Connect / Disconnect, test e-mail, cookie scan / approval) answers 403 behind a proxy; or rate limits now count an IPv6 home network as one visitor | Locked: wait 10 minutes or an admin unlocks; Payload's text back: `accounts: { lockedAnswer: 'payload' }`. 403 behind a proxy: set `serverURL`; off: `adminSameOrigin: false`. IPv6 per address: `setIpv6Grouping({ prefix: 128 })` | CHANGELOG 1.18.0 "From 1.17.2" points 2, 3, 8; security.md |
|
||||
| 86 | **1.18.0 — REST submissions and jobs** — a customer account gets 403 on `POST /api/form-submissions`; a cron gets 401 on `/api/payload-jobs/run` | Submissions: use `submitForm` / `createSubmitAction`, or `formSubmissionOverrides.access.create`. Jobs: `CRON_SECRET` (16+ characters) in the app's env and `Authorization: Bearer …` from the cron, or an admin's API key; `jobsRunAccess: false` = Payload's default | CHANGELOG 1.18.0 "From 1.17.2" points 4–5, `iapl-upgrade` "→ 1.18.0" |
|
||||
| 87 | **1.18.0 — consent version** — saving Cookies with a lower "Consent version" is refused ("cannot go down") | Raise it or leave it; a script with the Local API and `overrideAccess` may lower it; `cookieSettings: { allowLowerPolicyVersion: true }` restores the old freedom | CHANGELOG 1.18.0 "From 1.17.2" point 7, consent.md |
|
||||
| 88 | **1.18.0 — two-step set-up by e-mail** — a new editor scans the code and the screen says "a link was sent"; nothing opens until the link is clicked; or "the confirmation e-mail could not be sent" | Open the mailed link in the same browser within 30 minutes, then sign in with password and code. Mail not working: the link is in the server log (Coolify → Logs) or an administrator presses "Confirm the waiting set-up" on the account page; fix mail (`iapl-doctor --deep` → `2fa-enrolment-mail`). Off: `twoFactor: { confirmByEmail: false }` | CHANGELOG 1.18.0 "Two-step verification", security.md |
|
||||
| 89 | **1.18.0 — staff sign-in** — `429` "Too many failed sign-ins to this address from here"; or `403` on login from another domain; or the account page asks for "Current password"; or a script that changes its own password gets 400 | 429: wait 15 minutes or sign in from elsewhere; pin `IAPL_IP_HEADER`. 403: `accounts.signInSameOrigin: { origins: [...] }` or set `serverURL`. Scripts: send `currentPassword`; off: `accounts.confirmOwnChanges: false` | CHANGELOG 1.18.0 "Staff sign-in", access.md |
|
||||
| 90 | **1.18.0 — IWSN connect** — Site integrations → E-mail sending shows "Połącz z IWSN"; e-mails refused (`relay-pending`); dashboard alert; `iapl-doctor --deep` error `mail-relay-connect` | Press "Połącz z IWSN"; a person of Intecion confirms on the page that opens; the block then shows "Connected to IWSN". Off: `mail: { relay: { connectButton: false } }` | CHANGELOG 1.18.0 "IWSN", email.md |
|
||||
| 91 | **1.18.0 — doctor fails** — `iapl-doctor` exits 1 on `perf-*`, `next-min` (16.4.5) or shows `transitive-min` for `ws` / `cross-spawn` / `esbuild` | Fix what the rule says (`[email protected]`, the overrides in AGENT.md §4 item 12, a budget test); or lower / silence a rule with a reason in `iapl-doctor.json` | CHANGELOG 1.18.0 "Speed and growth" 9, "Security audit" 8–9; doctor.md |
|
||||
| 92 | **1.18.0 — lists, sort, locks, access callbacks** — a front-end script gets only 100 documents (`hasNextPage: true`); `?sort=$…` answers 400; a customer gets 403 on document locks; `cookieScanner.access` returning `req.user` now gives 403 | Page through, or `listLimit: { max }` / `{ exclude }`; sort by a field name; locks are staff only (`lockedDocuments`); return `Boolean(req.user)` (or `strictAccessAnswers: false`) | CHANGELOG 1.18.0 "Security audit", security.md "Lists and sorting", "Access callbacks" |
|
||||
| 93 | **1.18.0 — drafts in menus and blocks** — a menu link or a block pointing at an unpublished page is gone from the site | Publish the page, or `createContentHelpers({ draftRelations: 'keep' })` | CHANGELOG 1.18.0 "Content and plugin writes", content.md |
|
||||
| 94 | **1.18.0 — uploads and logs** — an uploaded photo has no EXIF / GPS any more; old consent records and statistics disappear on a quiet MongoDB site; a versioned plugin global keeps 20 versions | Intended. Keep metadata: `buildOptimizeUploadHook({ stripMetadata: false })`; no TTL: `consentLog: { ttlIndex: false }`, `stats: { ttlIndex: false }`; more versions: `max` / `maxPerDoc` in your override | CHANGELOG 1.18.0 "Speed and growth" 1–3, performance.md |
|
||||
|
||||
After updating the package: `pnpm exec iapl-skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in
|
||||
`node_modules/@intecion/ipal-kit/dist`.
|
||||
|
||||
Reference in New Issue
Block a user