Version bump and CHANGELOG entry: fillEmptyLocales (empty languages of the
cookie texts filled, own text never overwritten), cookieScanner.adminLayout
'combined' (one Cookies entry with Review and approve / Site check tabs), Cookie
banner renamed Cookies, known issue, what projects update.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-28 23:02:00 +01:00
co-authored by Claude Opus 5.5
parent eab26c98ca
commit e1f42615f3
2 changed files with 40 additions and 1 deletions
+39
View File
@@ -8,6 +8,45 @@ versions at once, go through every "Requires project changes" section in order,
version you have. A new release = a new section at the top; we remove the oldest ones only
once there are more than 20.
## 1.14.4
Cookie texts in every language without retyping them, and one **Cookies** entry in the admin instead of three.
Both are on by default and can be turned off; no schema change.
### New
- **Empty languages are filled automatically** (`fillEmptyLocales`, default on): text written in one language goes
to every language where the same field is still empty — the cookie list (Cookies → Cookie list: `purpose`,
`duration`) and the cookie review (`purpose`, `retention`). A language that has its own text is never overwritten,
so editors can still change each language on its own. `fillEmptyLocales: false` turns it off; an object sets the
fields per slug (`{ 'cookie-settings': [...], 'cookie-review': [...] }`, `[]` = off for that slug). Building blocks:
`fillEmptyLocales`, `withFillLocales`, `buildFillEmptyLocalesGlobalHook`, `buildFillEmptyLocalesCollectionHook`,
type `FillEmptyLocalesTarget` (docs/hooks.md).
- **One Cookies entry in the admin** (`cookieScanner.adminLayout`, default `'combined'`): with the cookie scanner,
the Cookies global gets **Review and approve** and **Site check** tabs (`CookieReviewTab`, `CookieSiteCheckTab`,
`/admin`; `addCookieScannerTabs`). The Cookie review collection and the Cookie check global leave the navigation;
their data, API and `/admin/cookie-approval` stay. `adminLayout: 'separate'` keeps the separate entries.
`collectionOverrides` and `crawl.globalOverride` still win (e.g. `admin.group` to show an entry again).
### Changed
- The **Cookie banner** global is labelled **Cookies** (pl: Cookies) in every project; the slug `cookie-settings` and
the data are unchanged. Docs and skills use the new name.
### Known issue
- `pnpm audit --prod` still reports one **low** advisory: `deepmerge` 4.2.0–4.3.1 (GHSA-gcqx-w48m-w2h4), reached
through `payload`. No patched version exists yet; nothing to do in projects.
### What projects must update
1. `pnpm payload generate:importmap` — with `cookieScanner` it adds `@intecion/ipal-kit/admin#CookieReviewTab` and
(with `crawl`) `@intecion/ipal-kit/admin#CookieSiteCheckTab`; commit `importMap.js`. No migration (no schema change).
2. **Behaviour to know (both overridable):**
- Empty languages of the cookie texts are now filled from the language an editor writes in. To keep empty
languages empty: `ipalKit({ fillEmptyLocales: false })`.
- With `cookieScanner`, the cookie screens are one **Cookies** entry with tabs; Cookie review and Cookie check
are no longer in the navigation. To keep the old entries: `cookieScanner: { adminLayout: 'separate' }`.
3. Tell editors: **Cookie banner** is now **Cookies**; the review list and the site check are its tabs. Update
screenshots and instructions. **Check:** the admin navigation shows one **Cookies** entry; its **Review and
approve** tab lists the review entries; type a cookie purpose in one language, save → the other languages show it.
## 1.14.3
One approval for everything the cookie scanner finds: editors tick the cookies and add them all to the cookie list
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@intecion/ipal-kit",
"version": "1.14.3",
"version": "1.14.4",
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
"license": "MIT",
"repository": {