diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 899c733..4743961 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 2f91f6e..f22aac5 100644 --- a/package.json +++ b/package.json @@ -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": {