Dev audit: @swc/cli 0.8.2, vite 7.3.8; Node 22.23.5 check in Coolify
@swc/cli 0.8.0 still resolved piscina 4.9.3 and @xhmikosr/decompress 10.2.1 (the two criticals). 0.8.2 with refreshed transitive deps and vite 7.3.8 as a direct dev dependency take the dev-tree audit from 31 to 4 (0 high, 0 critical). Docs: Payload 3.94 needs Node 22.23.5+ also in Coolify; how to check it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
ab51027617
commit
a0c576e54c
+12
-3
@@ -27,9 +27,12 @@ once there are more than 20.
|
||||
- **ipal-doctor `transitive-min`:** the `mongoose` finding names the Payload upgrade (3.94.1) as the first fix; the
|
||||
thresholds are unchanged.
|
||||
- Dependencies: `nodemailer` 10.6.1 (runtime). Dev tooling: Playwright 1.65.1 (run `pnpm exec playwright install
|
||||
chromium` once), Vitest 5.1.1, Prettier 3.10.1, `@swc/cli` 0.8 (clears two critical dev advisories), `rimraf` 6,
|
||||
chromium` once), Vitest 5.1.1, Prettier 3.10.1, `@swc/cli` 0.8.2 (with `piscina` 4.9.4 and `@xhmikosr/decompress` 11: clears the two critical dev
|
||||
advisories), `vite` 7.3.8 as a direct dev dependency (Vitest's peer; clears the vite high), `rimraf` 6,
|
||||
`cross-env` 10 (also in the reference site), `open` 11, `sort-package-json` 4, `@swc-node/register` 1.12.1,
|
||||
`vite-tsconfig-paths` 6.1.1, Tailwind 4.3.5 and PostCSS 8.5.33 in the reference site.
|
||||
`vite-tsconfig-paths` 6.1.1, Tailwind 4.3.5 and PostCSS 8.5.33 in the reference site. `pnpm audit` of the plugin's
|
||||
dev tree: 31 → 4 (0 critical, 0 high; what is left sits under `drizzle-kit` and the ESLint toolchain). `--prod` stays
|
||||
at 0, and the reference site at 0.
|
||||
- Kept back, with the reason: TypeScript 7 (typescript-eslint supports TypeScript below 6.1 only), ESLint 10
|
||||
(`eslint-config-next` 16.4.6 plugins do not support it — the lint run crashes), `graphql` 17 (Payload requires
|
||||
^16.8.1), `@types/node` 26 (projects stay on Node 22), `lucide-react` 1.x (a runtime dependency: projects are told to
|
||||
@@ -39,10 +42,16 @@ once there are more than 20.
|
||||
- **Nothing is required.** The plugin still works with Payload 3.90.2 and later.
|
||||
- **Recommended — move to Payload 3.94.1** (the `ipal-upgrade` skill, "Every upgrade — Payload"): every `payload` /
|
||||
`@payloadcms/*` to 3.94.1 (in `dependencies` and `pnpm.overrides`), `react` and `react-dom` 19.3.1, Node.js 22.23.5
|
||||
or later (`"engines": { "node": ">=22.23.5 <23" }`), `pnpm install`, `pnpm payload generate:types`,
|
||||
or later (`"engines": { "node": ">=22.23.5 <23" }`, `.nvmrc` stays `22`), `pnpm install`, `pnpm payload generate:types`,
|
||||
`pnpm payload generate:importmap`, `rm -rf .next`, build, redeploy on Coolify. Postgres/SQLite: run
|
||||
`pnpm payload migrate:create` and commit it if it is not empty (Payload 3.94.1 changes how long index and foreign
|
||||
key names are built). MongoDB: no migration.
|
||||
- **Node.js 22.23.5 or later everywhere the site runs — before you move to Payload 3.94.** Payload 3.94 refuses older
|
||||
Node (`engines`: `^22.23.5 || ^24.22.3 || >=26.13.1`). Locally: `node -v`. **Coolify:** Nixpacks picks the Node major
|
||||
from `engines` / `.nvmrc`, and the patch version comes from the Nixpacks release on the server — so after the first
|
||||
deploy open the app → Terminal and run `node -v` (the build log shows it too). If it is below 22.23.5, update Coolify
|
||||
(newer Nixpacks) before you deploy Payload 3.94; until then, stay on 3.90.x. CI images (`node:22` / `setup-node`
|
||||
with `22`) must resolve to 22.23.5 or later as well.
|
||||
- **Overrides** (`pnpm.overrides`): on 3.94.x keep `"dompurify@<3.4.17": "^3.4.17"` and
|
||||
`"happy-dom@<21.0.4": "^21.0.4"`; the `mongoose` and `undici` lines do nothing there — remove them. Remove
|
||||
`"graphql-scalars@<2.0.1": "^2.0.1"` if you have it (optional). Sites that stay on 3.90–3.93 keep the 1.16.2 lines.
|
||||
|
||||
+3
-1
@@ -515,7 +515,9 @@ No abbreviations (`HeroSection`, not `HeroSec`). Do not create `lib/pages.ts`,
|
||||
**Check:** `pnpm ls next sharp` → next ≥ 16.4.5, sharp ≥ 0.35.5; `pnpm exec ipal-doctor` → no `next-min`
|
||||
finding; `pnpm dev` prints no security-upgrade warning.
|
||||
12. **No open production advisories.** Node.js 20 or later for the plugin itself (its `nodemailer` 10 requires it);
|
||||
**Payload 3.94 needs Node.js 22.23.5 or later** on the 22 line (`engines`: `">=22.23.5 <23"`, `.nvmrc` `22`). Run
|
||||
**Payload 3.94 needs Node.js 22.23.5 or later** on the 22 line (`engines`: `">=22.23.5 <23"`, `.nvmrc` `22`), locally,
|
||||
in CI and in Coolify (Nixpacks takes the major from `engines` / `.nvmrc` and the patch from its own release: check
|
||||
`node -v` in the app's Terminal; below 22.23.5, update Coolify before moving to Payload 3.94). Run
|
||||
`pnpm audit --prod`. The plugin's own dependencies are clean; what remains comes from Payload's tree, which only
|
||||
the project's lockfile can fix. With `payload` **3.94.x** two packages are still pinned below a fix and need
|
||||
`pnpm.overrides` next to the `@payloadcms/*` ones:
|
||||
|
||||
@@ -99,7 +99,7 @@ create-payload-app gave you an older one.
|
||||
**Payload 3.94.1** (what the reference site and the starter use; the plugin accepts `^3.90.2`): every `payload` /
|
||||
`@payloadcms/*` on the same exact version, `react` and `react-dom` 19.3.1 (Payload 3.94 requires `^19.3.1`), and
|
||||
**Node.js 22.23.5 or later** on the 22 line (`"engines": { "node": ">=22.23.5 <23" }`, `.nvmrc` `22`) — Payload 3.94's
|
||||
minimum. After the install, `pnpm audit --prod` → no high or critical; add the `dompurify` and `happy-dom` overrides
|
||||
minimum, also in Coolify (Nixpacks picks the patch: check `node -v` in the app's Terminal after the first deploy). After the install, `pnpm audit --prod` → no high or critical; add the `dompurify` and `happy-dom` overrides
|
||||
from AGENT.md §4 item 12 (`"happy-dom@<21.0.4": "^21.0.4"` fixes two high advisories Lexical still brings in). On an
|
||||
older Payload also the `mongoose` (MongoDB) and `undici` ones listed there. `pnpm exec ipal-doctor` → no
|
||||
`transitive-min` finding.
|
||||
|
||||
@@ -90,12 +90,14 @@ prints no security-upgrade warning.
|
||||
**Every upgrade — Payload** (AGENT.md §4 items 11–12): the reference site and the starter run Payload **3.94.1**; the
|
||||
plugin still accepts `^3.90.2`, so moving is recommended, not forced. To move: every `payload` / `@payloadcms/*` (in
|
||||
`dependencies` and in `pnpm.overrides`) to the same exact version, `react` and `react-dom` to 19.3.1 (Payload 3.94
|
||||
requires `^19.3.1`), Node.js 22.23.5 or later (`"engines": { "node": ">=22.23.5 <23" }`; Coolify's build image picks
|
||||
the newest 22), then `pnpm install`, `pnpm payload generate:types`, `pnpm payload generate:importmap`, `rm -rf .next`,
|
||||
requires `^19.3.1`), Node.js 22.23.5 or later (`"engines": { "node": ">=22.23.5 <23" }`, `.nvmrc` `22`) on every machine and
|
||||
in Coolify — Payload 3.94 refuses older Node. Nixpacks takes only the major from `engines` / `.nvmrc`; the patch comes
|
||||
from the Nixpacks release on the Coolify server, so check `node -v` in the app's Terminal (or the build log) and update
|
||||
Coolify first if it is below 22.23.5 (until then, stay on 3.90.x). Then `pnpm install`, `pnpm payload generate:types`, `pnpm payload generate:importmap`, `rm -rf .next`,
|
||||
build, redeploy. Payload 3.91–3.94 change no schema the plugin defines: no migration from the plugin; on
|
||||
Postgres/SQLite run `pnpm payload migrate:create` anyway and commit it if it is not empty.
|
||||
**Check:** `pnpm ls payload @payloadcms/ui @payloadcms/db-mongodb` → one version, 3.94.1; the panel opens and a document
|
||||
saves; `pnpm exec ipal-doctor` → no `versions` finding.
|
||||
saves; `pnpm exec ipal-doctor` → no `versions` finding; Coolify app → Terminal → `node -v` → 22.23.5 or later.
|
||||
|
||||
**Every upgrade — dependency advisories** (AGENT.md §4 item 12): `pnpm audit --prod`; on Payload 3.94.x add the
|
||||
`dompurify` and `happy-dom` overrides to `pnpm.overrides`; on an older Payload also `mongoose` (MongoDB sites; 3.90–3.93
|
||||
|
||||
+2
-1
@@ -160,7 +160,7 @@
|
||||
"@payloadcms/ui": "3.94.1",
|
||||
"@playwright/test": "1.65.1",
|
||||
"@swc-node/register": "1.12.1",
|
||||
"@swc/cli": "0.8.0",
|
||||
"@swc/cli": "0.8.2",
|
||||
"@types/busboy": "1.5.5",
|
||||
"@types/node": "22.20.5",
|
||||
"@types/react": "^19.3.0",
|
||||
@@ -181,6 +181,7 @@
|
||||
"sharp": "0.35.5",
|
||||
"sort-package-json": "^4.1.0",
|
||||
"typescript": "5.9.3",
|
||||
"vite": "7.3.8",
|
||||
"vite-tsconfig-paths": "6.1.1",
|
||||
"vitest": "5.1.1"
|
||||
},
|
||||
|
||||
Generated
+366
-378
File diff suppressed because it is too large
Load Diff
@@ -99,7 +99,7 @@ create-payload-app gave you an older one.
|
||||
**Payload 3.94.1** (what the reference site and the starter use; the plugin accepts `^3.90.2`): every `payload` /
|
||||
`@payloadcms/*` on the same exact version, `react` and `react-dom` 19.3.1 (Payload 3.94 requires `^19.3.1`), and
|
||||
**Node.js 22.23.5 or later** on the 22 line (`"engines": { "node": ">=22.23.5 <23" }`, `.nvmrc` `22`) — Payload 3.94's
|
||||
minimum. After the install, `pnpm audit --prod` → no high or critical; add the `dompurify` and `happy-dom` overrides
|
||||
minimum, also in Coolify (Nixpacks picks the patch: check `node -v` in the app's Terminal after the first deploy). After the install, `pnpm audit --prod` → no high or critical; add the `dompurify` and `happy-dom` overrides
|
||||
from AGENT.md §4 item 12 (`"happy-dom@<21.0.4": "^21.0.4"` fixes two high advisories Lexical still brings in). On an
|
||||
older Payload also the `mongoose` (MongoDB) and `undici` ones listed there. `pnpm exec ipal-doctor` → no
|
||||
`transitive-min` finding.
|
||||
|
||||
@@ -90,12 +90,14 @@ prints no security-upgrade warning.
|
||||
**Every upgrade — Payload** (AGENT.md §4 items 11–12): the reference site and the starter run Payload **3.94.1**; the
|
||||
plugin still accepts `^3.90.2`, so moving is recommended, not forced. To move: every `payload` / `@payloadcms/*` (in
|
||||
`dependencies` and in `pnpm.overrides`) to the same exact version, `react` and `react-dom` to 19.3.1 (Payload 3.94
|
||||
requires `^19.3.1`), Node.js 22.23.5 or later (`"engines": { "node": ">=22.23.5 <23" }`; Coolify's build image picks
|
||||
the newest 22), then `pnpm install`, `pnpm payload generate:types`, `pnpm payload generate:importmap`, `rm -rf .next`,
|
||||
requires `^19.3.1`), Node.js 22.23.5 or later (`"engines": { "node": ">=22.23.5 <23" }`, `.nvmrc` `22`) on every machine and
|
||||
in Coolify — Payload 3.94 refuses older Node. Nixpacks takes only the major from `engines` / `.nvmrc`; the patch comes
|
||||
from the Nixpacks release on the Coolify server, so check `node -v` in the app's Terminal (or the build log) and update
|
||||
Coolify first if it is below 22.23.5 (until then, stay on 3.90.x). Then `pnpm install`, `pnpm payload generate:types`, `pnpm payload generate:importmap`, `rm -rf .next`,
|
||||
build, redeploy. Payload 3.91–3.94 change no schema the plugin defines: no migration from the plugin; on
|
||||
Postgres/SQLite run `pnpm payload migrate:create` anyway and commit it if it is not empty.
|
||||
**Check:** `pnpm ls payload @payloadcms/ui @payloadcms/db-mongodb` → one version, 3.94.1; the panel opens and a document
|
||||
saves; `pnpm exec ipal-doctor` → no `versions` finding.
|
||||
saves; `pnpm exec ipal-doctor` → no `versions` finding; Coolify app → Terminal → `node -v` → 22.23.5 or later.
|
||||
|
||||
**Every upgrade — dependency advisories** (AGENT.md §4 item 12): `pnpm audit --prod`; on Payload 3.94.x add the
|
||||
`dompurify` and `happy-dom` overrides to `pnpm.overrides`; on an older Payload also `mongoose` (MongoDB sites; 3.90–3.93
|
||||
|
||||
Reference in New Issue
Block a user