1.14.0
Version bump and CHANGELOG entry: image lightbox, cookie scanner (scan and browser crawl), admin in English and Polish, admin follow-ups, Next 16.4.3 and sharp 0.35.5 in dev, nodemailer 10 and Node >=20.9, test/dev generate:types fix, and what projects must update. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
117d5c642d
commit
2051a01190
@@ -8,6 +8,93 @@ 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.0
|
||||
|
||||
An image lightbox, a cookie scanner with a browser pre-consent check, an admin panel in English and Polish, and
|
||||
dependency security fixes. Every new feature is opt-in or overridable — AGENT.md §7.1 lists the switches.
|
||||
|
||||
### Image lightbox
|
||||
- **One shared viewer for the site** — `<LightboxProvider>`, `<LightboxTrigger>`, `<LightboxDialog>`, `useLightbox`
|
||||
(`/client`) and the pure helpers `lightboxImage(media, { size })`, `lightboxIndex`, `formatLightboxCounter`,
|
||||
`resolveLightboxTexts` (root and `/client`). Galleries by `group`, keyboard and swipe, focus trap, reduced motion,
|
||||
unstyled mode, `classNames` / `icons` / `renderImage` / `renderDialog`.
|
||||
- `<SiteProviders lightbox>` mounts the provider for the whole site (default off). `RenderRichText lightbox` makes
|
||||
image uploads in rich text click-to-enlarge (opt-in); `withLightboxUploads` (`/rsc`) for your own converters.
|
||||
- `ipalKit({ lightbox: true })` adds an **Image viewer** group to Form messages so editors translate the labels
|
||||
(default off; English and Polish fallbacks without it). docs/lightbox.md.
|
||||
|
||||
### Cookie scanner
|
||||
- **Phase 1 — declarations and lookup:** `ipalKit({ cookieScanner: true })` adds the **Cookie review** collection
|
||||
(Privacy group) and a **Scan cookies** box above its list (`GET`/`POST /api/ipal/cookie-scan`, editors and up by
|
||||
default — `cookieScanner.access`). A scan lists the cookies of the integrations the project switches on, your own
|
||||
`declarations` and names looked up in the bundled Open Cookie Database (Apache-2.0, loaded only when a scan runs),
|
||||
as drafts. An editor accepts (→ Cookie banner → Cookie list), edits or rejects; a rescan never overwrites edited
|
||||
text, never deletes and never publishes by itself. Overrides: `collectionOverrides`, `integrations`, `labels`,
|
||||
`database`, `databaseCategories`, `syncAccepted`.
|
||||
- **Phase 2 — "Check site":** `cookieScanner: { crawl: true }` sends a real browser through the shared
|
||||
`services/cookie-crawler` service (one Coolify deployment for all sites). It visits the site before consent and
|
||||
reports cookies and tracker requests set without consent as **violations**: drafts in Cookie review, the latest
|
||||
result in the `cookie-crawl` global, a dashboard warning (`CookieCrawlAlert`, `crawl.dashboard: false` to hide) and
|
||||
an e-mail. Site env: `IPAL_COOKIE_SCAN_URL`, `IPAL_COOKIE_SCAN_TOKEN` (`ipalEnvRules({ cookieCrawl: true })`);
|
||||
service env: `IPAL_CRAWLER_SITES`. docs/cookie-scanner.md.
|
||||
- Building blocks are exported (`runCookieScan`, `lookupCookie`, `findCrawlViolations`, `parseCrawlResult`, …).
|
||||
|
||||
### Admin panel in English and Polish
|
||||
- **The admin speaks English and Polish by default** when the project sets no `i18n.supportedLanguages`; a project's
|
||||
own list always wins. Plugin texts live under the `ipal` namespace and the project's `i18n.translations` win key
|
||||
by key. New exports: `applyAdminI18n`, `ipalT`, `adminTexts`, `defineTexts`, `formatNumber`, `formatDateTime`,
|
||||
`adminDocumentTitle`, `<DocumentTitle>` (`/admin`).
|
||||
- **All wording rewritten** (docs/dev/admin-ux.md): plain names (Site settings, Site integrations, Cookie banner,
|
||||
Form messages, Search engines, Maintenance), descriptions that say what a field does, labels as `{ en, pl }`.
|
||||
- **Regrouped, same data:** a **Privacy** group (Cookie banner, Consent records, Cookie review), Forms under one group,
|
||||
the `roles` field and Cookie banner → Consent version in the sidebar. No slugs, field names or columns changed
|
||||
(Postgres `migrate:create` reports no schema changes).
|
||||
- **Frontend texts:** validator messages are full sentences (`VALIDATION_MESSAGES`, `validationMessages(locale)`,
|
||||
`localizedRules(locale)`), and `pl` locales get Polish fallbacks for consent, form messages and the lightbox
|
||||
(`CONSENT_FALLBACK_PL`, `NOTIFICATION_FALLBACK_PL`, `LIGHTBOX_FALLBACK_PL`, `consentFallback`, …).
|
||||
|
||||
### Admin follow-ups
|
||||
- The statistics tab title follows the admin language; the cookie scanner's integration names are Polish in a Polish
|
||||
admin; the maintenance notice's close button has a screen-reader label in the page language.
|
||||
- **Favicon warning:** `FaviconCheck` (`/admin`) shows under Site settings → Site icon when the image is under 48×48 px
|
||||
or not square; saving is never blocked. `faviconProblems`, `FAVICON_MIN_SIZE` for your own checks.
|
||||
|
||||
### Dependencies and security
|
||||
- **Next.js:** dev dependencies on `next` and `eslint-config-next` 16.4.3 and `sharp` 0.35.5. The docs set **16.4.1 as
|
||||
the minimum safe Next**. The peer range stays `next >=15`.
|
||||
- **nodemailer 10** (was 8; ships its own types, `@types/nodemailer` dropped). **Node.js 20.9 or later**
|
||||
(`engines.node: ">=20.9.0"`; Payload 3 already needs it).
|
||||
- `pnpm audit --prod` on the plugin: no known vulnerabilities. Repo-only `pnpm.overrides` fix Payload's pinned
|
||||
transitive dependencies; projects are not bound by them (see "What projects must update").
|
||||
|
||||
### Tests and dev
|
||||
- Tests boot Payload through `buildTestConfig` (`typescript.autoGenerate: false`), and a guard test fails on a raw
|
||||
`buildConfig`. The dev app no longer spawns `payload generate:types` on every start. Both left orphan processes.
|
||||
|
||||
### What projects must update
|
||||
1. `pnpm payload generate:importmap` — `FaviconCheck` and the `RowLabel` components are injected into every project.
|
||||
Missing entries leave the Site settings screen or array rows broken. Then `pnpm ipal:skills`, `rm -rf .next`.
|
||||
2. **Node.js 20.9 or later** — check the Coolify build image, `.nvmrc` and `engines`. Remove `nodemailer` /
|
||||
`@types/nodemailer` from the project's own `package.json` if someone added them.
|
||||
3. **Next.js 16.4.1 or later** (16.4.3 recommended) with **sharp 0.35.5 or later**:
|
||||
`pnpm add next@^16.4.3 eslint-config-next@^16.4.3 sharp@^0.35.5`. Next 16.0.0–16.4.0 is affected by
|
||||
GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr and GHSA-p3m5-59mp-jv5r (two unauthenticated remote code executions and a
|
||||
Server Actions denial of service).
|
||||
4. `pnpm audit --prod`. With `payload` 3.90.x add the recommended overrides to the project's `pnpm.overrides`:
|
||||
`"dompurify@<3.4.17": "^3.4.17"`, `"undici@>=7 <7.30.1": "^7.30.1"`, then `pnpm install` and audit again
|
||||
(AGENT.md §4 item 12).
|
||||
5. **Postgres/SQLite:** `pnpm payload migrate:create` → `migrate` when turning on `cookieScanner` (the `cookie-review`
|
||||
collection), `cookieScanner.crawl` (the `cookie-crawl` global) or `lightbox: true` (Form messages → Image viewer).
|
||||
For the crawl set `IPAL_COOKIE_SCAN_URL` and `IPAL_COOKIE_SCAN_TOKEN` and add the site to the service's
|
||||
`IPAL_CRAWLER_SITES`. Without these options there is no schema change. MongoDB: nothing.
|
||||
6. **Admin languages:** the admin now offers English and Polish when the project sets no `i18n.supportedLanguages`.
|
||||
To keep English only: `i18n: { supportedLanguages: { en } }` in the Payload config.
|
||||
7. **Frontend texts:** default validator messages are now full sentences ("Fill in this field." instead of
|
||||
"required"), and `pl` locales get Polish fallback texts where the panel fields are empty. Tests or code that
|
||||
compare these strings need updating; pass your own message to a rule to keep it.
|
||||
8. **Sidebar moves:** the `roles` field (users) and Cookie banner → Consent version now sit in the admin sidebar.
|
||||
Data is unchanged; update screenshots and editor instructions.
|
||||
|
||||
## 1.13.0
|
||||
|
||||
Security and performance fixes from an audit, SEO/GEO and Search Console features, a seed helper, and English docs.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@intecion/ipal-kit",
|
||||
"version": "1.13.0",
|
||||
"version": "1.14.0",
|
||||
"description": "Intecion Payload Advanced Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user