1.14.5
Version bump; the Unreleased section becomes 1.14.5: GraphQL 500 fix (title separator enum names), theme key 'theme', cookie storage type, admin link previews (adminMeta, agency), graphql-scalars override, agent rules and external skills; what projects update (7 steps incl. Postgres titleSeparatorSql). Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8c61951a26
commit
53f9010910
+26
-5
@@ -8,12 +8,14 @@ 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.
|
||||
|
||||
## Unreleased
|
||||
## 1.14.5
|
||||
|
||||
The theme choice moves to the standard `theme` key, the cookie scanner declares the plugin's own browser-storage
|
||||
key, and the cookie list tells cookies from browser storage. A pasted `/admin` link now shows the site's own name,
|
||||
description and preview image instead of Payload's, and search engines are told not to index the panel.
|
||||
`/api/graphql` works again: it answered 500 on every site since 1.0.1.
|
||||
`/api/graphql` works again: it answered 500 on every site since 1.0.1. The `graphql-scalars` advisory is fixed in the
|
||||
plugin and recommended to projects, and the agent guide asks the architecture questions first and can add pinned
|
||||
third-party skills.
|
||||
|
||||
### Fixed
|
||||
- **`/api/graphql` returned 500 for every project** (`Names must start with [_a-zA-Z] but "|" does not.`). The values
|
||||
@@ -58,12 +60,28 @@ description and preview image instead of Payload's, and search engines are told
|
||||
`DEFAULT_AGENCY`): the technology-support name in the white-label credit, the admin description and the preview
|
||||
image. Another agency: `agency: { name, url }`; none anywhere: `agency: false`. The credit itself still turns off
|
||||
with `whiteLabel: { credit: false }`.
|
||||
- **Agent guide — ask before you build:** AGENT.md and the `ipal-*` skills start with one list of architecture
|
||||
questions (languages, content model, forms, integrations, hosting…) that the agent asks once and waits for; an
|
||||
unanswered question is never guessed. **ipal-kit first:** use the plugin's function when one exists; a gap is
|
||||
reported (`ipal-plugin-gap`) and the agent waits instead of writing its own version. Plus code rules for the
|
||||
project (`ipal-block`, `ipal-collection`, `ipal-form`, `ipal-site`, `ipal-setup`, `ipal-debug`).
|
||||
- **External skills (opt-in):** `pnpm exec ipal-skills --external` (or `--external ext-react-best-practices,ext-payload`)
|
||||
also copies five vendored third-party skills — `ext-react-best-practices`, `ext-composition-patterns`
|
||||
(vercel-labs/agent-skills, MIT), `ext-accessibility` (addyosmani/web-quality-skills, MIT), `ext-frontend-design`
|
||||
(anthropics/skills, Apache-2.0), `ext-payload` (payloadcms/payload, MIT). Text only, pinned to a commit, with each
|
||||
licence and a sha256 manifest (`docs/agent/external/manifest.json`); nothing is fetched at install time. Without
|
||||
`--external` nothing changes.
|
||||
|
||||
### Security
|
||||
- **`graphql-scalars` advisory** (high, ReDoS in the `PhoneNumber` scalar, GHSA-x8rm-f576-gq67): `@payloadcms/graphql`
|
||||
pins 1.22.2 up to the latest Payload (3.92.1). The plugin's repo overrides it to `^2.0.1`; Payload's GraphQL
|
||||
(`DateTime`, `EmailAddress`, JSON) works unchanged with it. Projects get the recommendation in AGENT.md §4 item 12.
|
||||
`pnpm audit --prod` on the plugin: 0 high, only the unfixed `deepmerge` low.
|
||||
`pnpm audit --prod` on the plugin: 0 high, only the unfixed `deepmerge` low. graphql-scalars 2.x is a major
|
||||
(graphql-js 16+); Node.js 22 is recommended for projects that add the override (the package itself declares
|
||||
`node >=10`, and the plugin's `engines` stay `>=20.9`).
|
||||
|
||||
### Known issue
|
||||
- `deepmerge` 4.2.0–4.3.1 (low, GHSA-gcqx-w48m-w2h4) through `payload`: no patched version yet; nothing to do.
|
||||
|
||||
### What projects must update
|
||||
1. **Migration (Postgres / SQLite):** `pnpm payload migrate:create cookie-storage-type` — it only adds
|
||||
@@ -79,8 +97,9 @@ description and preview image instead of Payload's, and search engines are told
|
||||
map is unchanged). **Check:** `curl -s $URL/admin/login | grep -E 'og:|robots'`, open `$URL/api/ipal/admin-og`, and
|
||||
paste an `/admin` link in Slack or Messenger.
|
||||
5. **Security (recommended):** on `payload` 3.90.x–3.92.x add `"graphql-scalars@<2.0.1": "^2.0.1"` to `pnpm.overrides`
|
||||
next to the `dompurify` and `undici` ones (AGENT.md §4 item 12), `pnpm install`. **Check:** `pnpm audit --prod` →
|
||||
no high or critical.
|
||||
next to the `dompurify` and `undici` ones (AGENT.md §4 item 12), `pnpm install`; Node.js 22 recommended with this
|
||||
override (check the Coolify build image). **Check:** `pnpm audit --prod` → no high or critical; with GraphQL in use,
|
||||
a query on a `DateTime` / `EmailAddress` field still answers 200.
|
||||
6. **Title separator (Postgres):** `pnpm payload migrate:create title-separator`. The generated SQL turns the column
|
||||
into text, recreates the enum with the new names and casts back, and that cast **fails on a stored `|`**. Add the
|
||||
data update right after the first `SET DATA TYPE text;` in `up` (and the `'down'` variant in `down`):
|
||||
@@ -99,6 +118,8 @@ description and preview image instead of Payload's, and search engines are told
|
||||
returns 200, and the browser tab shows the same separator as before.
|
||||
Project code that reads `settings.titleSeparator` itself now gets a name (`pipe`, …): pass it through
|
||||
`titleSeparatorChar()` before putting it in a title.
|
||||
7. **Agent skills:** `pnpm ipal:skills` (or `pnpm exec ipal-skills`) to get the new agent rules. Optional, only if the
|
||||
owner wants them (record it in AGENTS.md → "Project decisions"): `pnpm exec ipal-skills --external`.
|
||||
|
||||
## 1.14.4
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@intecion/ipal-kit",
|
||||
"version": "1.14.4",
|
||||
"version": "1.14.5",
|
||||
"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